Files
cefsharp/CefSharp/IWindowInfo.cs
T
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

117 lines
5.2 KiB
C#

// Copyright © 2015 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;
using CefSharp.Structs;
namespace CefSharp
{
/// <summary>
/// Class representing window information.
/// </summary>
public interface IWindowInfo : IDisposable
{
/// <summary>
/// X coordinate
/// </summary>
int X { get; set; }
/// <summary>
/// Y coordinate
/// </summary>
int Y { get; set; }
/// <summary>
/// Width
/// </summary>
int Width { get; set; }
/// <summary>
/// Height
/// </summary>
int Height { get; set; }
/// <summary>
/// Window style
/// </summary>
uint Style { get; set; }
/// <summary>
/// Ex window style
/// </summary>
uint ExStyle { get; set; }
/// <summary>
/// Parent window handle
/// </summary>
IntPtr ParentWindowHandle { get; set; }
/// <summary>
/// Set to true to create the browser using windowless (off-screen) rendering.
/// No window will be created for the browser and all rendering will occur via the
/// IRenderHandler interface. The <see cref="ParentWindowHandle"/> value will be used to identify monitor info
/// and to act as the parent window for dialogs, context menus, etc. If |<see cref="ParentWindowHandle"/> is not provided then the main screen monitor will be used and some functionality that requires a parent window may not function correctly.
/// In order to create windowless browsers the CefSettings.WindowlessRenderingEnabled value must be set to true.
/// Transparent painting is enabled by default but can be disabled by setting <see cref="IBrowserSettings.BackgroundColor"/> to an opaque value.
/// </summary>
bool WindowlessRenderingEnabled { get; set; }
/// <summary>
/// Set to true to enable shared textures for windowless rendering. Only
/// valid if <see cref="WindowlessRenderingEnabled"/> is also set to true. Currently
/// only supported on Windows (D3D11). This feature is experimental and has many bugs
/// at the moment.
/// </summary>
bool SharedTextureEnabled { get; set; }
/// <summary>
/// Set to true to enable the ability to issue BeginFrame requests from the
/// client application by calling <see cref="IBrowserHost.SendExternalBeginFrame"/>.
/// </summary>
bool ExternalBeginFrameEnabled { get; set; }
/// <summary>
/// Handle for the new browser window. Only used with windowed rendering.
/// </summary>
IntPtr WindowHandle { get; set; }
/// <summary>
/// Create the browser as a child window.
/// Calls GetClientRect(Hwnd) to obtain the window bounds
/// </summary>
/// <param name="parentHandle">parent handle</param>
void SetAsChild(IntPtr parentHandle);
/// <summary>
/// Create the browser as a child window.
/// </summary>
/// <param name="parentHandle">parent handle</param>
/// <param name="windowBounds">window bounds</param>
void SetAsChild(IntPtr parentHandle, Rect windowBounds);
/// <summary>
/// Create the browser as a child window.
/// </summary>
/// <param name="parentHandle">parent handle</param>
/// <param name="left">left</param>
/// <param name="top">top</param>
/// <param name="right">right</param>
/// <param name="bottom">bottom</param>
void SetAsChild(IntPtr parentHandle, int left, int top, int right, int bottom);
/// <summary>
/// Create the browser as a popup window.
/// </summary>
/// <param name="parentHandle">parent handle</param>
/// <param name="windowName">window name</param>
void SetAsPopup(IntPtr parentHandle, string windowName);
/// <summary>
/// Create the browser using windowless (off-screen) rendering.
/// No window will be created for the browser and all rendering will occur via the CefRenderHandler interface. This window will automatically be transparent unless a colored backgrond is set in the browser settings.
/// </summary>
/// <param name="parentHandle">Value will be used to identify monitor info and to act as the parent window for dialogs, context menus, etc.
/// If not provided then the main screen monitor will be used and some functionality that requires a parent window may not function correctly.
/// In order to create windowless browsers the CefSettings.windowless_rendering_enabled value must be set to true.</param>
void SetAsWindowless(IntPtr parentHandle);
/// <summary>
/// Used internally to get the underlying <see cref="IWindowInfo"/> instance.
/// Unlikely you'll use this yourself.
/// </summary>
/// <returns>the inner most instance</returns>
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
IWindowInfo UnWrap();
}
}