-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ICoreWebView2PrivatePartialController required for Microsoft.Web.…
…WebView2 ver 1.0.2535.41 to work
- Loading branch information
Showing
3 changed files
with
89 additions
and
0 deletions.
There are no files selected for viewing
50 changes: 50 additions & 0 deletions
50
facades/Microsoft.Web.WebView2.Core/Raw/ICoreWebView2PrivateKeyPressedEventArgs.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
using System; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace Microsoft.Web.WebView2.Core.Raw; | ||
|
||
[ComImport] | ||
[CompilerGenerated] | ||
[Guid("56E473F1-E155-45E6-98F4-A1F80550A165")] | ||
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] | ||
public interface ICoreWebView2PrivateKeyPressedEventArgs | ||
{ | ||
[DispId(1610678272)] | ||
COREWEBVIEW2_KEY_EVENT_KIND KeyEventKind | ||
{ | ||
[MethodImpl(MethodImplOptions.InternalCall)] | ||
get; | ||
} | ||
|
||
[DispId(1610678273)] | ||
uint VirtualKey | ||
{ | ||
[MethodImpl(MethodImplOptions.InternalCall)] | ||
get; | ||
} | ||
|
||
[DispId(1610678274)] | ||
int KeyEventLParam | ||
{ | ||
[MethodImpl(MethodImplOptions.InternalCall)] | ||
get; | ||
} | ||
|
||
[DispId(1610678275)] | ||
COREWEBVIEW2_PHYSICAL_KEY_STATUS PhysicalKeyStatus | ||
{ | ||
[MethodImpl(MethodImplOptions.InternalCall)] | ||
get; | ||
} | ||
|
||
[DispId(1610678276)] | ||
int Handled | ||
{ | ||
[MethodImpl(MethodImplOptions.InternalCall)] | ||
get; | ||
[MethodImpl(MethodImplOptions.InternalCall)] | ||
[param: In] | ||
set; | ||
} | ||
} |
15 changes: 15 additions & 0 deletions
15
facades/Microsoft.Web.WebView2.Core/Raw/ICoreWebView2PrivateKeyPressedEventHandler.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace Microsoft.Web.WebView2.Core.Raw; | ||
|
||
[ComImport] | ||
[CompilerGenerated] | ||
[Guid("E8A34C9D-4BF8-4AEF-BB0B-4A392C987A6E")] | ||
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] | ||
public interface ICoreWebView2PrivateKeyPressedEventHandler | ||
{ | ||
[MethodImpl(MethodImplOptions.InternalCall)] | ||
void Invoke([In][MarshalAs(UnmanagedType.Interface)] ICoreWebView2Controller sender, [In][MarshalAs(UnmanagedType.Interface)] ICoreWebView2PrivateKeyPressedEventArgs args); | ||
} |
24 changes: 24 additions & 0 deletions
24
facades/Microsoft.Web.WebView2.Core/Raw/ICoreWebView2PrivatePartialController.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Runtime.CompilerServices; | ||
using System.Runtime.InteropServices; | ||
|
||
namespace Microsoft.Web.WebView2.Core.Raw; | ||
|
||
[ComImport] | ||
[CompilerGenerated] | ||
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] | ||
[Guid("F8B289CB-421C-4A9A-97CC-2870B0AC1798")] | ||
public interface ICoreWebView2PrivatePartialController | ||
{ | ||
[MethodImpl(MethodImplOptions.InternalCall)] | ||
void add_KeyPressed([In][MarshalAs(UnmanagedType.Interface)] ICoreWebView2PrivateKeyPressedEventHandler eventHandler, out EventRegistrationToken token); | ||
|
||
[MethodImpl(MethodImplOptions.InternalCall)] | ||
void remove_KeyPressed([In] EventRegistrationToken token); | ||
|
||
[DispId(1610678274)] | ||
int IsBrowserHitTransparent | ||
{ | ||
[MethodImpl(MethodImplOptions.InternalCall)] | ||
get; | ||
} | ||
} |