summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/XLargeUi.java
diff options
context:
space:
mode:
authorJohn Reck <jreck@google.com>2011-03-18 11:55:48 -0700
committerJohn Reck <jreck@google.com>2011-03-18 12:42:42 -0700
commitb9a051bd9ed974c4d3d29a549bb7e00d8a95c33c (patch)
tree71fa1eeb7967185a961e84ae5a1502d6aad4e56b /src/com/android/browser/XLargeUi.java
parent38d67fe47c6fcf759ef64189f3dd503ef5f82143 (diff)
downloadpackages_apps_Browser-b9a051bd9ed974c4d3d29a549bb7e00d8a95c33c.zip
packages_apps_Browser-b9a051bd9ed974c4d3d29a549bb7e00d8a95c33c.tar.gz
packages_apps_Browser-b9a051bd9ed974c4d3d29a549bb7e00d8a95c33c.tar.bz2
use BrowserWebView for all UIs
Rename ScrollWebView->BrowserWebView Change-Id: Icce042be4ad054b1fc3d5c0f9500f8ea112479a4
Diffstat (limited to 'src/com/android/browser/XLargeUi.java')
-rw-r--r--src/com/android/browser/XLargeUi.java19
1 files changed, 5 insertions, 14 deletions
diff --git a/src/com/android/browser/XLargeUi.java b/src/com/android/browser/XLargeUi.java
index 13018af..92fdc97 100644
--- a/src/com/android/browser/XLargeUi.java
+++ b/src/com/android/browser/XLargeUi.java
@@ -16,7 +16,7 @@
package com.android.browser;
-import com.android.browser.ScrollWebView.ScrollListener;
+import com.android.browser.BrowserWebView.ScrollListener;
import android.animation.Animator;
import android.animation.Animator.AnimatorListener;
@@ -149,23 +149,14 @@ public class XLargeUi extends BaseUi implements ScrollListener {
@Override
public WebView createWebView(boolean privateBrowsing) {
// Create a new WebView
- ScrollWebView w = new ScrollWebView(mActivity, null,
- android.R.attr.webViewStyle, privateBrowsing);
- initWebViewSettings(w);
+ BrowserWebView w = (BrowserWebView) super.createWebView(privateBrowsing);
w.setScrollListener(this);
- boolean supportsMultiTouch = mActivity.getPackageManager()
- .hasSystemFeature(PackageManager.FEATURE_TOUCHSCREEN_MULTITOUCH);
- w.getSettings().setDisplayZoomControls(!supportsMultiTouch);
- w.setExpandedTileBounds(true); // smoother scrolling
return w;
}
@Override
public WebView createSubWebView(boolean privateBrowsing) {
- ScrollWebView web = (ScrollWebView) createWebView(privateBrowsing);
- // no scroll listener for subview
- web.setScrollListener(null);
- return web;
+ return super.createWebView(privateBrowsing);
}
@Override
@@ -174,7 +165,7 @@ public class XLargeUi extends BaseUi implements ScrollListener {
}
void stopWebViewScrolling() {
- ScrollWebView web = (ScrollWebView) mUiController.getCurrentWebView();
+ BrowserWebView web = (BrowserWebView) mUiController.getCurrentWebView();
if (web != null) {
web.stopScroll();
}
@@ -237,7 +228,7 @@ public class XLargeUi extends BaseUi implements ScrollListener {
@Override
void setActiveTab(Tab tab, boolean needsAttaching) {
- ScrollWebView view = (ScrollWebView) tab.getWebView();
+ BrowserWebView view = (BrowserWebView) tab.getWebView();
// TabControl.setCurrentTab has been called before this,
// so the tab is guaranteed to have a webview
if (view == null) {