Ejemplo n.º 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);
                }
            };
        }
Ejemplo n.º 2
0
 public CefHost()
 {
     DragHandler     = new DragHandler();
     LifeSpanHandler = new LifeSpanHandler();
     MenuHandler     = new ContextMenuHandler();
 }