Home | History | Annotate | Download | only in browser

Lines Matching defs:webview

28 import android.webkit.WebView;
48 // Directory to store thumbnails for each WebView.
71 * Return the current tab's main WebView. This will always return the main
72 * WebView for a given tab and not a subwindow.
73 * @return The current tab's WebView.
75 WebView getCurrentWebView() {
84 * Return the current tab's top-level WebView. This can return a subwindow
86 * @return The top-level WebView of the current tab.
88 WebView getCurrentTopWebView() {
100 WebView getCurrentSubWindow() {
163 final WebView w = createNewWebView();
269 outState.putBundle(Tab.WEBVIEW + i, t.getSavedState());
293 if (!t.restoreState(inState.getBundle(Tab.WEBVIEW + i))) {
302 Bundle state = inState.getBundle(Tab.WEBVIEW + i);
319 final Bundle b = inState.getBundle(Tab.WEBVIEW + i);
337 * WebView cache;
347 // store the WebView's state.
355 // free the WebView's unused memory (this includes the cache)
356 Log.w(LOGTAG, "Free WebView's unused memory and cache");
357 WebView view = getCurrentWebView();
398 * Show the tab that contains the given WebView.
399 * @param view The WebView used to find the tab.
401 Tab getTabFromView(WebView view) {
431 * Stop loading in all opened WebView including subWindows.
437 final WebView webview = t.getWebView();
438 if (webview != null) {
439 webview.stopLoading();
441 final WebView subview = t.getSubWebView();
443 webview.stopLoading();
454 WebView webview = t.getWebView();
455 if (webview == null) {
457 } else if (url.equals(webview.getUrl())
458 || url.equals(webview.getOriginalUrl())) {
490 * Recreate the main WebView of the given tab. Returns true if the WebView
496 final WebView w = t.getWebView();
504 // rebuilt the WebView.
514 // Create a new WebView. If this tab is the current tab, we need to put
523 // Save the new url in order to avoid deleting the WebView.
529 * Creates a new WebView and registers it with the global settings.
531 private WebView createNewWebView() {
532 // Create a new WebView
533 WebView w = new WebView(mActivity);
539 // Add this WebView to the settings observer list and update the
606 WebView mainView = newTab.getWebView();