cef/tests/ceftests
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
..
extensions ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
resources mac: Update target SDK to 10.15 for cmake and tests 2024-01-30 12:33:53 -05:00
views views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
CMakeLists.txt.in Update to Chromium version 117.0.5938.0 (#1181205) 2023-08-15 12:07:58 -04:00
audio_output_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
browser_info_map_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
certificate_error_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
client_app_delegates.cc Remove renderer process CefURLRequest support 2023-02-28 13:36:15 -05:00
command_line_unittest.cc Fix CefCommandLine character case requirements (fixes issue #1872) 2021-09-27 16:36:57 +03:00
cookie_unittest.cc Update to Chromium version 123.0.6312.0 (#1262506) 2024-02-26 12:08:55 -05:00
cors_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
devtools_message_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
dialog_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
display_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
dom_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
download_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
draggable_regions_unittest.cc tests: Change HTTP test URLs to HTTPS 2023-05-05 22:53:16 +03:00
file_util_unittest.cc Add support for loading extensions (issue #1947) 2017-08-25 18:40:32 -04:00
frame_handler_unittest.cc Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
frame_unittest.cc Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
hsts_redirect_unittest.cc ceftests: Change CreateTestRequestContext to async usage 2023-10-16 18:44:20 -04:00
image_unittest.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
image_util.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
image_util.h ceftests: Fix incorrect include guard #ifdef names 2020-08-26 16:21:30 -04:00
jsdialog_unittest.cc tests: Change HTTP test URLs to HTTPS 2023-05-05 22:53:16 +03:00
life_span_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
media_access_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
message_router_binary_unittest.cc Add binary format support to CefMessageRouter (fixes #3502) 2023-10-25 18:20:55 +00:00
message_router_harness_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
message_router_multi_query_unittest.cc Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
message_router_single_query_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
message_router_threshold_unittest.cc Update ipc_performance_test to compare similar transfers (see #3502) 2023-10-18 19:41:33 +00:00
message_router_unittest_utils.cc Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
message_router_unittest_utils.h Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
navigation_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
os_rendering_unittest.cc Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
os_rendering_unittest_mac.h ceftests: Fix incorrect include guard #ifdef names 2020-08-26 16:21:30 -04:00
os_rendering_unittest_mac.mm macOS: Add support for building clients with ARC enabled (fixes issue #2623). 2019-04-23 17:17:56 +00:00
osr_accessibility_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
osr_display_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
parser_unittest.cc Add CefResolveURL function (fixes issue #3402) 2022-10-03 17:46:50 +00:00
pdf_viewer_unittest.cc Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
permission_prompt_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
preference_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
print_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
process_message_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
request_context_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
request_handler_unittest.cc Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
request_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
resource.h chrome: win: Fix app icon for default Chrome windows (fixes #3606) 2023-11-20 19:35:09 -05:00
resource_manager_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
resource_request_handler_unittest.cc Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
resource_util_linux.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
resource_util_win_dir.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
resource_util_win_idmap.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
response_unittest.cc ceftests: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:59:12 +01:00
routing_test_handler.cc Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
routing_test_handler.h Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
run_all_unittests.cc ceftests: Check CefInitialize return value (see #3609) 2024-03-18 18:33:38 -04:00
run_all_unittests_mac.mm Update to Chromium version 117.0.5938.0 (#1181205) 2023-08-15 12:07:58 -04:00
scheme_handler_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
scoped_temp_dir_unittest.cc Rename unittests to ceftests (issue #1632) 2016-11-18 12:44:46 -05:00
send_shared_process_message_unittest.cc docs: Fix typos "recieve" -> "receive" 2024-01-05 15:03:20 -05:00
server_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
shared_process_message_unittest.cc Replace ReadOnlySharedMemoryRegion with WritableSharedMemoryRegion (see #3502) 2023-10-16 22:43:29 +00:00
stream_resource_handler_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
stream_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
string_unittest.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
task_unittest.cc ceftests: Add support for scaling default test timeout values 2023-01-13 14:01:29 -05:00
test_handler.cc Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
test_handler.h Add callbacks for unresponsive render process (fixes #3661) 2024-03-18 17:45:31 -04:00
test_request.cc Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
test_request.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
test_server.cc Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
test_server.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
test_server_manager.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
test_server_manager.h ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
test_server_observer.cc ceftests: Refactor test_server to support both HTTP and HTTPS servers (see issue #3348) 2022-08-01 16:20:03 -04:00
test_server_observer.h ceftests: Rename test_server::Observer::OnHttpRequest to OnTestServerRequest (see issue #3348) 2022-08-01 21:14:12 -04:00
test_server_observer_unittest.cc ceftests: Add support for scaling default test timeout values 2023-01-13 14:01:29 -05:00
test_server_runner.cc ceftests: Refactor test_server to support both HTTP and HTTPS servers (see issue #3348) 2022-08-01 16:20:03 -04:00
test_server_runner.h ceftests: Rename test_server::Observer::OnHttpRequest to OnTestServerRequest (see issue #3348) 2022-08-01 21:14:12 -04:00
test_server_runner_normal.cc ceftests: Fix flaky URLRequestTest due to server response timing 2023-10-18 15:42:14 -04:00
test_server_runner_test.cc Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
test_server_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
test_suite.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
test_suite.h ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
test_util.cc ceftests: Change CreateTestRequestContext to async usage 2023-10-16 18:44:20 -04:00
test_util.h ceftests: Change CreateTestRequestContext to async usage 2023-10-16 18:44:20 -04:00
thread_helper.cc Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
thread_helper.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
thread_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
time_unittest.cc Run TimeTest.InvalidBaseTimeToTime on Windows only (see issue #2935) 2022-07-22 13:31:29 -04:00
tracing_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
track_callback.h ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
translator_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
urlrequest_unittest.cc Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
v8_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
values_unittest.cc Add binary format support to CefMessageRouter (fixes #3502) 2023-10-25 18:20:55 +00:00
version_unittest.cc Compute all version numbers using cef_version.py (see issue #2596) 2019-03-15 13:16:43 -04:00
waitable_event_unittest.cc tests: Convert usage of base::Bind to Once or Repeating (see issue #3140) 2021-06-19 17:19:32 -04:00
webui_unittest.cc ceftests: Format with clang-tidy (see #3632) 2024-01-20 12:06:28 -05:00
xml_reader_unittest.cc ceftests: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:59:12 +01:00
zip_reader_unittest.cc ceftests: Convert NULL to nullptr (see issue #2861) 2020-01-15 14:59:12 +01:00