Skip to content

Commit 33c61a6

Browse files
committed
Make SourceHook virtual for Wpf ChromiumWebBrowser so inherited controls can override custom hook.
1 parent f6b5787 commit 33c61a6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CefSharp.Wpf/ChromiumWebBrowser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ private Popup CreatePopup()
939939
return newPopup;
940940
}
941941

942-
private IntPtr SourceHook(IntPtr hWnd, int message, IntPtr wParam, IntPtr lParam, ref bool handled)
942+
protected virtual IntPtr SourceHook(IntPtr hWnd, int message, IntPtr wParam, IntPtr lParam, ref bool handled)
943943
{
944944
if (handled)
945945
{

0 commit comments

Comments
 (0)