Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(788)

Unified Diff: chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java

Issue 1557803002: [Custom Tabs] Implement Bottombar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java
diff --git a/chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java b/chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java
index 5f035bf3fbc6c77d27e90e6ed6ba5a4cbc1ebd89..d09b4bf1101b478cb9901f24987a93f994aa1f29 100644
--- a/chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java
+++ b/chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java
@@ -92,12 +92,61 @@ public class CustomTabsIntent {
"android.support.customtabs.extra.EXIT_ANIMATION_BUNDLE";
/**
+ * Extra bitmap that specifies the icon of the back button on the toolbar. If the client chooses
Ian Wen 2016/01/02 14:20:39 These five constants are moved from CustomTabsInte
+ * not to customize it, a default close button will be used.
+ */
+ 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;
+
+ /**
+ * Extra boolean that specifies whether the custom action button should be tinted. Default is
+ * false and the action button will not be tinted.
+ */
+ public static final String EXTRA_TINT_ACTION_BUTTON =
+ "android.support.customtabs.extra.TINT_ACTION_BUTTON";
+
+ /**
* Boolean that specifies whether a default share button will be shown in the menu.
*/
public static final String EXTRA_DEFAULT_SHARE_MENU_ITEM =
"android.support.customtabs.extra.SHARE_MENU_ITEM";
/**
+ * Extra that specifies the color of the bottom bar.
+ */
+ public static final String EXTRA_BOTTOM_BAR_COLOR =
+ "android.support.customtabs.extra.bottom_bar_color";
+
+ /**
+ * Use an {@code ArrayList<Bundle>} to specify bottom bar related params. There should be a
+ * separate {@link Bundle} for each bottom bar item.
+ */
+ public static final String EXTRA_BOTTOM_BAR_ITEMS =
+ "android.support.customtabs.extra.bottom_bar_items";
+
+ /**
+ * Key that specifies the button id for the bottom bar item.
+ */
+ public static final String KEY_ID = "android.support.customtabs.customaction.ID";
+
+ /**
* Convenience method to create a VIEW intent without a session for the given package.
* @param packageName The package name to set in the intent.
* @param data The data {@link Uri} to be used in the intent.

Powered by Google App Engine
This is Rietveld 408576698