cef/include
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
..
base views: Generate cef_color_ids.h header (see #3671) 2024-04-03 12:09:22 -04:00
capi views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
internal views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -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
wrapper wrapper: Format with clang-tidy (see #3632) 2024-01-20 12:34:13 -05:00
cef_accessibility_handler.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_api_hash.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
cef_app.h Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
cef_application_mac.h Update to Chromium version 114.0.5735.0 (#1135570) 2023-05-05 22:53:16 +03:00
cef_audio_handler.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
cef_auth_callback.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_base.h Update include files for bracket style 2023-01-04 21:36:29 -05:00
cef_browser.h Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
cef_browser_process_handler.h chrome: Enforce matching context for new user and incognito profiles 2024-02-14 18:51:32 -05:00
cef_callback.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_client.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_command_handler.h chrome: Add ability to hide toolbar and app menu contents (see issue #3280) 2023-03-08 12:02:49 -05:00
cef_command_line.h Fix the comments to CefCommandLine::AppendSwitch methods 2023-01-12 11:51:25 -05:00
cef_context_menu_handler.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_cookie.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_crash_util.h alloy: Remove CefSettings.user_data_path (fixes #3511) 2023-06-06 17:41:57 +03:00
cef_devtools_message_observer.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_dialog_handler.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_display_handler.h chrome: Standardize fullscreen transition behavor/callbacks (fixes #3571) 2023-09-28 17:44:35 -04:00
cef_dom.h Update to Chromium version 119.0.6045.0 (#1204232) 2023-10-24 10:56:39 -04:00
cef_download_handler.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_download_item.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
cef_drag_data.h Add CefDragData::GetFilePaths to return file paths (fixes #3568) 2023-10-04 12:25:52 -04:00
cef_drag_handler.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_extension.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_extension_handler.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_file_util.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_find_handler.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_focus_handler.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_frame.h Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
cef_frame_handler.h docs: Fix typos "recieve" -> "receive" 2024-01-05 15:03:20 -05:00
cef_i18n_util.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_image.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_jsdialog_handler.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_keyboard_handler.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_life_span_handler.h docs: Fix typos "recieve" -> "receive" 2024-01-05 15:03:20 -05:00
cef_load_handler.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_media_router.h docs: Fix typos "recieve" -> "receive" 2024-01-05 15:03:20 -05:00
cef_menu_model.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_menu_model_delegate.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_navigation_entry.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_origin_whitelist.h Fix typos in cef_origin_whitelist.h and capi/cef_origin_whitelist_capi.h 2023-04-12 18:21:39 +00:00
cef_parser.h Add CefResolveURL function (fixes issue #3402) 2022-10-03 17:46:50 +00:00
cef_path_util.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_permission_handler.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
cef_preference.h Support registration of custom preferences. 2022-10-26 16:54:33 -04:00
cef_print_handler.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_print_settings.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_process_message.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_process_util.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_registration.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_render_handler.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_render_process_handler.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_request.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
cef_request_context.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
cef_request_context_handler.h Support registration of custom preferences. 2022-10-26 16:54:33 -04:00
cef_request_handler.h Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
cef_resource_bundle.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_resource_bundle_handler.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_resource_handler.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
cef_resource_request_handler.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
cef_response.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_response_filter.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_sandbox_mac.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_sandbox_win.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_scheme.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_server.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
cef_shared_memory_region.h Replace ReadOnlySharedMemoryRegion with WritableSharedMemoryRegion (see #3502) 2023-10-16 22:43:29 +00:00
cef_shared_process_message_builder.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_ssl_info.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_ssl_status.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_stream.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
cef_string_visitor.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_task.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
cef_thread.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_trace.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
cef_unresponsive_process_callback.h Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
cef_urlrequest.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
cef_v8.h Add binary format support to CefMessageRouter (fixes #3502) 2023-10-25 18:20:55 +00:00
cef_values.h Add binary format support to CefMessageRouter (fixes #3502) 2023-10-25 18:20:55 +00:00
cef_waitable_event.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
cef_x509_certificate.h Update to Chromium version 115.0.5790.0 (#1148114) 2023-06-01 13:44:39 +03:00
cef_xml_reader.h Update include/ comments to Doxygen formatting (see issue #3384) 2022-09-01 17:14:30 -04:00
cef_zip_reader.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00