cef/libcef/browser/views
Marshall Greenblatt b91be9fcc9 views: Fix Chrome style browser RequestFocus behavior (fixes #3819)
Fix implementation of CefBrowserView::RequestFocus for Chrome style
browsers. Match Alloy style behavior of requesting browser focus
(calling OnSetFocus) after initial navigation. Add CefView::HasFocus
and CefWindow::GetFocusedView that can be used in combination with
CefWindow::IsActive to determine global keyboard focus.

Update sample applications for the new behavior.

In cefclient:
- Browser receives initial focus via ViewsWindow::RequestBrowserFocus.
- When running with `--show-overlay-browser` (see #3790):
  - Give initial focus to the overlay browser.
  - Change the overlay popout shortcut to CTRL+SHIFT+O to avoid
    assigning focus to the menu in the main window.
  - Switching from overlay in the main window to popout browser
    window will give focus to the popout browser.
  - Switching from popout browser to overlay will leave current focus
    unchanged (e.g. in the overlay browser, or somewhere else). User
    gesture to activate the main window may be required on Mac/Linux.
- When running with `--no-active` don't give initial focus to either
  browser.

In cefsimple:
- Browser receives initial focus via default handling.
2024-11-07 11:11:36 -05:00
..
basic_label_button_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
basic_label_button_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
basic_label_button_view.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
basic_label_button_view.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
basic_panel_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
basic_panel_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
basic_panel_view.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
basic_panel_view.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
box_layout_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
box_layout_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
browser_platform_delegate_views.cc views: Fix Chrome style browser RequestFocus behavior (fixes #3819) 2024-11-07 11:11:36 -05:00
browser_platform_delegate_views.h views: Trigger CefBrowser destruction on CefBrowserView release (see #3790) 2024-10-15 15:44:13 -04:00
browser_view_impl.cc views: Fix Chrome style browser RequestFocus behavior (fixes #3819) 2024-11-07 11:11:36 -05:00
browser_view_impl.h views: Fix Chrome style browser RequestFocus behavior (fixes #3819) 2024-11-07 11:11:36 -05:00
browser_view_view.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
browser_view_view.h Apply raw_ptr rewrite to libcef (see #3239) 2024-05-11 12:47:10 -04:00
button_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
button_view.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
color_provider_tracker.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
color_provider_tracker.h Apply raw_ptr rewrite to libcef (see #3239) 2024-05-11 12:47:10 -04:00
display_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
display_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
fill_layout_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
fill_layout_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
label_button_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
label_button_view.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
layout_adapter.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
layout_adapter.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
layout_impl.h Fix dangling raw_ptr errors and related issues (see #3239) 2024-05-21 12:56:47 -04:00
layout_util.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
layout_util.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
menu_button_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
menu_button_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
menu_button_view.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
menu_button_view.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
menu_runner_views.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
menu_runner_views.h Apply raw_ptr rewrite to libcef (see #3239) 2024-05-11 12:47:10 -04:00
native_widget_mac.h mac: views: Always initialize CommandDispatcher (see #3188) 2024-10-15 17:58:23 +00:00
native_widget_mac.mm mac: views: Always initialize CommandDispatcher (see #3188) 2024-10-15 17:58:23 +00:00
ns_window.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
ns_window.mm Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
overlay_view_host.cc views: Trigger CefBrowser destruction on CefBrowserView release (see #3790) 2024-10-15 15:44:13 -04:00
overlay_view_host.h views: Trigger CefBrowser destruction on CefBrowserView release (see #3790) 2024-10-15 15:44:13 -04:00
panel_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
panel_view.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
scroll_view_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
scroll_view_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
scroll_view_view.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
scroll_view_view.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
textfield_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
textfield_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
textfield_view.cc Rename browser_util to browser_event_util (seee #3685) 2024-07-03 12:16:26 -04:00
textfield_view.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
view_adapter.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
view_adapter.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
view_impl.h views: Fix Chrome style browser RequestFocus behavior (fixes #3819) 2024-11-07 11:11:36 -05:00
view_util.cc Apply raw_ptr rewrite to libcef (see #3239) 2024-05-11 12:47:10 -04:00
view_util.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
view_util_aura.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
view_util_mac.mm Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
view_view.h Update to Chromium version 126.0.6478.0 (#1300313) 2024-05-26 13:45:29 -04:00
widget.cc Account for overlay host Widget in CefWidget::GetForWidget (fixes #3784) 2024-09-16 09:05:42 +00:00
widget.h Delete Alloy bootstrap (fixes #3685) 2024-07-01 12:32:14 -04:00
widget_destruction_observer.h Apply raw_ptr rewrite to libcef (see #3239) 2024-05-11 12:47:10 -04:00
widget_impl.cc Delete Alloy bootstrap (fixes #3685) 2024-07-01 12:32:14 -04:00
widget_impl.h Delete Alloy bootstrap (fixes #3685) 2024-07-01 12:32:14 -04:00
window_impl.cc views: Fix Chrome style browser RequestFocus behavior (fixes #3819) 2024-11-07 11:11:36 -05:00
window_impl.h views: Fix Chrome style browser RequestFocus behavior (fixes #3819) 2024-11-07 11:11:36 -05:00
window_view.cc Update to Chromium version 131.0.6768.0 (#1366576) 2024-10-24 11:24:17 -04:00
window_view.h Fix dangling raw_ptr errors and related issues (see #3239) 2024-05-21 12:56:47 -04:00