chromium event loop
一: gtk
点击到最大化按钮回调:
View Code
1 #0 BrowserTitlebar::MaximizeButtonClicked (this=0x55555a6a8640) at chrome/browser/ui/gtk/browser_titlebar.cc:828 2 3 #9 0x0000555557ff5283 in OnMouseButtonReleased (widget=<optimized out>, event=<optimized out>, userdata=<optimized out>) 4 at chrome/browser/ui/gtk/gtk_util.cc:89 5 6 #10 (anonymous namespace)::OnMouseButtonReleased (widget=<optimized out>, event=<optimized out>, userdata=<optimized out>) 7 at chrome/browser/ui/gtk/gtk_util.cc:85 8 9 #19 0x00005555562598f8 in base::MessagePumpGtk::DispatchEvents (this=0x555559fe2690, event=0x555559fd0480) 10 at base/message_pump_gtk.cc:76 11 12 #24 0x00005555562d632f in base::MessagePumpGlib::RunWithDispatcher (this=0x555559fe2690, delegate=<optimized out>, 13 dispatcher=<optimized out>) at base/message_pump_glib.cc:199 14 15 #25 0x000055555628b054 in MessageLoop::RunInternal (this=0x555559fa2800) at base/message_loop.cc:429 16 #26 0x00005555562a1f88 in base::RunLoop::Run (this=0x7fffffffd720) at base/run_loop.cc:45 17 #27 0x0000555555ec5b62 in ChromeBrowserMainParts::MainMessageLoopRun (this=0x55555a6a8640, result_code=0x55555a120ba0) 18 ---Type <return> to continue, or q <return> to quit--- 19 at chrome/browser/chrome_browser_main.cc:1490 20 21 #35 0x0000555555b1b7c6 in main (argc=<optimized out>, argv=<optimized out>) at chrome/app/chrome_exe_main_gtk.cc:31
二: aura
点击到最大化按钮:
1,OpaqueBrowserFrameView::ButtonPressed; button所在的frame;
2,
View Code
1 #0 aura::RootWindow::OnHostResized (this=0x7f0526ec7380, size=...) at ui/aura/root_window.cc:886 2 #1 0x00007f054adf2171 in views::DesktopRootWindowHostLinux::Dispatch (this=0x7f0526f23168, event=@0x7fffe3d0f2b8: 0x7fffe3d0f4a0) 3 at ui/views/widget/desktop_aura/desktop_root_window_host_linux.cc:897 4 #2 0x00007f0547206286 in base::MessagePumpAuraX11::Dispatch (this=0x7f0545c31e00, xev=@0x7fffe3d0f2b8: 0x7fffe3d0f4a0) 5 at base/message_pump_aurax11.cc:314 6 #3 0x00007f0547205eaf in base::MessagePumpAuraX11::ProcessXEvent (this=0x7f0545c31e00, dispatcher=0x7f0545c31e68, xev=0x7fffe3d0f4a0) 7 at base/message_pump_aurax11.cc:256 8 #4 0x00007f054720581c in base::MessagePumpAuraX11::DispatchXEvents (this=0x7f0545c31e00) at base/message_pump_aurax11.cc:198 9 #5 0x00007f0547204ce6 in (anonymous namespace)::XSourceDispatch (source=0x7f0545c49b60, unused_func=0, data=0x7f0545c31e00) 10 at base/message_pump_aurax11.cc:33 11 #6 0x00007f05447205bc in g_main_context_dispatch () from /lib64/libglib-2.0.so.0 12 #7 0x00007f05447209d8 in ?? () from /lib64/libglib-2.0.so.0 13 #8 0x00007f0544720a94 in g_main_context_iteration () from /lib64/libglib-2.0.so.0 14 #9 0x00007f05472c4052 in base::MessagePumpGlib::RunWithDispatcher (this=0x7f0545c31e00, delegate=0x7f0545c42c00, dispatcher=0x0) 15 at base/message_pump_glib.cc:199 16 #10 0x00007f05472c44b4 in base::MessagePumpGlib::Run (this=0x7f0545c31e00, delegate=0x7f0545c42c00) at base/message_pump_glib.cc:291 17 #11 0x00007f0547242d44 in MessageLoop::RunInternal (this=0x7f0545c42c00) at base/message_loop.cc:430

浙公网安备 33010602011771号