summaryrefslogtreecommitdiffstats
path: root/src/com/android/browser/Tab.java
diff options
context:
space:
mode:
authorPankaj Garg <pgarg@codeaurora.org>2015-07-02 17:17:24 -0700
committerjrizzoli <joey@cyanogenmoditalia.it>2015-08-28 13:15:45 +0200
commit21dad566a57084c8c5eae66909f917ff7c1fd222 (patch)
tree6ad508be6d8cebba36c7521e01e8d80c9f285979 /src/com/android/browser/Tab.java
parent680d3981b289233b9ff3d60683e99880dc90559c (diff)
downloadandroid_packages_apps_Gello-21dad566a57084c8c5eae66909f917ff7c1fd222.tar.gz
android_packages_apps_Gello-21dad566a57084c8c5eae66909f917ff7c1fd222.tar.bz2
android_packages_apps_Gello-21dad566a57084c8c5eae66909f917ff7c1fd222.zip
Use tiles for bookmarks
- Use tile based bitmap for bookmarks and history - Settings UI cleanup Change-Id: If959cb0b8f110035b8dd2fefe8106e9c5d30f4f1
Diffstat (limited to 'src/com/android/browser/Tab.java')
-rw-r--r--src/com/android/browser/Tab.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/com/android/browser/Tab.java b/src/com/android/browser/Tab.java
index 3e3c9aaf..ef4c3806 100644
--- a/src/com/android/browser/Tab.java
+++ b/src/com/android/browser/Tab.java
@@ -193,6 +193,8 @@ class Tab implements PictureListener {
// determine if webview is destroyed to MemoryMonitor
private boolean mWebViewDestroyedByMemoryMonitor;
+ private String mTouchIconUrl;
+
private Observable mFirstPixelObservable;
private Observable mTabHistoryUpdateObservable;
@@ -634,6 +636,7 @@ class Tab implements PictureListener {
@Override
public void beforeNavigation(WebView view, String url) {
+ mTouchIconUrl = null;
if (BrowserCommandLine.hasSwitch("ui-low-power-mode")) {
return;
}
@@ -726,6 +729,9 @@ class Tab implements PictureListener {
mCurrentState.mIncognito = view.isPrivateBrowsingEnabled();
}
+ public String getTouchIconUrl() {
+ return mTouchIconUrl;
+ }
public boolean isTabFullScreen() {
return mFullScreen;
@@ -771,6 +777,8 @@ class Tab implements PictureListener {
mWebViewController.attachSubWindow(Tab.this);
transport.setWebView(mSubView);
} else {
+ capture();
+
final Tab newTab = mWebViewController.openTab(url,
Tab.this, true, true);
// This is special case for rendering links on a webpage in
@@ -919,6 +927,7 @@ class Tab implements PictureListener {
mContext, cr, view);
mTouchIconLoader.execute(url);
}
+ mTouchIconUrl = url;
}
@Override