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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/notifications/ChromeNotificationBuilder.java

Issue 2702963002: Migrating media notifications to ChromeNotificationBuilder (Closed)
Patch Set: rebase Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.notifications; 5 package org.chromium.chrome.browser.notifications;
6 6
7 import android.app.Notification; 7 import android.app.Notification;
8 import android.app.PendingIntent; 8 import android.app.PendingIntent;
9 import android.graphics.Bitmap; 9 import android.graphics.Bitmap;
10 import android.graphics.drawable.Icon; 10 import android.graphics.drawable.Icon;
11 import android.support.v4.media.session.MediaSessionCompat;
11 import android.widget.RemoteViews; 12 import android.widget.RemoteViews;
12 13
13 /** 14 /**
14 * Abstraction over Notification.Builder and NotificationCompat.Builder interfac es. 15 * Abstraction over Notification.Builder and NotificationCompat.Builder interfac es.
15 * 16 *
16 * TODO(awdf) Remove this once we've updated to revision 26 of the support libra ry. 17 * TODO(awdf) Remove this once we've updated to revision 26 of the support libra ry.
17 */ 18 */
18 public interface ChromeNotificationBuilder { 19 public interface ChromeNotificationBuilder {
19 ChromeNotificationBuilder setAutoCancel(boolean autoCancel); 20 ChromeNotificationBuilder setAutoCancel(boolean autoCancel);
20 21
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 ChromeNotificationBuilder setOnlyAlertOnce(boolean onlyAlertOnce); 66 ChromeNotificationBuilder setOnlyAlertOnce(boolean onlyAlertOnce);
66 67
67 ChromeNotificationBuilder setPublicVersion(Notification publicNotification); 68 ChromeNotificationBuilder setPublicVersion(Notification publicNotification);
68 69
69 ChromeNotificationBuilder setContent(RemoteViews views); 70 ChromeNotificationBuilder setContent(RemoteViews views);
70 71
71 ChromeNotificationBuilder setStyle(Notification.BigPictureStyle style); 72 ChromeNotificationBuilder setStyle(Notification.BigPictureStyle style);
72 73
73 ChromeNotificationBuilder setStyle(Notification.BigTextStyle bigTextStyle); 74 ChromeNotificationBuilder setStyle(Notification.BigTextStyle bigTextStyle);
74 75
76 ChromeNotificationBuilder setGroupSummary(boolean isGroupSummary);
77
78 ChromeNotificationBuilder setMediaStyle(MediaSessionCompat session, int[] ac tions,
79 PendingIntent intent, boolean showCancelButton);
80
75 Notification buildWithBigContentView(RemoteViews bigView); 81 Notification buildWithBigContentView(RemoteViews bigView);
76 82
77 Notification buildWithBigTextStyle(String bigText); 83 Notification buildWithBigTextStyle(String bigText);
78 84
79 Notification build(); 85 Notification build();
80 } 86 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698