mirror of
https://github.com/apache/cordova-android.git
synced 2025-01-31 17:32:51 +08:00
Add javadoc comments to source classes
This commit is contained in:
parent
39fc45b8d8
commit
64d2ae9ad4
@ -47,6 +47,14 @@ import android.widget.RelativeLayout;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This class is the WebChromeClient that implements callbacks for our web view.
|
* 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 <a href="http://developer.android.com/reference/android/webkit/WebChromeClient.html">WebChromeClient</a>
|
||||||
|
* @see <a href="http://developer.android.com/guide/webapps/webview.html">WebView guide</a>
|
||||||
|
* @see CordovaWebViewClient
|
||||||
|
* @see CordovaWebView
|
||||||
*/
|
*/
|
||||||
public class CordovaChromeClient extends WebChromeClient {
|
public class CordovaChromeClient extends WebChromeClient {
|
||||||
|
|
||||||
|
@ -56,6 +56,12 @@ import android.webkit.WebView;
|
|||||||
import android.webkit.WebSettings.LayoutAlgorithm;
|
import android.webkit.WebSettings.LayoutAlgorithm;
|
||||||
import android.widget.FrameLayout;
|
import android.widget.FrameLayout;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* This class is our web view.
|
||||||
|
*
|
||||||
|
* @see <a href="http://developer.android.com/guide/webapps/webview.html">WebView guide</a>
|
||||||
|
* @see <a href="http://developer.android.com/reference/android/webkit/WebView.html">WebView</a>
|
||||||
|
*/
|
||||||
public class CordovaWebView extends WebView {
|
public class CordovaWebView extends WebView {
|
||||||
|
|
||||||
public static final String TAG = "CordovaWebView";
|
public static final String TAG = "CordovaWebView";
|
||||||
@ -208,7 +214,9 @@ public class CordovaWebView extends WebView {
|
|||||||
this.setup();
|
this.setup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* set the WebViewClient, but provide special case handling for IceCreamSandwich.
|
||||||
|
*/
|
||||||
private void initWebViewClient(CordovaInterface cordova) {
|
private void initWebViewClient(CordovaInterface cordova) {
|
||||||
if(android.os.Build.VERSION.SDK_INT < android.os.Build.VERSION_CODES.HONEYCOMB ||
|
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)
|
android.os.Build.VERSION.SDK_INT > android.os.Build.VERSION_CODES.JELLY_BEAN_MR1)
|
||||||
|
@ -45,6 +45,15 @@ import android.webkit.WebViewClient;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This class is the WebViewClient that implements callbacks for our web view.
|
* 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 <a href="http://developer.android.com/reference/android/webkit/WebViewClient.html">WebViewClient</a>
|
||||||
|
* @see <a href="http://developer.android.com/guide/webapps/webview.html">WebView guide</a>
|
||||||
|
* @see CordovaChromeClient
|
||||||
|
* @see CordovaWebView
|
||||||
*/
|
*/
|
||||||
public class CordovaWebViewClient extends WebViewClient {
|
public class CordovaWebViewClient extends WebViewClient {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user