Beispiel #1
0
        public CefHost()
        {
            DragHandler     = new DragHandler();
            LifeSpanHandler = new LifeSpanHandler();
            MenuHandler     = new ContextMenuHandler();
            KeyboardHandler = new KeyboardHandler();

            FrameLoadStart += (s, e) =>
            {
                UpdateScale();
                if (LockGame && CanExecuteJavascriptInMainFrame)
                {
                    GetBrowser().MainFrame.ExecuteJavaScriptAsync(BrowserSetting.StyleSheetSetJs);
                }
            };
        }
Beispiel #2
0
 public CefHost()
 {
     DragHandler     = new DragHandler();
     LifeSpanHandler = new LifeSpanHandler();
     MenuHandler     = new ContextMenuHandler();
 }