public void decidePolicyForNavigationAction(WebView WebView, CFDictionaryPropertyBag actionInformation, WebURLRequest request, webFrame frame, IWebPolicyDecisionListener listener) { if (AllowNavigation || AllowInitialNavigation) listener.use(); else listener.ignore(); }
public void decidePolicyForGeolocationRequest(WebView sender, webFrame frame, WebSecurityOrigin origin, IWebGeolocationPolicyListener listener) { if (GeolocationReq(sender, frame, origin) == true) { if (listener != null) { listener.allow(); } } else { listener.deny(); } }
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, WebURLRequest 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 didClearWindowObject(WebView WebView, IntPtr context, IntPtr windowScriptObject, webFrame frame) { DidClearWindowObject(WebView, context, windowScriptObject, frame); }
public void unableToImplementPolicyWithError(WebView WebView, WebError error, webFrame frame) { }
bool uiDelegate_GeolocationReq(WebView sender, webFrame frame, IWebSecurityOrigin o) { GeolocationRequestEventArgs args = new GeolocationRequestEventArgs(Url.ToString(), true, o); GeolocationPositionRequest(this, args); return args.Allow; }
public IWebEmbeddedView embeddedViewWithArguments(WebView sender, webFrame frame, CFDictionaryPropertyBag arguments) { throw new NotImplementedException(); }
public void didCommitLoadForFrame(WebView WebView, webFrame frame) { DidCommitLoadForFrame(WebView, frame); }
public void printFrame(WebView WebView, webFrame frame) { owner.ShowPrintDialog(); }
public void textFieldDidEndEditing(IDOMHTMLInputElement element, webFrame frame) { TextFieldEndEditing((HTMLElement)HTMLElement.Create(element)); }
public void willSubmitForm(webFrame frame, webFrame sourceFrame, IDOMElement form, CFDictionaryPropertyBag values, IWebFormSubmissionListener listener) { SubmitForm((HTMLElement)HTMLElement.Create(form),listener); }
public void textDidChangeInTextField(IDOMHTMLInputElement element, webFrame frame) { TextChangedInField((HTMLElement)HTMLElement.Create(element)); }
public int runBeforeUnloadConfirmPanelWithMessage(WebView sender, string message, webFrame initiatedByFrame) { return(RunJavaScriptPromptBeforeUnload(sender, message)); }
public void exceededDatabaseQuota(WebView sender, webFrame frame, WebSecurityOrigin origin, string databaseIdentifier) { }
public void didFirstVisuallyNonEmptyLayoutInFrame(WebView sender, webFrame frame) { throw new NotImplementedException(); }
public int runBeforeUnloadConfirmPanelWithMessage(WebView sender, string message, webFrame initiatedByFrame) { return RunJavaScriptPromptBeforeUnload(sender, message); }
public void didCancelClientRedirectForFrame(WebView WebView, webFrame frame) { DidCancelClientRedirectForFrame(WebView, frame); }
public void didReceiveServerRedirectForProvisionalLoadForFrame(WebView WebView, webFrame frame) { DidRecieveServerRedirectForProvisionalLoadForFrame(WebView, frame); }
public void decidePolicyForGeolocationRequest(WebView sender, webFrame frame, WebSecurityOrigin origin, IWebGeolocationPolicyListener listener) { if (GeolocationReq(sender, frame, origin) == true) { if (listener != null) { listener.allow(); } } else listener.deny(); }
public void didFailProvisionalLoadWithError(WebView WebView, WebError error, webFrame frame) { DidFailProvisionalLoadWithError(WebView, error, frame); }
public int doPlatformCommand(IDOMHTMLInputElement element, string command, webFrame frame) { return(0); }
public void decidePolicyForNavigationAction(WebView WebView, CFDictionaryPropertyBag actionInformation, IWebURLRequest request, webFrame frame, IWebPolicyDecisionListener listener) { if (AllowNavigation || AllowInitialNavigation) { listener.use(); } else { listener.ignore(); } }
public int shouldHandleEvent(IDOMHTMLInputElement element, IntPtr @event, webFrame frame) { throw new NotImplementedException(); }
public int runBeforeUnloadConfirmPanelWithMessage(WebView sender, string message, webFrame initiatedByFrame) { throw new NotImplementedException(); }
public void textDidChangeInTextArea(IDOMHTMLTextAreaElement element, webFrame frame) { TextChangedInArea((HTMLElement)HTMLElement.Create(element)); }
public void willPerformClientRedirectToURL(WebView WebView, string url, double delaySeconds, DateTime fireDate, webFrame frame) { WillPerformClientRedirectToURL(WebView, url, delaySeconds, fireDate, frame); }
public void didFinishDocumentLoadForFrame(WebView sender, webFrame frame) { throw new NotImplementedException(); }
public void didHandleOnloadEventsForFrame(WebView sender, webFrame frame) { throw new NotImplementedException(); }
public void willSubmitForm(webFrame frame, webFrame sourceFrame, IDOMElement form, CFDictionaryPropertyBag values, IWebFormSubmissionListener listener) { SubmitForm((HTMLElement)HTMLElement.Create(form), listener); }
public void didChangeLocationWithinPageForFrame(WebView WebView, webFrame frame) { DidChangeLocationWithinPageForFrame(WebView, frame); }
public void didStartProvisionalLoadForFrame(WebView WebView, webFrame frame) { DidStartProvisionalLoadForFrame(WebView, frame); }
public void didReceiveIcon(WebView WebView, int hBitmap, webFrame frame) { DidRecieveIcon(WebView, hBitmap, frame); }
public void didReceiveTitle(WebView WebView, string title, webFrame frame) { DidRecieveTitle(WebView, title, frame); }
public int runDatabaseSizeLimitPrompt(WebView WebView, string displayName, webFrame initiatedByFrame) { throw new NotImplementedException(); }
public void willCloseFrame(WebView WebView, webFrame frame) { WillCloseFrame(WebView, frame); }
public void didFailLoadWithError(WebView WebView, WebError error, webFrame forFrame) { DidFailLoadWithError(WebView, error, forFrame); }
public void didFinishLoadForFrame(WebView WebView, webFrame frame) { DidFinishLoadForFrame(WebView, frame); }
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(); } }
private void frameLoadDelegate_DidClearWindowObject(WebView WebView, IntPtr context, IntPtr windowScriptObject, webFrame frame) { CreateWindowScriptObject(new JSContext(context)); }
public void printFrame(WebView WebView, webFrame frame) { }