cef/libcef/browser/views
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
..
basic_label_button_impl.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
basic_label_button_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
basic_label_button_view.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
basic_label_button_view.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
basic_panel_impl.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
basic_panel_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
basic_panel_view.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
basic_panel_view.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
box_layout_impl.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
box_layout_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
browser_platform_delegate_views.cc chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00
browser_platform_delegate_views.h chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00
browser_view_impl.cc chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00
browser_view_impl.h chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00
browser_view_view.cc chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00
browser_view_view.h chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00
button_impl.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
button_view.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
color_provider_tracker.cc views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
color_provider_tracker.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
display_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
display_impl.h Remove CEF-specific integer and char16 typedef's (see #3507) 2023-06-01 19:32:36 +03:00
fill_layout_impl.cc libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
fill_layout_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
label_button_impl.h Update to Chromium version 121.0.6167.0 (#1233107) 2023-12-13 12:58:55 -05:00
label_button_view.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
layout_adapter.cc Implement Views framework on Windows and Linux (issue #1749). 2016-04-26 11:58:13 -04:00
layout_adapter.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
layout_impl.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
layout_util.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
layout_util.h Update to Chromium revision 6e53600d (#386251) 2016-04-28 12:57:08 -04:00
menu_button_impl.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
menu_button_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
menu_button_view.cc Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
menu_button_view.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
menu_runner_views.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
menu_runner_views.h Update to Chromium version 91.0.4472.0 (#870763) 2021-04-23 11:38:51 -04:00
native_widget_mac.h chrome: Standardize fullscreen transition behavor/callbacks (fixes #3571) 2023-09-28 17:44:35 -04:00
native_widget_mac.mm mac: views: Add customization point for acceptsFirstMouse (fixes #3680) 2024-04-12 15:49:31 +00:00
ns_window.h mac: views: Add customization point for acceptsFirstMouse (fixes #3680) 2024-04-12 15:49:31 +00:00
ns_window.mm mac: views: Add customization point for acceptsFirstMouse (fixes #3680) 2024-04-12 15:49:31 +00:00
overlay_view_host.cc chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00
overlay_view_host.h views: Fix destruction issues with CefOverlayViewHost 2024-04-11 15:51:42 -04:00
panel_impl.h Update to Chromium version 123.0.6312.0 (#1262506) 2024-02-26 12:08:55 -05:00
panel_view.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
scroll_view_impl.cc Remove deprecated base::[Dictionary|List]Value API usage 2023-01-30 21:32:19 -05:00
scroll_view_impl.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
scroll_view_view.cc Apply clang-format to all C, C++ and ObjC files (issue #2171) 2017-05-18 12:30:05 +02:00
scroll_view_view.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
textfield_impl.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
textfield_impl.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
textfield_view.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
textfield_view.h Remove DISALLOW_ macro from libcef/ (see issue #3234) 2021-12-07 15:02:28 -05:00
view_adapter.cc Update source files for bracket style 2023-01-04 17:47:17 -05:00
view_adapter.h libcef: Format with clang-tidy (see #3632) 2024-01-20 19:33:17 -05:00
view_impl.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
view_util.cc views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
view_util.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
view_util_aura.cc views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
view_util_mac.mm views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
view_view.h views: Add support for OS and Chrome themes (fixes #3610, fixes #3671) 2024-04-09 16:19:35 -04:00
widget.cc chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00
widget.h chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00
widget_destruction_observer.h views: Add support for modal browser dialogs 2023-06-21 11:18:24 +03:00
widget_impl.cc Avoid possible reentrancy of ThemeChanged (see #3671) 2024-04-14 21:43:44 -04:00
widget_impl.h chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00
window_impl.cc chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00
window_impl.h chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00
window_view.cc chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00
window_view.h chrome: Add support for Alloy style browsers and windows (see #3681) 2024-04-22 14:57:37 -04:00