cef/libcef/browser
Marshall Greenblatt b660522983 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-06 13:20:02 -05:00
..
alloy Free CefMenuRunnerViews on BrowserView destruction (see #3790) 2024-11-04 17:09:01 -05:00
chrome views: Fix Chrome style browser RequestFocus behavior (fixes #3819) 2024-11-06 13:20:02 -05:00
devtools Remove devtools window runner abstraction (see #3685) 2024-07-05 11:58:08 -04:00
gpu Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
media_router Apply raw_ptr rewrite to libcef (see #3239) 2024-05-11 12:47:10 -04:00
native Update to Chromium version 129.0.6668.0 2024-08-26 12:44:25 +00:00
net Remove custom chrome scheme handling (see #3685) 2024-07-05 11:58:08 -04:00
net_service Execute HandleExternalProtocolHelper on the UI thread (fixes #3821) 2024-11-04 11:44:48 -05:00
osr Update to Chromium version 131.0.6778.0 (#1368529) 2024-10-24 14:50:11 -04:00
prefs Update to Chromium version 128.0.6613.0 (#1331488) 2024-07-30 11:10:09 -04:00
printing Update to Chromium version 129.0.6668.0 2024-08-26 12:44:25 +00:00
test Update to Chromium version 127.0.6533.0 (#1313161) 2024-06-20 12:09:46 -04:00
views views: Fix Chrome style browser RequestFocus behavior (fixes #3819) 2024-11-06 13:20:02 -05:00
audio_capturer.cc Update to Chromium version 129.0.6668.0 2024-08-26 12:44:25 +00:00
audio_capturer.h Update to Chromium version 129.0.6668.0 2024-08-26 12:44:25 +00:00
audio_loopback_stream_creator.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
audio_loopback_stream_creator.h Update to Chromium version 111.0.5563.0 (#1097615) 2023-02-03 13:00:26 -05:00
browser_contents_delegate.cc Use direct member for CefBrowserHostBase::contents_delegate_ 2024-07-18 13:50:40 -04:00
browser_contents_delegate.h Delete Alloy bootstrap (fixes #3685) 2024-07-01 12:32:14 -04:00
browser_context.cc Delete Alloy bootstrap (fixes #3685) 2024-07-01 12:32:14 -04:00
browser_context.h Delete Alloy bootstrap (fixes #3685) 2024-07-01 12:32:14 -04:00
browser_event_util.cc Rename browser_util to browser_event_util (seee #3685) 2024-07-03 12:16:26 -04:00
browser_event_util.h Rename browser_util to browser_event_util (seee #3685) 2024-07-03 12:16:26 -04:00
browser_frame.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
browser_frame.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
browser_guest_util.cc Rename browser_extensions_util to browser_guest_util (seee #3685) 2024-07-03 12:16:26 -04:00
browser_guest_util.h Rename browser_extensions_util to browser_guest_util (seee #3685) 2024-07-03 12:16:26 -04:00
browser_host_base.cc chrome: Support unload handlers with TryCloseBrowser 2024-10-17 11:06:08 -04:00
browser_host_base.h chrome: Support unload handlers with TryCloseBrowser 2024-10-17 11:06:08 -04:00
browser_host_create.cc Delete Alloy bootstrap (fixes #3685) 2024-07-01 12:32:14 -04:00
browser_info.cc Fix raw_ptr leak of main frame RFH during WebContents close (see #3660) 2024-10-22 16:08:55 -04:00
browser_info.h Update to Chromium version 127.0.6533.0 (#1313161) 2024-06-20 12:09:46 -04:00
browser_info_manager.cc Rename browser_extensions_util to browser_guest_util (seee #3685) 2024-07-03 12:16:26 -04:00
browser_info_manager.h Delete Alloy bootstrap (fixes #3685) 2024-07-01 12:32:14 -04:00
browser_manager.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
browser_manager.h Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
browser_message_loop.cc Update to Chromium version 127.0.6533.0 (#1313161) 2024-06-20 12:09:46 -04:00
browser_message_loop.h Refactor process execution logic (see issue #2969) 2020-06-29 16:17:13 -04:00
browser_platform_delegate.cc Update to Chromium version 131.0.6768.0 (#1366576) 2024-10-24 11:24:17 -04:00
browser_platform_delegate.h Update to Chromium version 131.0.6768.0 (#1366576) 2024-10-24 11:24:17 -04:00
browser_platform_delegate_create.cc Delete Alloy bootstrap (fixes #3685) 2024-07-01 12:32:14 -04:00
certificate_query.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
certificate_query.h Update to Chromium version 111.0.5563.0 (#1097615) 2023-02-03 13:00:26 -05:00
context.cc Update to Chromium version 129.0.6668.0 2024-08-26 12:44:25 +00:00
context.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
context_menu_params_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
context_menu_params_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
download_item_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
download_item_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
download_manager_delegate.cc Delete Alloy bootstrap (fixes #3685) 2024-07-01 12:32:14 -04:00
download_manager_delegate.h chrome: Add CefDownloadHandler support (see #3681) 2024-04-27 15:36:58 -04:00
download_manager_delegate_impl.cc Fix dangling raw_ptr errors and related issues (see #3239) 2024-05-21 12:56:47 -04:00
download_manager_delegate_impl.h Fix dangling raw_ptr errors and related issues (see #3239) 2024-05-21 12:56:47 -04:00
file_dialog_manager.cc Fix index out of bounds with dialog accept_types description (fixes #3779) 2024-09-16 09:08:22 +00:00
file_dialog_manager.h Update to Chromium version 128.0.6613.0 (#1331488) 2024-07-30 11:10:09 -04:00
file_dialog_runner.cc Update to Chromium version 128.0.6613.0 (#1331488) 2024-07-30 11:10:09 -04:00
file_dialog_runner.h Use Chrome file dialogs on all platforms and runtimes (fixes issue #3314) 2022-04-19 18:52:26 -04:00
frame_host_impl.cc Add CefFrame::PasteAndMatchStyle 2024-10-23 13:24:10 -04:00
frame_host_impl.h Add CefFrame::PasteAndMatchStyle 2024-10-23 13:24:10 -04:00
frame_service_base.h Apply raw_ptr rewrite to libcef (see #3239) 2024-05-11 12:47:10 -04:00
geometry_util.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
geometry_util.h chrome: Improve positioning of the "Find" widget (fixes #3461) 2023-04-20 12:26:07 -04:00
geometry_util_unittest.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
global_preference_manager_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
global_preference_manager_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
hang_monitor.cc Apply raw_ptr rewrite to libcef (see #3239) 2024-05-11 12:47:10 -04:00
hang_monitor.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
image_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
image_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
iothread_state.cc Delete Alloy bootstrap (fixes #3685) 2024-07-01 12:32:14 -04:00
iothread_state.h Delete Alloy bootstrap (fixes #3685) 2024-07-01 12:32:14 -04:00
javascript_dialog_manager.cc Rename browser_extensions_util to browser_guest_util (seee #3685) 2024-07-03 12:16:26 -04:00
javascript_dialog_manager.h Apply raw_ptr rewrite to libcef (see #3239) 2024-05-11 12:47:10 -04:00
javascript_dialog_runner.h alloy: Use Chrome JS dialogs on Windows/Linux (fixes issue #3316) 2022-06-03 22:45:23 +03:00
main_runner.cc Fix DiscardableSharedMemoryManager destruction timing 2024-10-15 14:30:26 -04:00
main_runner.h posix: Added option to disable signal handlers 2024-08-05 12:36:28 -04:00
media_access_query.cc Delete Alloy bootstrap (fixes #3685) 2024-07-01 12:32:14 -04:00
media_access_query.h Update to Chromium version 121.0.6167.0 (#1233107) 2023-12-13 12:58:55 -05:00
media_stream_registrar.cc Apply raw_ptr rewrite to libcef (see #3239) 2024-05-11 12:47:10 -04:00
media_stream_registrar.h Apply raw_ptr rewrite to libcef (see #3239) 2024-05-11 12:47:10 -04:00
menu_manager.cc Add CefFrame::PasteAndMatchStyle 2024-10-23 13:24:10 -04:00
menu_manager.h Apply raw_ptr rewrite to libcef (see #3239) 2024-05-11 12:47:10 -04:00
menu_model_impl.cc Update to Chromium version 129.0.6668.0 2024-08-26 12:44:25 +00:00
menu_model_impl.h Apply raw_ptr rewrite to libcef (see #3239) 2024-05-11 12:47:10 -04:00
menu_runner.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
navigation_entry_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
navigation_entry_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
origin_whitelist_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
origin_whitelist_impl.h Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
path_util_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
permission_prompt.cc Update to Chromium version 131.0.6768.0 (#1366576) 2024-10-24 11:24:17 -04:00
permission_prompt.h Add CefPermissionHandler callbacks for permission prompts (see issue #3352) 2022-07-07 10:01:24 +00:00
print_settings_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
print_settings_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
process_util_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
request_context_handler_map.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
request_context_handler_map.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
request_context_impl.cc Delete Alloy bootstrap (fixes #3685) 2024-07-01 12:32:14 -04:00
request_context_impl.h Delete Alloy bootstrap (fixes #3685) 2024-07-01 12:32:14 -04:00
scheme_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
server_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
server_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
simple_menu_model_impl.cc Fix dangling raw_ptr errors and related issues (see #3239) 2024-05-21 12:56:47 -04:00
simple_menu_model_impl.h Fix dangling raw_ptr errors and related issues (see #3239) 2024-05-21 12:56:47 -04:00
ssl_info_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
ssl_info_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
ssl_status_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
ssl_status_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
stream_impl.cc Fix dangling raw_ptr errors and related issues (see #3239) 2024-05-21 12:56:47 -04:00
stream_impl.h Fix dangling raw_ptr errors and related issues (see #3239) 2024-05-21 12:56:47 -04:00
task_manager_impl.cc Add CefTaskManager::GetTaskIdForBrowserId 2024-07-19 15:19:06 +00:00
task_manager_impl.h Add CefTaskManager::GetTaskIdForBrowserId 2024-07-19 15:19:06 +00:00
thread_util.h Replace NOTREACHED() with DCHECK(false) (fixes #3500) 2023-05-08 18:36:00 +03:00
trace_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
trace_subscriber.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
trace_subscriber.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
ui_thread.cc Remove main runner abstractions (see #3685) 2024-07-03 12:16:26 -04:00
ui_thread.h Remove main runner abstractions (see #3685) 2024-07-03 12:16:26 -04:00
x509_cert_principal_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
x509_cert_principal_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
x509_certificate_impl.cc Implement OnSelectClientCertificate (fixes #3789) 2024-10-23 13:09:32 -04:00
x509_certificate_impl.h Implement OnSelectClientCertificate (fixes #3789) 2024-10-23 13:09:32 -04:00
xml_reader_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
xml_reader_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
zip_reader_impl.cc Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00
zip_reader_impl.h Apply new Chromium style for #include sorting 2024-05-01 14:34:32 -04:00