Lines Matching defs:WebView
67 * in a WebView, you must add the {@code INTERNET} permissions to your
76 * <a href="{@docRoot}guide/webapps/webview.html">Building Web Apps in WebView</a>.</p>
80 * <p>By default, a WebView provides no browser-like widgets, does not
87 * with a WebView. For example:
95 * <p>To provide a WebView in your own Activity, include a {@code <WebView>} in your layout,
96 * or set the entire Activity window as a WebView during {@link
99 * WebView webview = new WebView(this);
117 * <p>A WebView has several customization points where you can add your
131 * android.webkit.WebViewClient#shouldOverrideUrlLoading(WebView,String)
136 * <li>Injecting Java objects into the WebView using the
137 * {@link android.webkit.WebView#addJavascriptInterface} method. This
154 * public void onProgressChanged(WebView view, int progress) {
161 * public void onReceivedError(WebView view, int errorCode, String description, String failingUrl) {
193 * the WebView to reload the current page. If you don't want that, you
195 * changes, and then just leave the WebView alone. It'll automatically
211 * <p>By default, WebView scales a web page so that it is drawn at a size that matches the default
215 * Starting with API level {@link android.os.Build.VERSION_CODES#ECLAIR}, WebView supports DOM, CSS,
257 * It is recommended to set the WebView layout height to a fixed value or to
261 * for the height none of the WebView's parents should use a
266 * <p>Setting the WebView's height to {@link android.view.ViewGroup.LayoutParams#WRAP_CONTENT}
278 * supported. If such a width is used the WebView will attempt to use the width of the parent
284 // The WebView is a thin API class that delegates its public API to a backend WebViewProvider
285 // class instance. WebView extends {@link AbsoluteLayout} for backward compatibility reasons.
290 public class WebView extends AbsoluteLayout
304 private static final String LOGTAG = "WebView";
308 // set in the WebView constructor.
312 * Transportation object for returning WebView across thread boundaries.
315 private WebView mWebview;
318 * Sets the WebView to the transportation object.
320 * @param webview the WebView to transport
322 public synchronized void setWebView(WebView webview) {
327 * Gets the WebView object.
329 * @return the transported WebView object
331 public synchronized WebView getWebView() {
390 * Used to provide notification that the WebView's picture has changed.
391 * See {@link WebView#capturePicture} for details of the picture.
393 * @param view the WebView that owns the picture
400 public void onNewPicture(WebView view, Picture picture);
486 * {@link WebView#getHitTestResult()} for details. May either be null
497 * Constructs a new WebView with a Context object.
501 public WebView(Context context) {
506 * Constructs a new WebView with layout parameters.
511 public WebView(Context context, AttributeSet attrs) {
516 * Constructs a new WebView with layout parameters and a default style.
524 public WebView(Context context, AttributeSet attrs, int defStyleAttr) {
529 * Constructs a new WebView with layout parameters and a default style.
541 public WebView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes) {
546 * Constructs a new WebView with layout parameters and a default style.
553 * @param privateBrowsing whether this WebView will be initialized in
557 * WebView and will be removed in a future release. Prefer using
562 public WebView(Context context, AttributeSet attrs, int defStyleAttr,
568 * Constructs a new WebView with layout parameters, a default style and a set
569 * of custom Javscript interfaces to be added to this WebView at initialization
581 * @param privateBrowsing whether this WebView will be initialized in
586 protected WebView(Context context, AttributeSet attrs, int defStyleAttr,
595 protected WebView(Context context, AttributeSet attrs, int defStyleAttr, int defStyleRes,
704 * @deprecated Saving passwords in WebView will not be supported in future versions.
751 * Destroys the internal state of this WebView. This method should be called
752 * after this WebView has been removed from the view system. No other
753 * methods may be called on this WebView after destroy.
794 * Informs WebView of the network state. This is used to set
806 * Saves the state of this WebView used in
808 * method no longer stores the display data for this WebView. The previous
812 * @param outState the Bundle to store this WebView's state
826 * overwritten with this WebView's picture data.
840 * this WebView is hardware accelerated.
855 * Restores the state of this WebView from the given Bundle. This method is
857 * and should be called to restore the state of this WebView. If
858 * it is called after this WebView has had a chance to build state (load
861 * display data for this WebView.
878 * that are set by default by this WebView, such as those
880 * values may be overriden by this WebView's defaults.
898 * Loads the URL with postData using "POST" method into this WebView. If url
916 * Loads the given data into this WebView using a 'data' scheme URL.
950 * Loads the given data into this WebView, using baseUrl as the base URL for
963 * the WebView as a plain string (i.e. not part of a data URL) and any URL-encoded
1041 * Gets whether this WebView has a back history item.
1043 * @return true iff this WebView has a back history item
1051 * Goes back in the history of this WebView.
1059 * Gets whether this WebView has a forward history item.
1069 * Goes forward in the history of this WebView.
1102 * Gets whether private browsing is enabled in this WebView.
1110 * Scrolls the contents of this WebView up by half the view size.
1121 * Scrolls the contents of this WebView down by half the page size.
1133 * the current state of the WebView is ready to be drawn.
1136 * immediately be reflected visually by subsequent {@link WebView#onDraw} invocations. The
1138 * the DOM at the current time are ready to be drawn the next time the {@link WebView}
1158 * <p>To guarantee that the {@link WebView} will successfully render the first frame
1162 * <li>If the {@link WebView}'s visibility is set to {@link View#VISIBLE VISIBLE} then
1163 * the {@link WebView} must be attached to the view hierarchy.</li>
1164 * <li>If the {@link WebView}'s visibility is set to {@link View#INVISIBLE INVISIBLE}
1165 * then the {@link WebView} must be attached to the view hierarchy and must be made
1167 * <li>If the {@link WebView}'s visibility is set to {@link View#GONE GONE} then the
1168 * {@link WebView} must be attached to the view hierarchy and its
1175 * WebView} is offscreen to avoid flickering. See {@link WebSettings#setOffscreenPreRaster} for
1188 * Clears this WebView so that onDraw() will draw nothing but white background,
1190 * @deprecated Use WebView.loadUrl("about:blank") to reliably reset the view state
1200 * Gets a new picture that captures the current contents of this WebView.
1202 * limited to the area currently displayed by this WebView. Also, the
1218 * @deprecated Use {@link #onDraw} to obtain a bitmap snapshot of the WebView, or
1221 * @return a picture that captures the current contents of this WebView
1245 * temporarily hide a visible WebView by using a custom PrintDocumentAdapter instance
1258 * Gets the current scale of this WebView.
1274 * Sets the initial scale for this WebView. 0 means default.
1278 * If the content fits into the WebView control by width, then
1282 * by width into the WebView control, otherwise not.
1284 * If initial scale is greater than 0, WebView starts with this value
1297 * Invokes the graphical zoom picker widget for this WebView. This will
1299 * level of this WebView.
1455 * is a global requests, not restricted to just this WebView. This can be
1473 * Pauses any extra processing associated with this WebView and its
1474 * associated DOM, plugins, JavaScript etc. For example, if this WebView is
1476 * network traffic. When this WebView is again "active", call onResume().
1485 * Resumes a WebView after a previous call to onPause().
1493 * Gets whether this WebView is paused, meaning onPause() was called.
1503 * Informs this WebView that memory is low so that it can free any available
1528 * it does not remove any saved form data from this WebView's store. To do
1537 * Tells this WebView to clear its internal back/forward list.
1569 * Gets the WebBackForwardList for this WebView. This contains the
1639 * Starts an ActionMode for finding text in this WebView. Only works if this
1640 * WebView is attached to the view system.
1643 * Otherwise, the last String searched for in this WebView will
1649 * implementing a custom find dialog using WebView.findAllAsync()
1687 * For apps targeting the L release, WebView has a new default behavior that reduces
1765 * @param listener an implementation of WebView.PictureListener
1775 * Injects the supplied Java object into this WebView. The object is
1806 * injected object's public fields. Use of this method in a WebView
1810 * method in a WebView which could contain untrusted content.</li>
1812 * thread of this WebView. Care is therefore required to maintain thread
1821 * @param object the Java object to inject into this WebView's JavaScript
1831 * Removes a previously injected Java object from this WebView. Note that
1877 * WebView.
1879 * @return a WebSettings object that can be used to control this WebView's
1891 * code running inside WebViews. Please refer to WebView documentation
1924 * Puts this WebView into text selection mode. Do not rely on this
1936 * @deprecated WebView no longer needs to implement
1945 * @deprecated WebView no longer needs to implement
1954 * @deprecated WebView should not have implemented
1979 * Gets the zoom controls for this WebView, as a separate View. The caller
1983 * built-in zoom mechanisms for the WebView, as opposed to these separate
1997 * Gets whether this WebView can be zoomed in.
1999 * @return true if this WebView can be zoomed in
2012 * Gets whether this WebView can be zoomed out.
2014 * @return true if this WebView can be zoomed out
2027 * Performs a zoom operation in this WebView.
2042 * Performs zoom in in this WebView.
2052 * Performs zoom out in this WebView.
2089 // Interface for WebView providers
2106 * and fields, and make super-class calls in this WebView instance.
2113 return WebView.super.getScrollBarStyle();
2117 WebView.super.scrollTo(scrollX, scrollY);
2121 WebView.super.computeScroll();
2125 return WebView.super.onHoverEvent(event);
2129 return WebView.super.performAccessibilityActionInternal(action, arguments);
2133 return WebView.super.performLongClick();
2137 return WebView.super.setFrame(left, top, right, bottom);
2141 return WebView.super.dispatchKeyEvent(event);
2145 return WebView.super.onGenericMotionEvent(event);
2149 return WebView.super.requestFocus(direction, previouslyFocusedRect);
2153 WebView.super.setLayoutParams(params);
2162 WebView.this.overScrollBy(deltaX, deltaY, scrollX, scrollY, scrollRangeX, scrollRangeY,
2167 WebView.this.awakenScrollBars(duration);
2171 WebView.this.awakenScrollBars(duration, invalidate);
2175 return WebView.this.getVerticalScrollFactor();
2179 return WebView.this.getHorizontalScrollFactor();
2183 WebView.this.setMeasuredDimension(measuredWidth, measuredHeight);
2187 WebView.this.onScrollChanged(l, t, oldl, oldt);
2191 return WebView.this.getHorizontalScrollbarHeight();
2196 WebView.super.onDrawVerticalScrollBar(canvas, scrollBar, l, t, r, b);
2202 WebView.this.mScrollX = scrollX;
2207 WebView.this.mScrollY = scrollY;
2236 * In addition to the FindListener that the user may set via the WebView.setFindListener
2287 "A WebView method was called on thread '" +
2289 "All WebView methods must be called on the same thread. " +
2329 // This method may be called in the constructor chain, before the WebView provider is
2438 return WebView.class.getName();
2507 // This method may be called in the constructor chain, before the WebView provider is