cef/include/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
..
cef_box_layout.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_browser_view.h chrome: Support usage of the Chrome toolbar from Views (see issue #2969) 2021-04-11 20:44:28 -04:00
cef_browser_view_delegate.h chrome: Support usage of the Chrome toolbar from Views (see issue #2969) 2021-04-11 20:44:28 -04:00
cef_button.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_button_delegate.h Update to Chromium version 74.0.3729.0 (#638880) 2019-03-13 21:27:37 +00:00
cef_display.h Improve documentation related to views screen coordinates (see issue #2980) 2020-10-01 16:12:01 -04:00
cef_fill_layout.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_label_button.h Update to Chromium version 76.0.3809.0 (#665002) 2019-07-16 15:34:16 -04:00
cef_layout.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_menu_button.h Update to Chromium version 76.0.3809.0 (#665002) 2019-07-16 15:34:16 -04:00
cef_menu_button_delegate.h Add support for loading extensions (issue #1947) 2017-08-25 18:40:32 -04:00
cef_overlay_controller.h views: Add support for absolute positioned overlay views. 2021-09-16 18:25:43 +03:00
cef_panel.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_panel_delegate.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_scroll_view.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_textfield.h Update to Chromium version 84.0.4147.0 (#768962) 2020-06-10 15:26:29 -04:00
cef_textfield_delegate.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
cef_view.h views: Add support for absolute positioned overlay views. 2021-09-16 18:25:43 +03:00
cef_view_delegate.h views: Add support for absolute positioned overlay views. 2021-09-16 18:25:43 +03:00
cef_window.h views: Add support for absolute positioned overlay views. 2021-09-16 18:25:43 +03:00
cef_window_delegate.h mac: cefclient: Use RootWindowManager to track key window status (fixes issue #3307) 2022-04-12 16:37:01 -04:00