diff --git a/framework/src/org/apache/cordova/CordovaChromeClient.java b/framework/src/org/apache/cordova/CordovaChromeClient.java index a089cfd6..5977e00e 100755 --- a/framework/src/org/apache/cordova/CordovaChromeClient.java +++ b/framework/src/org/apache/cordova/CordovaChromeClient.java @@ -47,6 +47,14 @@ import android.widget.RelativeLayout; /** * This class is the WebChromeClient that implements callbacks for our web view. + * The kind of callbacks that happen here are on the chrome outside the document, + * such as onCreateWindow(), onConsoleMessage(), onProgressChanged(), etc. Related + * to but different than CordovaWebViewClient. + * + * @see WebChromeClient + * @see WebView guide + * @see CordovaWebViewClient + * @see CordovaWebView */ public class CordovaChromeClient extends WebChromeClient { diff --git a/framework/src/org/apache/cordova/CordovaWebView.java b/framework/src/org/apache/cordova/CordovaWebView.java index fe2e78a9..cb1f2208 100755 --- a/framework/src/org/apache/cordova/CordovaWebView.java +++ b/framework/src/org/apache/cordova/CordovaWebView.java @@ -56,6 +56,12 @@ import android.webkit.WebView; import android.webkit.WebSettings.LayoutAlgorithm; import android.widget.FrameLayout; +/* + * This class is our web view. + * + * @see WebView guide + * @see WebView + */ public class CordovaWebView extends WebView { public static final String TAG = "CordovaWebView"; @@ -208,7 +214,9 @@ public class CordovaWebView extends WebView { this.setup(); } - + /** + * set the WebViewClient, but provide special case handling for IceCreamSandwich. + */ private void initWebViewClient(CordovaInterface cordova) { if(android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.HONEYCOMB || android.os.Build.VERSION.SDK_INT > android.os.Build.VERSION_CODES.JELLY_BEAN_MR1) diff --git a/framework/src/org/apache/cordova/CordovaWebViewClient.java b/framework/src/org/apache/cordova/CordovaWebViewClient.java index b3a31aea..e465ffa8 100755 --- a/framework/src/org/apache/cordova/CordovaWebViewClient.java +++ b/framework/src/org/apache/cordova/CordovaWebViewClient.java @@ -45,6 +45,15 @@ import android.webkit.WebViewClient; /** * This class is the WebViewClient that implements callbacks for our web view. + * The kind of callbacks that happen here are regarding the rendering of the + * document instead of the chrome surrounding it, such as onPageStarted(), + * shouldOverrideUrlLoading(), etc. Related to but different than + * CordovaChromeClient. + * + * @see WebViewClient + * @see WebView guide + * @see CordovaChromeClient + * @see CordovaWebView */ public class CordovaWebViewClient extends WebViewClient {