diff options
author | E.Z. Hart <hartez@users.noreply.github.com> | 2016-04-25 10:26:40 -0600 |
---|---|---|
committer | Rui Marinho <me@ruimarinho.net> | 2016-04-25 12:26:40 -0400 |
commit | 6c0c11960b26c4ccb3322fec04e0eb6f55d9da07 (patch) | |
tree | 2cd4f17c98a2edb8bf3ecb6a8612f2774f3db294 /Xamarin.Forms.Platform.iOS/Renderers/WebViewRenderer.cs | |
parent | ee5654f8fe4f15817a8bd23e0613a6d0f9d4c9ec (diff) | |
download | xamarin-forms-6c0c11960b26c4ccb3322fec04e0eb6f55d9da07.tar.gz xamarin-forms-6c0c11960b26c4ccb3322fec04e0eb6f55d9da07.tar.bz2 xamarin-forms-6c0c11960b26c4ccb3322fec04e0eb6f55d9da07.zip |
Prep WebView and renderers for removal of InternalsVisibleTo (#120)
* Create custom event args class for script eval requests
Make IWebViewRenderer public
* Add IWebViewRenderer docs
* Add EvalRequested docs
* Move EvalRequested to Internals
IWebViewRenderer -> IWebViewDelegate
* Add docs
Diffstat (limited to 'Xamarin.Forms.Platform.iOS/Renderers/WebViewRenderer.cs')
-rw-r--r-- | Xamarin.Forms.Platform.iOS/Renderers/WebViewRenderer.cs | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Xamarin.Forms.Platform.iOS/Renderers/WebViewRenderer.cs b/Xamarin.Forms.Platform.iOS/Renderers/WebViewRenderer.cs index ee804a83..11ab72f2 100644 --- a/Xamarin.Forms.Platform.iOS/Renderers/WebViewRenderer.cs +++ b/Xamarin.Forms.Platform.iOS/Renderers/WebViewRenderer.cs @@ -1,6 +1,7 @@ using System; using System.Drawing; using System.ComponentModel; +using Xamarin.Forms.Internals; #if __UNIFIED__ using UIKit; using Foundation; @@ -12,7 +13,7 @@ using MonoTouch.Foundation; namespace Xamarin.Forms.Platform.iOS { - public class WebViewRenderer : UIWebView, IVisualElementRenderer, IWebViewRenderer + public class WebViewRenderer : UIWebView, IVisualElementRenderer, IWebViewDelegate { EventTracker _events; bool _ignoreSourceChanges; @@ -134,9 +135,9 @@ namespace Xamarin.Forms.Platform.iOS UpdateCanGoBackForward(); } - void OnEvalRequested(object sender, EventArg<string> eventArg) + void OnEvalRequested(object sender, EvalRequested eventArg) { - EvaluateJavascript(eventArg.Data); + EvaluateJavascript(eventArg.Script); } void OnGoBackRequested(object sender, EventArgs eventArgs) |