cef/libcef_dll/cpptoc/views
Marshall Greenblatt d8db6fa9da mac: cefclient: Use RootWindowManager to track key window status (fixes issue #3307)
This change provides a generic solution for active (key) window tracking that
works with both Views-hosted and native windows on MacOS. With this new approach
we can now successfully route top menu actions to the currently active window.

Prior to this change CEF's Views API was using focus notifications as a proxy
for window activation notifications. That doesn't work on MacOS where NSWindow
activation (key status) is independent of NSView focus (first responder) status,
and changes in activation don't necessarily generate focus notifications (see
NativeWidgetMac::OnWindowKeyStatusChanged). To make this work reliably on all
platforms we now expose a CefWindowDelegate::OnWindowActivationChanged callback.

This change also fixes an uninitialized variable
(RootWindowMacImpl::with_extension_) that was causing flaky behavior in
RootWindowManager::OnRootWindowActivated.

To test:
1. Run `cefclient [--use-views]`
2. Select Popup Window from the Tests menu. Do not explicitly activate the popup
   window (e.g. don't click on it).
3. Verify that further Tests menu actions go to the popup window.
4. Change activation to a first window by clicking on it. Verify that Test
   menu actions go to that window.
5. Close the currently active window. Do not explicitly activate the remaining
   window (e.g. don't click on it).
6. Verify that Test menu actions go to the only remaining window.
2022-04-12 16:37:01 -04:00
..
box_layout_cpptoc.cc Update copyright year in generated files 2022-01-06 13:34:35 -05:00
box_layout_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
browser_view_cpptoc.cc Update generated files for check C API structure sizes (fixes issue #3238) 2022-02-17 12:46:38 -05:00
browser_view_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
browser_view_delegate_cpptoc.cc Update generated files for check C API structure sizes (fixes issue #3238) 2022-02-17 12:46:38 -05:00
browser_view_delegate_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
button_cpptoc.cc Update copyright year in generated files 2022-01-06 13:34:35 -05:00
button_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
button_delegate_cpptoc.cc Update copyright year in generated files 2022-01-06 13:34:35 -05:00
button_delegate_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
display_cpptoc.cc Update copyright year in generated files 2022-01-06 13:34:35 -05:00
display_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
fill_layout_cpptoc.cc Update copyright year in generated files 2022-01-06 13:34:35 -05:00
fill_layout_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
label_button_cpptoc.cc Update copyright year in generated files 2022-01-06 13:34:35 -05:00
label_button_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
layout_cpptoc.cc Update copyright year in generated files 2022-01-06 13:34:35 -05:00
layout_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
menu_button_cpptoc.cc Update copyright year in generated files 2022-01-06 13:34:35 -05:00
menu_button_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
menu_button_delegate_cpptoc.cc Update copyright year in generated files 2022-01-06 13:34:35 -05:00
menu_button_delegate_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
menu_button_pressed_lock_cpptoc.cc Update copyright year in generated files 2022-01-06 13:34:35 -05:00
menu_button_pressed_lock_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
overlay_controller_cpptoc.cc Update copyright year in generated files 2022-01-06 13:34:35 -05:00
overlay_controller_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
panel_cpptoc.cc Update generated files for check C API structure sizes (fixes issue #3238) 2022-02-17 12:46:38 -05:00
panel_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
panel_delegate_cpptoc.cc Update copyright year in generated files 2022-01-06 13:34:35 -05:00
panel_delegate_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
scroll_view_cpptoc.cc Update copyright year in generated files 2022-01-06 13:34:35 -05:00
scroll_view_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
textfield_cpptoc.cc Update copyright year in generated files 2022-01-06 13:34:35 -05:00
textfield_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
textfield_delegate_cpptoc.cc Update generated files for check C API structure sizes (fixes issue #3238) 2022-02-17 12:46:38 -05:00
textfield_delegate_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
view_cpptoc.cc Update copyright year in generated files 2022-01-06 13:34:35 -05:00
view_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
view_delegate_cpptoc.cc Update copyright year in generated files 2022-01-06 13:34:35 -05:00
view_delegate_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
window_cpptoc.cc Update generated files for check C API structure sizes (fixes issue #3238) 2022-02-17 12:46:38 -05:00
window_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00
window_delegate_cpptoc.cc mac: cefclient: Use RootWindowManager to track key window status (fixes issue #3307) 2022-04-12 16:37:01 -04:00
window_delegate_cpptoc.h Update copyright year in generated files 2022-01-06 13:34:35 -05:00