27 lines
1.2 KiB
C#
27 lines
1.2 KiB
C#
namespace WpfForWeb
|
|
{
|
|
public class MenuHandler : CefSharp.IContextMenuHandler
|
|
{
|
|
void CefSharp.IContextMenuHandler.OnBeforeContextMenu(CefSharp.IWebBrowser browserControl, CefSharp.IBrowser browser, CefSharp.IFrame frame, CefSharp.IContextMenuParams parameters, CefSharp.IMenuModel model)
|
|
{
|
|
model.Clear();
|
|
}
|
|
|
|
bool CefSharp.IContextMenuHandler.OnContextMenuCommand(CefSharp.IWebBrowser browserControl, CefSharp.IBrowser browser, CefSharp.IFrame frame, CefSharp.IContextMenuParams parameters, CefSharp.CefMenuCommand commandId, CefSharp.CefEventFlags eventFlags)
|
|
{
|
|
//throw new NotImplementedException();
|
|
return false;
|
|
}
|
|
|
|
void CefSharp.IContextMenuHandler.OnContextMenuDismissed(CefSharp.IWebBrowser browserControl, CefSharp.IBrowser browser, CefSharp.IFrame frame)
|
|
{
|
|
//throw new NotImplementedException();
|
|
}
|
|
|
|
bool CefSharp.IContextMenuHandler.RunContextMenu(CefSharp.IWebBrowser browserControl, CefSharp.IBrowser browser, CefSharp.IFrame frame, CefSharp.IContextMenuParams parameters, CefSharp.IMenuModel model, CefSharp.IRunContextMenuCallback callback)
|
|
{
|
|
return false;
|
|
}
|
|
}
|
|
}
|