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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabContentHandler.java

Issue 1305253006: [Custom Tabs]Add API for updating action button as ContentProvider (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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/org/chromium/chrome/browser/customtabs/CustomTabContentHandler.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabContentHandler.java b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabContentHandler.java
index 3dd13b87de886ddb754325f26760449d5ff89501..9a952d5234072fadafcc320967bb8475a9b0215d 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabContentHandler.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabContentHandler.java
@@ -5,6 +5,7 @@
package org.chromium.chrome.browser.customtabs;
import android.content.Intent;
+import android.graphics.Bitmap;
import android.os.IBinder;
import org.chromium.content_public.browser.LoadUrlParams;
@@ -35,4 +36,10 @@ public interface CustomTabContentHandler {
* @return Whether the intent should be ignored.
*/
boolean shouldIgnoreIntent(Intent intent);
+
+ /**
+ * Updates the content of custom action button shown on the toolbar.
+ * @return Whether the action button has been updated.
+ */
+ boolean updateActionButton(Bitmap bitmap, String description);
}

Powered by Google App Engine
This is Rietveld 408576698