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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java

Issue 2273033002: Add Notification images (Android without custom layouts) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@herodesktop
Patch Set: Fix EXTRA_PICTURE test Created 4 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java b/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java
index ffb3136b989940c66705fdf6111be7510e2e6963..9bde913907ab8f554b7979de6765544f8b1cb066 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationBuilderBase.java
@@ -65,6 +65,7 @@ public abstract class NotificationBuilderBase {
protected CharSequence mBody;
protected CharSequence mOrigin;
protected CharSequence mTickerText;
+ protected Bitmap mImage;
protected Bitmap mLargeIcon;
protected int mSmallIconId;
protected Bitmap mSmallIconBitmap;
@@ -115,6 +116,14 @@ public abstract class NotificationBuilderBase {
}
/**
+ * Sets the content image to be prominently displayed when the notification is expanded.
+ */
+ public NotificationBuilderBase setImage(@Nullable Bitmap image) {
+ mImage = image;
+ return this;
+ }
+
+ /**
* Sets the large icon that is shown in the notification.
*/
public NotificationBuilderBase setLargeIcon(@Nullable Bitmap icon) {
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/notifications/NotificationPlatformBridge.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698