public void decidePolicyForNavigationAction(WebView WebView, CFDictionaryPropertyBag actionInformation, WebURLRequest request, webFrame frame, IWebPolicyDecisionListener listener) { if (AllowNavigation || AllowInitialNavigation) listener.use(); else listener.ignore(); }
public void decidePolicyForNewWindowAction(WebView WebView, CFDictionaryPropertyBag actionInformation, WebURLRequest request, string frameName, IWebPolicyDecisionListener listener) { if (AllowNewWindows) listener.use(); else listener.ignore(); }
public void decidePolicyForMIMEType(WebView WebView, string type, IWebURLRequest request, webFrame frame, IWebPolicyDecisionListener listener) { if (WebView.canShowMIMEType(type) == 0 && !request.url().StartsWith("file:") && !type.Contains("pdf")) { if (AllowDownloads) listener.download(); else listener.ignore(); } else { listener.use(); Owner.tempmimetype = type; } }
public void decidePolicyForMIMEType(WebView webView, string type, IWebURLRequest request, IWebFrame frame, IWebPolicyDecisionListener listener) { // todo: add support for showing custom MIME type documents // and for changing which MIME types are handled here if (webView.canShowMIMEType(type) == 0) { if (AllowDownloads) listener.download(); else listener.ignore(); } else { listener.use(); } }
public void decidePolicyForMIMEType(WebView WebView, string type, IWebURLRequest request, webFrame frame, IWebPolicyDecisionListener listener) { // todo: add support for showing custom MIME type documents // and for changing which MIME types are handled here if (WebView.canShowMIMEType(type) == 0) { if (AllowDownloads) { listener.download(); } else { listener.ignore(); } } else { listener.use(); } }
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 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, WebURLRequest request, IWebFrame frame, IWebPolicyDecisionListener listener) { decidePolicyForNavigationAction(webView, actionInformation, (IWebURLRequest)request, frame, 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 void decidePolicyForMIMEType(WebView WebView, string type, IWebURLRequest request, webFrame frame, IWebPolicyDecisionListener listener) { try { if (WebView.canShowMIMEType(type) == 0 && !request.url().StartsWith("file:") && !type.Contains("pdf")) { if (AllowDownloads) { listener.download(); } else { listener.ignore(); } } else { listener.use(); Owner.tempmimetype = type; } } catch { } }
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 decidePolicyForMIMEType(WebView webView, string type, WebURLRequest request, IWebFrame frame, IWebPolicyDecisionListener listener) { decidePolicyForMIMEType(webView, type, (IWebURLRequest)request, frame, listener); }
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 decidePolicyForMIMEType(WebView webView, string type, IWebURLRequest request, IWebFrame frame, IWebPolicyDecisionListener listener) { listener.use(); }