Files
cefsharp/CefSharp.Core/WindowInfo.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

146 lines
3.9 KiB
C#

// Copyright © 2020 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.
//NOTE:Classes in the CefSharp.Core namespace have been hidden from intellisnse so users don't use them directly
using System;
using CefSharp.Structs;
namespace CefSharp
{
/// <inheritdoc/>
public class WindowInfo : IWindowInfo
{
private CefSharp.Core.WindowInfo windowInfo = new CefSharp.Core.WindowInfo();
/// <inheritdoc/>
public int X
{
get { return windowInfo.X; }
set { windowInfo.X = value; }
}
/// <inheritdoc/>
public int Y
{
get { return windowInfo.Y; }
set { windowInfo.Y = value; }
}
/// <inheritdoc/>
public int Width
{
get { return windowInfo.Width; }
set { windowInfo.Width = value; }
}
/// <inheritdoc/>
public int Height
{
get { return windowInfo.Height; }
set { windowInfo.Height = value; }
}
/// <inheritdoc/>
public uint Style
{
get { return windowInfo.Style; }
set { windowInfo.Style = value; }
}
/// <inheritdoc/>
public uint ExStyle
{
get { return windowInfo.ExStyle; }
set { windowInfo.ExStyle = value; }
}
/// <inheritdoc/>
public IntPtr ParentWindowHandle
{
get { return windowInfo.ParentWindowHandle; }
set { windowInfo.ParentWindowHandle = value; }
}
/// <inheritdoc/>
public bool WindowlessRenderingEnabled
{
get { return windowInfo.WindowlessRenderingEnabled; }
set { windowInfo.WindowlessRenderingEnabled = value; }
}
/// <inheritdoc/>
public bool SharedTextureEnabled
{
get { return windowInfo.SharedTextureEnabled; }
set { windowInfo.SharedTextureEnabled = value; }
}
/// <inheritdoc/>
public bool ExternalBeginFrameEnabled
{
get { return windowInfo.ExternalBeginFrameEnabled; }
set { windowInfo.ExternalBeginFrameEnabled = value; }
}
/// <inheritdoc/>
public IntPtr WindowHandle
{
get { return windowInfo.WindowHandle; }
set { windowInfo.WindowHandle = value; }
}
/// <inheritdoc/>
public void Dispose()
{
windowInfo.Dispose();
}
/// <inheritdoc/>
public void SetAsChild(IntPtr parentHandle)
{
windowInfo.SetAsChild(parentHandle);
}
/// <inheritdoc/>
public void SetAsChild(IntPtr parentHandle, Rect windowBounds)
{
windowInfo.SetAsChild(parentHandle, windowBounds);
}
/// <inheritdoc/>
public void SetAsChild(IntPtr parentHandle, int left, int top, int right, int bottom)
{
windowInfo.SetAsChild(parentHandle, left, top, right, bottom);
}
/// <inheritdoc/>
public void SetAsPopup(IntPtr parentHandle, string windowName)
{
windowInfo.SetAsPopup(parentHandle, windowName);
}
/// <inheritdoc/>
public void SetAsWindowless(IntPtr parentHandle)
{
windowInfo.SetAsWindowless(parentHandle);
}
/// <summary>
/// Create a new <see cref="IWindowInfo"/> instance
/// </summary>
/// <returns>WindowInfo</returns>
public static IWindowInfo Create()
{
return new CefSharp.Core.WindowInfo();
}
[System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
public IWindowInfo UnWrap()
{
return windowInfo;
}
}
}