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

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

Issue 1716683002: [Custom Tabs] Allow clients to display RemoteViews on the bottom bar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make findbug happy Created 4 years, 10 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 3cb66a23eafa1061388b3d2bffb419a55a343937..c3c3a9139c8a07ec2340a9e260e4940a5f66d4fc 100644
--- a/chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java
+++ b/chrome/android/java/src/android/support/customtabs/CustomTabsIntent.java
@@ -14,6 +14,7 @@ import android.net.Uri;
import android.os.Build;
import android.os.Bundle;
import android.os.IBinder;
+import android.widget.RemoteViews;
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
@@ -162,6 +163,14 @@ public class CustomTabsIntent {
"android.support.customtabs.extra.SECONDARY_TOOLBAR_COLOR";
/**
+ * Extra that specifies the {@link RemoteViews} showing on the secondary toolbar. If this extra
+ * is set, the other secondary toolbar configurations will be overriden. The height of the
+ * {@link RemoteViews} should not exceed 56dp.
+ */
+ public static final String EXTRA_SECONDARY_TOOLBAR_REMOTEVIEWS =
+ "android.support.customtabs.extra.EXTRA_SECONDARY_TOOLBAR_REMOTEVIEWS";
+
+ /**
* 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