Skip to content

Commit

Permalink
Add ICoreWebView2PrivatePartialController required for Microsoft.Web.…
Browse files Browse the repository at this point in the history
…WebView2 ver 1.0.2535.41 to work
  • Loading branch information
kant2002 committed Jun 15, 2024
1 parent 797396d commit 73aaefb
Show file tree
Hide file tree
Showing 3 changed files with 89 additions and 0 deletions.
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;
}
}
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);
}
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;
}
}

0 comments on commit 73aaefb

Please sign in to comment.