Inheritance: WebViewEditorWindow, IHasCustomMenu, ISerializationCallbackReceiver
        private bool FindWebView(string webViewUrl, out WebView webView)
        {
            webView = null;
            string key = WebViewEditorWindowTabs.MakeUrlKey(webViewUrl);

            return(this.m_RegisteredViews.TryGetValue(key, out webView));
        }
Ejemplo n.º 2
0
        public static void RunTestScript(string path)
        {
            string sourcesPath = "file:///" + path;

            JSProxyMgr.GetInstance().AddGlobalObject("WebViewTestFunctions", new WebViewTestFunctions());
            WebViewEditorWindowTabs webViewEditorWindowTabs = WebViewEditorWindow.Create <WebViewEditorWindowTabs>("Test Window", sourcesPath, 0, 0, 0, 0);

            webViewEditorWindowTabs.OnBatchMode();
        }
Ejemplo n.º 3
0
        public static void RunTestScript(string path)
        {
            var url = "file:///" + path;

            JSProxyMgr.GetInstance().AddGlobalObject("WebViewTestFunctions", new WebViewTestFunctions());
            var window = WebViewEditorWindowTabs.Create <WebViewEditorWindowTabs>("Test Window", url, 0, 0, 0, 0);

            window.OnBatchMode();
        }
        public WebView GetWebViewFromURL(string url)
        {
            string key = WebViewEditorWindowTabs.MakeUrlKey(url);

            return(this.m_RegisteredViews[key]);
        }
        private void RegisterWebviewUrl(string webViewUrl, WebView view)
        {
            string key = WebViewEditorWindowTabs.MakeUrlKey(webViewUrl);

            this.m_RegisteredViews[key] = view;
        }
        protected void UnregisterWebviewUrl(string webViewUrl)
        {
            string key = WebViewEditorWindowTabs.MakeUrlKey(webViewUrl);

            this.m_RegisteredViews[key] = null;
        }