况洋洋
2025-07-04 0d247bd2a17e0f99f3609774a1ce54ae00857997
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
namespace CefSharp
{
    /// <summary>
    /// CEF supports both a Chrome runtime (based on the Chrome UI layer) and an
    /// Alloy runtime (based on the Chromium content layer). The Chrome runtime
    /// provides the full Chrome UI and browser functionality whereas the Alloy
    /// runtime provides less default browser functionality but adds additional
    /// client callbacks and support for windowless (off-screen) rendering. For
    /// additional comparative details on runtime types see
    /// https://bitbucket.org/chromiumembedded/cef/wiki/Architecture.md#markdown-header-cef3
    ///
    /// Each runtime is composed of a bootstrap component and a style component.
    /// The style component is individually
    /// configured for each window/browser at creation time and, in combination with
    /// the Chrome bootstrap, different styles can be mixed during runtime.
    ///
    /// Windowless rendering will always use Alloy style. Windowed rendering with a
    /// default window or client-provided parent window can configure the style via
    /// CefWindowInfo.runtime_style. Windowed rendering with the Views framework can
    /// configure the style via CefWindowDelegate::GetWindowRuntimeStyle and
    /// CefBrowserViewDelegate::GetBrowserRuntimeStyle. Alloy style Windows with the
    /// Views framework can host only Alloy style BrowserViews but Chrome style
    /// Windows can host both style BrowserViews. Additionally, a Chrome style
    /// Window can host at most one Chrome style BrowserView but potentially
    /// multiple Alloy style BrowserViews. See CefWindowInfo.runtime_style
    /// documentation for any additional platform-specific limitations.
    /// </summary>
    public enum CefRuntimeStyle
    {
        /// <summary>
        /// Use the default runtime style. See above documentation
        /// for exceptions.
        /// </summary>
        Default,
 
        /// <summary>
        /// Use the Chrome runtime style.
        /// </summary>
        Chrome,
 
        /// <summary>
        /// Use the Alloy runtime style.
        /// runtime.
        /// </summary>
        Alloy,
    }
}