public void decidePolicyForNewWindowAction(WebView WebView, CFDictionaryPropertyBag actionInformation, WebURLRequest request, string frameName, IWebPolicyDecisionListener listener) { if (AllowNewWindows) listener.use(); else listener.ignore(); }
public void decidePolicyForNavigationAction(WebView WebView, CFDictionaryPropertyBag actionInformation, WebURLRequest request, webFrame frame, IWebPolicyDecisionListener listener) { if (AllowNavigation || AllowInitialNavigation) listener.use(); else listener.ignore(); }
public int contextMenuItemsForElement(WebView sender, CFDictionaryPropertyBag element, int defaultItemsHMenu) { if (!owner.IsWebBrowserContextMenuEnabled) /* {@@} */ { /* {@@} */ owner.ContextMenuShow(); /* {@@} */ } /* {@@} */ return(owner.IsWebBrowserContextMenuEnabled ? defaultItemsHMenu : 0); }
public void decidePolicyForNewWindowAction(WebView WebView, CFDictionaryPropertyBag actionInformation, IWebURLRequest request, string frameName, IWebPolicyDecisionListener listener) { if (listener != null) { listener.use(); } string url = request.url(); NewWindowRequestUrlAvailable(url); }
public void decidePolicyForNavigationAction(WebView WebView, CFDictionaryPropertyBag actionInformation, IWebURLRequest request, webFrame frame, IWebPolicyDecisionListener listener) { if (AllowNavigation || AllowInitialNavigation) { listener.use(); } else { listener.ignore(); } }
public void decidePolicyForNewWindowAction(WebView WebView, CFDictionaryPropertyBag actionInformation, IWebURLRequest request, string frameName, IWebPolicyDecisionListener listener) { if (AllowNewWindows) { listener.use(); } else { listener.ignore(); } }
public void mouseDidMoveOverElement(WebView sender, CFDictionaryPropertyBag elementInformation, uint modifierFlags) { object textcontent; elementInformation.RemoteRead("WebElementLinkURLKey", out textcontent, null, 0, null); if (!string.IsNullOrEmpty((string)textcontent)) { StatusTextChanged((string)textcontent); owner.StatusText = (string)textcontent; if ((string)textcontent != string.Empty) { owner.LastSelectedLink = (string)textcontent; } } else { StatusTextChanged(string.Empty); owner.StatusText = string.Empty; } textcontent = null; object el; elementInformation.RemoteRead("WebElementDOMNodeKey", out el, null, 0, null); if (el == null) { owner.setCurElSafe(null); return; } IDOMNode node = el as IDOMNode; if (node is IDOMElement || node is IDOMHTMLElement || node is IDOMHTMLTextAreaElement || node is IDOMHTMLInputElement && node != null) { owner.setCurElSafe(node); MouseDidMoveOverElement(sender, node); } else { el = null; node = null; GC.Collect(); } el = null; if (node != null) { node = null; } Marshal.ReleaseComObject(elementInformation); }
public int contextMenuItemsForElement(WebView sender, CFDictionaryPropertyBag element, int defaultItemsHMenu) { owner.CustomContextMenuManager.FireShowContextMenu(); if (owner.UseDefaultContextMenu) { if (owner.CustomContextMenuManager.AppropriateContextMenuType == ContextMenuType.Body || owner.CustomContextMenuManager.AppropriateContextMenuType == ContextMenuType.Button || owner.CustomContextMenuManager.AppropriateContextMenuType == ContextMenuType.Form || owner.CustomContextMenuManager.AppropriateContextMenuType == ContextMenuType.TextSelected || owner.CustomContextMenuManager.AppropriateContextMenuType == ContextMenuType.ImageAndLink || owner.CustomContextMenuManager.AppropriateContextMenuType == ContextMenuType.Image || owner.CustomContextMenuManager.AppropriateContextMenuType == ContextMenuType.Link) { return(0); } else { return(owner.UseDefaultContextMenu ? defaultItemsHMenu : 0); }; } else { return(owner.UseDefaultContextMenu ? defaultItemsHMenu : 0); } }
public void mouseDidMoveOverElement(WebView sender, CFDictionaryPropertyBag elementInformation, uint modifierFlags) { object textcontent; elementInformation.RemoteRead("WebElementLinkURLKey", out textcontent, null, 0, null); if (!string.IsNullOrEmpty((string)textcontent)) { StatusTextChanged((string)textcontent); owner.StatusText = (string)textcontent; if ((string)textcontent != string.Empty) owner.LastSelectedLink = (string)textcontent; } else { StatusTextChanged(string.Empty); owner.StatusText = string.Empty; } textcontent = null; object el; elementInformation.RemoteRead("WebElementDOMNodeKey", out el, null, 0, null); if (el == null) { owner.setCurElSafe(null); return; } IDOMNode node = el as IDOMNode; if (node is IDOMElement || node is IDOMHTMLElement || node is IDOMHTMLTextAreaElement || node is IDOMHTMLInputElement && node != null) { owner.setCurElSafe(node); MouseDidMoveOverElement(sender, node); } else { el = null; node = null; GC.Collect(); } el = null; if (node != null) { node = null; } Marshal.ReleaseComObject(elementInformation); }
public int contextMenuItemsForElement(WebView sender, CFDictionaryPropertyBag element, int defaultItemsHMenu) { owner.CustomContextMenuManager.FireShowContextMenu(); if (owner.UseDefaultContextMenu) { if (owner.CustomContextMenuManager.AppropriateContextMenuType == ContextMenuType.Body || owner.CustomContextMenuManager.AppropriateContextMenuType == ContextMenuType.Button || owner.CustomContextMenuManager.AppropriateContextMenuType == ContextMenuType.Form || owner.CustomContextMenuManager.AppropriateContextMenuType == ContextMenuType.TextSelected || owner.CustomContextMenuManager.AppropriateContextMenuType == ContextMenuType.ImageAndLink || owner.CustomContextMenuManager.AppropriateContextMenuType == ContextMenuType.Image || owner.CustomContextMenuManager.AppropriateContextMenuType == ContextMenuType.Link) return 0; else return owner.UseDefaultContextMenu ? defaultItemsHMenu : 0; ; } else { return owner.UseDefaultContextMenu ? defaultItemsHMenu : 0; } }
public int contextMenuItemsForElement(WebView sender, CFDictionaryPropertyBag element, int defaultItemsHMenu) { return(0); }
public void contextMenuItemSelected(WebView sender, IntPtr item, CFDictionaryPropertyBag element) { }
public void mouseDidMoveOverElement(WebView sender, CFDictionaryPropertyBag elementInformation, uint modifierFlags) { }
public void decidePolicyForNewWindowAction(WebView webView, CFDictionaryPropertyBag actionInformation, WebURLRequest request, string frameName, IWebPolicyDecisionListener listener) { decidePolicyForNewWindowAction(webView, actionInformation, (IWebURLRequest)request, frameName, listener); }
public void decidePolicyForNavigationAction(WebView WebView, CFDictionaryPropertyBag actionInformation, IWebURLRequest request, webFrame frame, IWebPolicyDecisionListener listener) { if (AllowNavigation || AllowInitialNavigation) { //use basic authentication if username and password are supplied. if (pwdEnabled && string.IsNullOrEmpty(request.valueForHTTPHeaderField("Authorization")) && wbc!=null) { wbc.Navigate(request.url()); listener.ignore(); return; } listener.use(); } else listener.ignore(); }
public int contextMenuItemsForElement(WebView sender, CFDictionaryPropertyBag element, int defaultItemsHMenu) { return owner.IsWebBrowserContextMenuEnabled ? defaultItemsHMenu : 0; }
public int contextMenuItemsForElement(WebView sender, CFDictionaryPropertyBag element, int defaultItemsHMenu) { throw new NotImplementedException(); }
public void decidePolicyForNavigationAction(WebView webView, CFDictionaryPropertyBag actionInformation, WebURLRequest request, IWebFrame frame, IWebPolicyDecisionListener listener) { decidePolicyForNavigationAction(webView, actionInformation, (IWebURLRequest)request, frame, listener); }
public void willSubmitForm(webFrame frame, webFrame sourceFrame, IDOMElement form, CFDictionaryPropertyBag values, IWebFormSubmissionListener listener) { SubmitForm((HTMLElement)HTMLElement.Create(form), listener); }
public IWebEmbeddedView embeddedViewWithArguments(WebView sender, webFrame frame, CFDictionaryPropertyBag arguments) { throw new NotImplementedException(); }
public IWebEmbeddedView embeddedViewWithArguments(WebView sender, webFrame frame, CFDictionaryPropertyBag arguments) { return(new DefaultWebEmbeddedView()); }
public int contextMenuItemsForElement(WebView sender, CFDictionaryPropertyBag element, int defaultItemsHMenu) { return(owner.IsWebBrowserContextMenuEnabled ? defaultItemsHMenu : 0); }
public WebView createWebViewWithRequest(WebView sender, IWebURLRequest request, CFDictionaryPropertyBag windowFeatures) { if (owner.AllowNewWindows) { WebView view; CreateWebViewWithRequest(request, out view, true); return view; } else { return null; } }
public void decidePolicyForNewWindowAction(WebView WebView, CFDictionaryPropertyBag actionInformation, IWebURLRequest request, string frameName, IWebPolicyDecisionListener listener) { if (listener != null) listener.use(); string url = request.url(); NewWindowRequestUrlAvailable(url); }
public WebView createWebViewWithRequest(WebView sender, IWebURLRequest request, CFDictionaryPropertyBag windowFeatures) { if (owner.AllowNewWindows) { WebView view; CreateWebViewWithRequest(request, out view, true); return(view); } else { return(null); } }
public void willSubmitForm(webFrame frame, webFrame sourceFrame, IDOMElement form, CFDictionaryPropertyBag values, IWebFormSubmissionListener listener) { SubmitForm((HTMLElement)HTMLElement.Create(form),listener); }
public int contextMenuItemsForElement(WebView sender, CFDictionaryPropertyBag element, int defaultItemsHMenu) { if (!owner.IsWebBrowserContextMenuEnabled) /* {@@} */ { /* {@@} */ owner.ContextMenuShow(); /* {@@} */ } /* {@@} */ return owner.IsWebBrowserContextMenuEnabled ? defaultItemsHMenu : 0; }