Files
cefsharp/CefSharp/IBrowserSettings.cs
Alex Maitland 0e242a8706 Upgrade to CEF 95.7.10+g00d4ad5+chromium-95.0.4638.54 / Chromium 95.0.4638.54
Remove CefBrowserSettings.universal_access_from_file_urls and CefBrowserSettings.file_access_from_file_urls.
https://bitbucket.org/chromiumembedded/cef/commits/ff33d7f72144

Remove CefBrowserSettings.application_cache
https://bitbucket.org/chromiumembedded/cef/commits/370a7749e950ef6784c29a666d07a0b67148dd5f

Remove ignore_certificate_errors setting
https://bitbucket.org/chromiumembedded/cef/commits/aabe4ce466766f8bd9907e7fa30546a3afada214

RequestContextSettings.IgnoreCertificateErrors was removed, the CefSettings.IgnoreCertificateErrors property
now set the command line arg

Use CefRect for CefWindowInfo bounds
https://bitbucket.org/chromiumembedded/cef/commits/8587cc4e4bbc187aa989152e521318818b3f41d3

Additional overload has been added to pass in a Rect directly to SetAsChild

Rename SendFocusEvent to SetFocus
https://bitbucket.org/chromiumembedded/cef/commits/49a4611e28d7bbc221cff816d7c4a96c55ba2721

SendFocusEvent will now call SetFocus internally, the project internally has been updated to use SetFocus for WPF

Replace CefRequestCallback with CefCallback
https://bitbucket.org/chromiumembedded/cef/commits/3e7f1bb529442a6c7674262d9219df57964e9524

No changes to the API for this, I've kept the same interface and just mapped internally

Resolves #3857, #3667, #3668
2021-10-22 14:45:12 +10:00

204 lines
7.7 KiB
C#

