Index: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java |
index ee99a093ffefff274fccb4fd45b70436d90b5e1c..1e056b9d7fa8080850d2d28bcc487d1281d1faed 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabIntentDataProvider.java |
@@ -42,28 +42,10 @@ public class CustomTabIntentDataProvider { |
public static final String EXTRA_KEEP_ALIVE = "android.support.customtabs.extra.KEEP_ALIVE"; |
/** |
- * Extra bitmap that specifies the icon of the back button on the toolbar. If the client chooses |
- * not to customize it, a default close button will be used. |
+ * Boolean extra that enables the url bar to hide as the user scrolls down the page |
*/ |
- public static final String EXTRA_CLOSE_BUTTON_ICON = |
- "android.support.customtabs.extra.CLOSE_BUTTON_ICON"; |
- |
- /** |
- * Extra int that specifies state for showing the page title. Default is showing only the domain |
- * and no information about the title. |
- */ |
- public static final String EXTRA_TITLE_VISIBILITY_STATE = |
- "android.support.customtabs.extra.TITLE_VISIBILITY"; |
- |
- /** |
- * Don't show any title. Shows only the domain. |
- */ |
- public static final int NO_TITLE = 0; |
- |
- /** |
- * Shows the page title and the domain. |
- */ |
- public static final int SHOW_PAGE_TITLE = 1; |
+ public static final String EXTRA_ENABLE_URLBAR_HIDING = |
+ "android.support.customtabs.extra.ENABLE_URLBAR_HIDING"; |
/** |
* Extra boolean that specifies whether the custom action button should be tinted. Default is |
@@ -98,7 +80,7 @@ public class CustomTabIntentDataProvider { |
mSession = IntentUtils.safeGetBinderExtra(intent, CustomTabsIntent.EXTRA_SESSION); |
retrieveToolbarColor(intent, context); |
mEnableUrlBarHiding = IntentUtils.safeGetBooleanExtra( |
- intent, CustomTabsIntent.EXTRA_ENABLE_URLBAR_HIDING, false); |
+ intent, EXTRA_ENABLE_URLBAR_HIDING, false); |
mKeepAliveServiceIntent = IntentUtils.safeGetParcelableExtra(intent, EXTRA_KEEP_ALIVE); |
Bundle actionButtonBundle = |
@@ -125,7 +107,8 @@ public class CustomTabIntentDataProvider { |
} |
} |
- Bitmap bitmap = IntentUtils.safeGetParcelableExtra(intent, EXTRA_CLOSE_BUTTON_ICON); |
+ Bitmap bitmap = IntentUtils.safeGetParcelableExtra(intent, |
+ CustomTabsIntent.EXTRA_CLOSE_BUTTON_ICON); |
if (bitmap != null && !checkCloseButtonSize(context, bitmap)) { |
bitmap.recycle(); |
bitmap = null; |
@@ -153,7 +136,8 @@ public class CustomTabIntentDataProvider { |
mAnimationBundle = IntentUtils.safeGetBundleExtra( |
intent, CustomTabsIntent.EXTRA_EXIT_ANIMATION_BUNDLE); |
mTitleVisibilityState = |
- IntentUtils.safeGetIntExtra(intent, EXTRA_TITLE_VISIBILITY_STATE, NO_TITLE); |
+ IntentUtils.safeGetIntExtra(intent, |
+ CustomTabsIntent.EXTRA_TITLE_VISIBILITY_STATE, CustomTabsIntent.NO_TITLE); |
} |
/** |