cef/libcef/browser
Marshall Greenblatt f60476b848 views: Add support for OS and Chrome themes (fixes #3610, fixes #3671)
Controls now respect OS and Chrome themes by default for both Alloy
and Chrome runtimes. Chrome themes (mode and colors) can be configured
using the new CefRequestContext::SetChromeColorScheme method. Individual
theme colors can be overridden using the new CefWindowDelegate::
OnThemeColorsChanged and CefWindow::SetThemeColor methods.

The `--force-light-mode` and `--force-dark-mode` command-line flags are
now respected on all platforms as an override for the OS theme.

The current Chrome theme, if any, will take precedence over the OS theme
when determining light/dark status. On Windows and MacOS the titlebar
color will also be updated to match the light/dark theme.

Testable as follows:
- Run: `cefclient --enable-chrome-runtime` OR
       `cefclient --use-views --persist-user-preferences --cache-path=...`
  - App launches with default OS light/dark theme colors.
  - Change OS dark/light theme under system settings. Notice that theme
    colors change as expected.
  - Right click, select items from the new Theme sub-menu. Notice that
    theme colors behave as expected.
  - Exit and relaunch the app. Notice that the last-used theme colors are
    applied on app restart.
- Add `--background-color=green` to above command-line.
  - Perform the same actions as above. Notice that all controls start
    and remain green throughout (except some icons with Chrome runtime).
- Add `--force-light-mode` or `--force-dark-mode` to above command-line.
  - Perform the same actions as above. Notice that OS dark/light theme
    changes are ignored, but Chrome theme changes work as expected.
2024-04-09 16:19:35 -04:00
..
alloy views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
chrome views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
devtools Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
extensions Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
gpu Convert defined(OS_XXX) to BUILDFLAG(IS_XXX) in libcef 2022-01-24 12:58:04 -05:00
media_router libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
native Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
net libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
net_service Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
osr Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
prefs views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
printing Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
test Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
views views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
audio_capturer.cc Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
audio_capturer.h Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
audio_loopback_stream_creator.cc Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -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 Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
browser_contents_delegate.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
browser_context.cc Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
browser_context.h Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
browser_context_keyed_service_factories.cc alloy: Fix crash when accessing FirstPartySets (fixes #3643) 2024-02-14 18:51:32 -05:00
browser_context_keyed_service_factories.h Initialize required KeyedServiceFactories when extensions are disabled (issue #2359) 2018-02-02 17:44:08 -05:00
browser_frame.cc Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
browser_frame.h Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
browser_host_base.cc Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
browser_host_base.h Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
browser_host_create.cc Replace NOTREACHED() with DCHECK(false) (fixes #3500) 2023-05-08 18:36:00 +03:00
browser_info.cc Always assign |is_guest_view| in CefBrowserInfo::GetFrameForGlobalToken 2024-02-05 16:31:04 +00:00
browser_info.h Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
browser_info_manager.cc Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
browser_info_manager.h Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
browser_manager.cc Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05: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 118.0.5993.0 (#1192594) 2023-09-20 12:07:47 -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 chrome: Add SetAccessibilityState support (fixes #3649) 2024-02-20 16:27:48 +00:00
browser_platform_delegate.h chrome: Improve positioning of dialogs (fixes #3628) 2024-01-12 18:13:36 -05:00
browser_platform_delegate_create.cc Replace NOTREACHED() with DCHECK(false) (fixes #3500) 2023-05-08 18:36:00 +03:00
browser_util.cc Update to Chromium version 118.0.5993.0 (#1192594) 2023-09-20 12:07:47 -04:00
browser_util.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
certificate_query.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
certificate_query.h Update to Chromium version 111.0.5563.0 (#1097615) 2023-02-03 13:00:26 -05:00
chrome_crash_reporter_client_stub.cc Convert defined(OS_XXX) to BUILDFLAG(IS_XXX) in libcef 2022-01-24 12:58:04 -05:00
context.cc Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
context.h Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
context_menu_params_impl.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
context_menu_params_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
download_item_impl.cc Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
download_item_impl.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
download_manager_delegate.cc Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
download_manager_delegate.h Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
extension_impl.cc Replace NOTREACHED() with DCHECK(false) (fixes #3500) 2023-05-08 18:36:00 +03:00
extension_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
file_dialog_manager.cc Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
file_dialog_manager.h Use Chrome file dialogs on all platforms and runtimes (fixes issue #3314) 2022-04-19 18:52:26 -04:00
file_dialog_runner.cc Update to Chromium version 116.0.5845.0 (#1160321) 2023-06-28 11:43:11 +03: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 Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
frame_host_impl.h Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
frame_service_base.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
geometry_util.cc chrome: Improve positioning of the "Find" widget (fixes #3461) 2023-04-20 12:26:07 -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 chrome: Improve positioning of the "Find" widget (fixes #3461) 2023-04-20 12:26:07 -04:00
global_preference_manager_impl.cc Replace NOTREACHED() with DCHECK(false) (fixes #3500) 2023-05-08 18:36:00 +03:00
global_preference_manager_impl.h Support registration of custom preferences. 2022-10-26 16:54:33 -04:00
hang_monitor.cc Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
hang_monitor.h Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
image_impl.cc Replace NOTREACHED() with DCHECK(false) (fixes #3500) 2023-05-08 18:36:00 +03:00
image_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
iothread_state.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
iothread_state.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
javascript_dialog_manager.cc alloy: Fix crash on JS dialog from PDF viewer (fixes #3644) 2024-02-15 15:35:11 -05:00
javascript_dialog_manager.h alloy: Use Chrome JS dialogs on Windows/Linux (fixes issue #3316) 2022-06-03 22:45:23 +03: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 views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
main_runner.h Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
media_access_query.cc Update to Chromium version 123.0.6312.0 (#1262506) 2024-02-26 12:08:55 -05:00
media_access_query.h Update to Chromium version 121.0.6167.0 (#1233107) 2023-12-13 12:58:55 -05:00
media_capture_devices_dispatcher.cc Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
media_capture_devices_dispatcher.h Update to Chromium version 111.0.5563.0 (#1097615) 2023-02-03 13:00:26 -05:00
media_stream_registrar.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
media_stream_registrar.h Update to Chromium version 109.0.5414.0 (#1070088) 2022-11-17 12:50:15 -05:00
menu_manager.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
menu_manager.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
menu_model_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
menu_model_impl.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
menu_runner.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
navigation_entry_impl.cc Add CefBaseTime and use it instead of CefTime (see issue #2935) 2022-07-19 10:09:35 -04:00
navigation_entry_impl.h Add CefBaseTime and use it instead of CefTime (see issue #2935) 2022-07-19 10:09:35 -04:00
origin_whitelist_impl.cc Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -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 Replace NOTREACHED() with DCHECK(false) (fixes #3500) 2023-05-08 18:36:00 +03:00
permission_prompt.cc Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -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 libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
print_settings_impl.h Update to Chromium version 100.0.4896.0 (#972766) 2022-02-22 19:22:39 -05:00
process_util_impl.cc Replace NOTREACHED() with DCHECK(false) (fixes #3500) 2023-05-08 18:36:00 +03:00
request_context_handler_map.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
request_context_handler_map.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
request_context_impl.cc views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
request_context_impl.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
scheme_impl.cc Replace NOTREACHED() with DCHECK(false) (fixes #3500) 2023-05-08 18:36:00 +03:00
server_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
server_impl.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
simple_menu_model_impl.cc Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
simple_menu_model_impl.h Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
speech_recognition_manager_delegate.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
speech_recognition_manager_delegate.h Update to Chromium version 100.0.4896.0 (#972766) 2022-02-22 19:22:39 -05:00
ssl_host_state_delegate.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
ssl_host_state_delegate.h Update to Chromium version 121.0.6167.0 (#1233107) 2023-12-13 12:58:55 -05:00
ssl_info_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
ssl_info_impl.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
ssl_status_impl.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
ssl_status_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
stream_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
stream_impl.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
thread_util.h Replace NOTREACHED() with DCHECK(false) (fixes #3500) 2023-05-08 18:36:00 +03:00
trace_impl.cc Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
trace_subscriber.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
trace_subscriber.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
x509_cert_principal_impl.cc Update to Chromium version 115.0.5790.0 (#1148114) 2023-06-01 13:44:39 +03:00
x509_cert_principal_impl.h Update to Chromium version 115.0.5790.0 (#1148114) 2023-06-01 13:44:39 +03:00
x509_certificate_impl.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
x509_certificate_impl.h Add CefBaseTime and use it instead of CefTime (see issue #2935) 2022-07-19 10:09:35 -04:00
xml_reader_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
xml_reader_impl.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
zip_reader_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
zip_reader_impl.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00