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

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: Simplify APIs Created 4 years, 11 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..69291f3d0435d6b42deb5e336cd8c0fff8d315da 100644
--- a/chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java
+++ b/chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java
@@ -92,12 +92,55 @@ 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
+ * 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 buttons should be tinted. Default is
+ * false and the action buttons will not be tinted. If true, all buttons will be tinted,
+ * regardless of their positions.
+ */
+ 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";
/**
+ * Key that specifies the unique id for an action button. To make a button to show on the
+ * toolbar, use {@link #TOOLBAR_ACTION_BUTTON_ID} as its id.
+ */
+ public static final String KEY_ID = "android.support.customtabs.customaction.ID";
+
+ /**
+ * The unique ID allocated to the action button that is shown on the toolbar.
+ */
+ public static final int TOOLBAR_ACTION_BUTTON_ID = 0;
+
+ /**
* 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