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

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

Issue 1509713004: Add a default share button to the menu of Custom Tabs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years 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 cb33ff719187d87afe8cb516419cc95fa51af527..5f035bf3fbc6c77d27e90e6ed6ba5a4cbc1ebd89 100644
--- a/chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java
+++ b/chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java
@@ -92,6 +92,12 @@ public class CustomTabsIntent {
"android.support.customtabs.extra.EXIT_ANIMATION_BUNDLE";
/**
+ * 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";
+
+ /**
* 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