예제 #1
0
		internal protected virtual void OnBeforePopup(BeforePopupEventArgs e)
		{
			if (BeforePopup != null)
				BeforePopup(this, e);
			else
				e.Handled = false;
		}
        protected override bool OnBeforePopup(CefBrowser browser, CefFrame frame, string targetUrl, string targetFrameName, CefWindowOpenDisposition targetDisposition, bool userGesture, CefPopupFeatures popupFeatures, CefWindowInfo windowInfo, ref CefClient client, CefBrowserSettings settings, ref bool noJavascriptAccess)
        {
            var e = new BeforePopupEventArgs(frame, targetUrl, targetFrameName, popupFeatures, windowInfo, client, settings,
                                             noJavascriptAccess);

            _core.InvokeIfRequired(() => _core.OnBeforePopup(e));

            client             = e.Client;
            noJavascriptAccess = e.NoJavascriptAccess;

            return(e.Handled);
        }
예제 #3
0
		protected override bool OnBeforePopup(CefBrowser browser, CefFrame frame, string targetUrl, string targetFrameName, CefPopupFeatures popupFeatures, CefWindowInfo windowInfo, ref CefClient client, CefBrowserSettings settings, ref bool noJavascriptAccess)
		{
			var e = new BeforePopupEventArgs(frame, targetUrl, targetFrameName, popupFeatures, windowInfo, client, settings,
								 noJavascriptAccess);

			_core.InvokeIfRequired(() => _core.OnBeforePopup(e));

			client = e.Client;
			noJavascriptAccess = e.NoJavascriptAccess;

			return e.Handled;
		}
예제 #4
0
        protected override bool OnBeforePopup(CefBrowser browser, CefFrame frame, string targetUrl, string targetFrameName, CefPopupFeatures popupFeatures, CefWindowInfo windowInfo, ref CefClient client, CefBrowserSettings settings, ref bool noJavascriptAccess)
        {
            var e = new BeforePopupEventArgs(frame, targetUrl, targetFrameName, popupFeatures, windowInfo, client, settings,
                                             noJavascriptAccess);

            _core.InvokeIfRequired(() => _core.OnBeforePopup(e));

            client             = e.Client;
            noJavascriptAccess = e.NoJavascriptAccess;
            //if (FileHelper1.read("//config//chromeconfig.txt")[0] == "true") {
            e.Handled = true;
            //}
            return(e.Handled);
            //  return true;//强制不弹出
        }
예제 #5
0
		internal protected virtual void OnBeforePopup(BeforePopupEventArgs e)
		{
			if (BeforePopup != null)
				BeforePopup(this, e);
			else
				e.Handled = false;
		}