Files
cefsharp/CefSharp.Wpf/IWpfWebBrowser.cs
Alex Maitland f43cd64c55 Import CefSharp.Wpf.HwndHost into main repository. (#4981)
* HwndHost - Initial import

* HwndHost - Add Example to solution and use common IWpfChromiumWebBrowser interface

* HwndHost - Update UpdateNugetPackages.ps1

* HwndHost - Add Nuspec

* HwndHost Example - Upgrade version

* HwndHost Example - Try non self contained build for debug and release

* Test - Add basic HwndHost tests

Probably need to revisit these, little bit hacky creating the window

* HwndHost - Allow any RequestContext that inherits from Core.RequestContext

Cheery pick of https://github.com/cefsharp/CefSharp.Wpf.HwndHost/pull/31

* HwndHost Example - Disable arm64

Example will be removed shortly, so it doesn't matter too much now.
It will be moved to MinimalExample and the Wpf Example expanded

* HwndHost - Delete delegate command

* Upgrade packages

* Nuget - Move Nuspec file to PackageReference folder

---------

Co-authored-by: amaitland <307872+amaitland@users.noreply.github.com>
2025-01-18 06:40:48 +10:00

36 lines
1.7 KiB
C#

// Copyright © 2013 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 System.Windows;
using System.Windows.Input;
using System.Windows.Threading;
using CefSharp.Enums;
using CefSharp.Internals;
namespace CefSharp.Wpf
{
/// <summary>
/// WPF specific implementation, has reference to some of the commands
/// and properties the <see cref="ChromiumWebBrowser" /> exposes.
/// </summary>
/// <seealso cref="CefSharp.IWebBrowser" />
public interface IWpfWebBrowser : IWpfChromiumWebBrowser, IInputElement
{
/// <summary>
/// Raised every time <see cref="IRenderWebBrowser.OnPaint"/> is called. You can access the underlying buffer, though it's
/// preferable to either override <see cref="ChromiumWebBrowser.OnPaint"/> or implement your own <see cref="IRenderHandler"/> as there is no outwardly
/// accessible locking (locking is done within the default <see cref="IRenderHandler"/> implementations).
/// It's important to note this event is fired on a CEF UI thread, which by default is not the same as your application UI thread
/// </summary>
event EventHandler<PaintEventArgs> Paint;
/// <summary>
/// Raised every time <see cref="IRenderWebBrowser.OnVirtualKeyboardRequested(IBrowser, TextInputMode)"/> is called.
/// It's important to note this event is fired on a CEF UI thread, which by default is not the same as your application UI thread
/// </summary>
event EventHandler<VirtualKeyboardRequestedEventArgs> VirtualKeyboardRequested;
}
}