cef/libcef/common
Marshall Greenblatt dca0435d2f chrome: Add support for Alloy style browsers and windows (see #3681)
Split the Alloy runtime into bootstrap and style components. Support
creation of Alloy style browsers and windows with the Chrome runtime.
Chrome runtime (`--enable-chrome-runtime`) + Alloy style
(`--use-alloy-style`) supports Views (`--use-views`), native parent
(`--use-native`) and windowless rendering
(`--off-screen-rendering-enabled`).

Print preview is supported in all cases except with windowless rendering
on all platforms and native parent on MacOS. It is disabled by default
with Alloy style for legacy compatibility. Where supported it can be
enabled or disabled globally using `--[enable|disable]-print-preview` or
configured on a per-RequestContext basis using the
`printing.print_preview_disabled` preference. It also behaves as
expected when triggered via the PDF viewer print button.

Chrome runtime + Alloy style behavior differs from Alloy runtime in the
following significant ways:

- Supports Chrome error pages by default.
- DevTools popups are Chrome style only (cannot be windowless).
- The Alloy extension API will not supported.

Chrome runtime + Alloy style passes all expected Alloy ceftests except
the following:

- `DisplayTest.AutoResize` (Alloy extension API not supported)
- `DownloadTest.*` (Download API not yet supported)
- `ExtensionTest.*` (Alloy extension API not supported)

This change also adds Chrome runtime support for
CefContextMenuHandler::RunContextMenu (see #3293).

This change also explicitly blocks (and doesn't retry) FrameAttached
requests from PDF viewer and print preview excluded frames (see #3664).

Known issues specific to Chrome runtime + Alloy style:
- DevTools popup with windowless rendering doesn't load successfully.
  Use windowed rendering or remote debugging as a workaround.
- Chrome style Window with Alloy style BrowserView (`--use-alloy-style
  --use-chrome-style-window`) does not show Chrome theme changes.

To test:
- Run `ceftests --enable-chrome-runtime --use-alloy-style
       [--use-chrome-style-window] [--use-views|--use-native]
       --gtest_filter=...`
- Run `cefclient --enable-chrome-runtime --use-alloy-style
       [--use-chrome-style-window]
       [--use-views|--use-native|--off-screen-rendering-enabled]`
- Run `cefsimple --enable-chrome-runtime --use-alloy-style [--use-views]`
2024-04-22 14:57:37 -04:00
..
alloy Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
chrome Revert "alloy: Allow --remote-debugging-port=0 (fixes #3619)" 2024-02-14 20:02:20 -05:00
extensions chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00
mojom chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00
net libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
net_service Update to Chromium version 123.0.6312.0 (#1262506) 2024-02-26 12:08:55 -05:00
test libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
app_manager.cc Fix cookie exclusion for fetch CORS pre-flight requests (fixes #3596) 2023-11-20 14:44:43 -05:00
app_manager.h Fix cookie exclusion for fetch CORS pre-flight requests (fixes #3596) 2023-11-20 14:44:43 -05:00
base_impl.cc Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
cdm_host_file_path.cc widevine: Support CDM host verification and storage ID (fixes issue #3404) 2022-10-04 18:21:31 -04:00
cdm_host_file_path.h widevine: Support CDM host verification and storage ID (fixes issue #3404) 2022-10-04 18:21:31 -04:00
cef_crash_report_upload_thread.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
cef_crash_report_upload_thread.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
cef_crash_report_utils.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
cef_crash_report_utils.h Update to Chromium revision bc084a8b (#530369) 2018-02-19 17:38:04 -05:00
cef_switches.cc alloy: Add setting to customize log items 2023-08-07 13:40:40 -04:00
cef_switches.h alloy: Add setting to customize log items 2023-08-07 13:40:40 -04:00
command_line_impl.cc chrome: Add callback for already running app relaunch (fixes #3609) 2023-12-04 15:43:45 -05:00
command_line_impl.h chrome: Add callback for already running app relaunch (fixes #3609) 2023-12-04 15:43:45 -05:00
crash_reporter_client.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
crash_reporter_client.h Update to Chromium version 121.0.6167.0 (#1233107) 2023-12-13 12:58:55 -05:00
crash_reporting.cc Update to Chromium version 123.0.6312.0 (#1262506) 2024-02-26 12:08:55 -05:00
crash_reporting.h Update to Chromium version 121.0.6167.0 (#1233107) 2023-12-13 12:58:55 -05:00
drag_data_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
drag_data_impl.h Add CefDragData::GetFilePaths to return file paths (fixes #3568) 2023-10-04 12:25:52 -04:00
file_util_impl.cc Replace NOTREACHED() with DCHECK(false) (fixes #3500) 2023-05-08 18:36:00 +03:00
frame_util.cc Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
frame_util.h Update to Chromium version 122.0.6261.0 (#1250580) 2024-01-30 12:07:08 -05:00
i18n_util_impl.cc views: Add support for absolute positioned overlay views. 2021-09-16 18:25:43 +03:00
json_impl.cc Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
main_runner_delegate.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
main_runner_handler.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
parser_impl.cc Update to Chromium version 123.0.6312.0 (#1262506) 2024-02-26 12:08:55 -05:00
process_message_impl.cc Remove deprecated base::[Dictionary|List]Value API usage 2023-01-30 21:32:19 -05:00
process_message_impl.h Remove deprecated base::[Dictionary|List]Value API usage 2023-01-30 21:32:19 -05:00
process_message_smr_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
process_message_smr_impl.h Replace ReadOnlySharedMemoryRegion with WritableSharedMemoryRegion (see #3502) 2023-10-16 22:43:29 +00:00
request_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
request_impl.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
resource_bundle_delegate.cc Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
resource_bundle_delegate.h Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
resource_bundle_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
resource_bundle_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
resource_util.cc alloy: Add callback for already running app relaunch (fixes #3615) 2023-12-06 11:50:08 -05:00
resource_util.h Convert defined(OS_XXX) to BUILDFLAG(IS_XXX) in libcef 2022-01-24 12:58:04 -05:00
response_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
response_impl.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
scheme_registrar_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
scheme_registrar_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
string_list_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
string_map_impl.cc Update to Chromium version 121.0.6167.0 (#1233107) 2023-12-13 12:58:55 -05:00
string_multimap_impl.cc Update to Chromium version 121.0.6167.0 (#1233107) 2023-12-13 12:58:55 -05:00
string_types_impl.cc Update to Chromium version 121.0.6167.0 (#1233107) 2023-12-13 12:58:55 -05:00
string_util.cc Convert legacy IPC messages to Mojo (fixes issue #3123) 2021-05-18 21:59:48 -04:00
string_util.h Update to Chromium version 111.0.5563.0 (#1097615) 2023-02-03 13:00:26 -05:00
task_impl.cc Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
task_runner_impl.cc Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
task_runner_impl.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
task_runner_manager.cc Add initial chrome runtime support (see issue #2969) 2020-06-29 16:17:23 -04:00
task_runner_manager.h Update to Chromium version 97.0.4692.0 (#938553) 2021-11-15 14:25:16 -05:00
thread_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
thread_impl.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
time_impl.cc Update to Chromium version 120.0.6099.0 (#1217362) 2023-11-28 12:47:00 -05:00
time_util.h Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
tracker.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
tracker.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
urlrequest_impl.cc chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00
util_linux.cc Update to Chromium version 117.0.5938.0 (#1181205) 2023-08-15 12:07:58 -04:00
util_linux.h Linux: Migrate from breakpad to crashpad (see issue #3249) 2022-03-17 15:34:49 -04:00
util_mac.h Update to Chromium version 114.0.5735.0 (#1135570) 2023-05-05 22:53:16 +03:00
util_mac.mm Update to Chromium version 118.0.5993.0 (#1192594) 2023-09-20 12:07:47 -04:00
value_base.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
value_base.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
values_impl.cc Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
values_impl.h Update to Chromium version 124.0.6367.0 (#1274542) 2024-03-22 13:46:28 -04:00
waitable_event_impl.cc Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
waitable_event_impl.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00