// Copyright © 2016 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
using System;
namespace CefSharp
{
/// <summary>
/// Interface representing browser initialization settings.
/// </summary>
public interface IBrowserSettings : IDisposable
{
/// <summary>
/// StandardFontFamily
/// </summary>
string StandardFontFamily { get; set; }
/// <summary>
/// FixedFontFamily
/// </summary>
string FixedFontFamily { get; set; }
/// <summary>
/// SerifFontFamily
/// </summary>
string SerifFontFamily { get; set; }
/// <summary>
/// SansSerifFontFamily
/// </summary>
string SansSerifFontFamily { get; set; }
/// <summary>
/// CursiveFontFamily
/// </summary>
string CursiveFontFamily { get; set; }
/// <summary>
/// FantasyFontFamily
/// </summary>
string FantasyFontFamily { get; set; }
/// <summary>
/// DefaultFontSize
/// </summary>
int DefaultFontSize { get; set; }
/// <summary>
/// DefaultFixedFontSize
/// </summary>
int DefaultFixedFontSize { get; set; }
/// <summary>
/// MinimumFontSize
/// </summary>
int MinimumFontSize { get; set; }
/// <summary>
/// MinimumLogicalFontSize
/// </summary>
int MinimumLogicalFontSize { get; set; }
/// <summary>
/// Default encoding for Web content. If empty "ISO-8859-1" will be used. Also
/// configurable using the "default-encoding" command-line switch.
/// </summary>
string DefaultEncoding { get; set; }
/// <summary>
/// Controls the loading of fonts from remote sources. Also configurable using
/// the "disable-remote-fonts" command-line switch.
/// </summary>
CefState RemoteFonts { get; set; }
/// <summary>
/// Controls whether JavaScript can be executed. (Used to Enable/Disable javascript)
/// Also configurable using the "disable-javascript" command-line switch.
/// </summary>
CefState Javascript { get; set; }
/// <summary>
/// Controls whether JavaScript can be used to close windows that were not
/// opened via JavaScript. JavaScript can still be used to close windows that
/// were opened via JavaScript. Also configurable using the
/// "disable-javascript-close-windows" command-line switch.
/// </summary>
CefState JavascriptCloseWindows { get; set; }
/// <summary>
/// Controls whether JavaScript can access the clipboard. Also configurable
/// using the "disable-javascript-access-clipboard" command-line switch.
/// </summary>
CefState JavascriptAccessClipboard { get; set; }
/// <summary>
/// Controls whether DOM pasting is supported in the editor via
/// execCommand("paste"). The |javascript_access_clipboard| setting must also
/// be enabled. Also configurable using the "disable-javascript-dom-paste"
/// command-line switch.
/// </summary>
CefState JavascriptDomPaste { get; set; }
/// <summary>
/// Controls whether any plugins will be loaded. Also configurable using the
/// "disable-plugins" command-line switch.
/// </summary>
CefState Plugins { get; set; }
/// <summary>
/// Controls whether image URLs will be loaded from the network. A cached image
/// will still be rendered if requested. Also configurable using the
/// "disable-image-loading" command-line switch.
/// </summary>
CefState ImageLoading { get; set; }
/// <summary>
/// Controls whether standalone images will be shrunk to fit the page. Also
/// configurable using the "image-shrink-standalone-to-fit" command-line
/// switch.
/// </summary>
CefState ImageShrinkStandaloneToFit { get; set; }
/// <summary>
/// Controls whether text areas can be resized. Also configurable using the
/// "disable-text-area-resize" command-line switch.
/// </summary>
CefState TextAreaResize { get; set; }
/// <summary>
/// Controls whether the tab key can advance focus to links. Also configurable
/// using the "disable-tab-to-links" command-line switch.
/// </summary>
CefState TabToLinks { get; set; }
/// <summary>
/// Controls whether local storage can be used. Also configurable using the
/// "disable-local-storage" command-line switch.
/// </summary>
CefState LocalStorage { get; set; }
/// <summary>
/// Controls whether databases can be used. Also configurable using the
/// "disable-databases" command-line switch.
/// </summary>
CefState Databases { get; set; }
/// <summary>
/// Controls whether WebGL can be used. Note that WebGL requires hardware
/// support and may not work on all systems even when enabled. Also
/// configurable using the "disable-webgl" command-line switch.
/// </summary>
CefState WebGl { get; set; }
/// <summary>
/// Opaque background color used for the browser before a document is loaded
/// and when no document color is specified. By default the background color
/// will be the same as CefSettings.BackgroundColor. Only the RGB compontents
/// of the specified value will be used. The alpha component must greater than
/// 0 to enable use of the background color but will be otherwise ignored.
/// </summary>
uint BackgroundColor { get; set; }
/// <summary>
/// Comma delimited ordered list of language codes without any whitespace that
/// will be used in the "Accept-Language" HTTP header. May be overridden on a
/// per-browser basis using the CefBrowserSettings.AcceptLanguageList value.
/// If both values are empty then "en-US,en" will be used. Can be overridden
/// for individual RequestContext instances via the
/// RequestContextSettings.AcceptLanguageList value.
/// </summary>
string AcceptLanguageList { get; set; }
/// <summary>
/// The maximum rate in frames per second (fps) that CefRenderHandler::OnPaint
/// will be called for a windowless browser. The actual fps may be lower if
/// the browser cannot generate frames at the requested rate. The minimum
/// value is 1 and the maximum value is 60 (default 30). This value can also be
/// changed dynamically via IBrowserHost.SetWindowlessFrameRate.
/// </summary>
int WindowlessFrameRate { get; set; }
/// <summary>
/// Gets a value indicating if the browser settings has been disposed.
/// </summary>
bool IsDisposed { get; }
/// <summary>
/// Gets a value indicating if the browser settings instance was created internally by CefSharp.
/// Instances created by CefSharp will be Disposed of after use. To control the lifespan yourself
/// create an set BrowserSettings yourself.
/// </summary>
bool AutoDispose { get; }
/// <summary>
/// Used internally to get the underlying <see cref="IBrowserSettings"/> instance.
/// Unlikely you'll use this yourself.
/// </summary>
/// <returns>the inner most instance</returns>
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
IBrowserSettings UnWrap();
}
}