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

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: remove that unecessary method from all the places Created 3 years, 9 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 ChromeNotificationBuilder setOnlyAlertOnce(boolean onlyAlertOnce); 68 ChromeNotificationBuilder setOnlyAlertOnce(boolean onlyAlertOnce);
68 69
69 ChromeNotificationBuilder setPublicVersion(Notification publicNotification); 70 ChromeNotificationBuilder setPublicVersion(Notification publicNotification);
70 71
71 ChromeNotificationBuilder setContent(RemoteViews views); 72 ChromeNotificationBuilder setContent(RemoteViews views);
72 73
73 ChromeNotificationBuilder setStyle(Notification.BigPictureStyle style); 74 ChromeNotificationBuilder setStyle(Notification.BigPictureStyle style);
74 75
75 ChromeNotificationBuilder setStyle(Notification.BigTextStyle bigTextStyle); 76 ChromeNotificationBuilder setStyle(Notification.BigTextStyle bigTextStyle);
76 77
78 ChromeNotificationBuilder setMediaStyle(MediaSessionCompat session, int[] ac tions,
79 PendingIntent intent, boolean showCancelButton);
80
77 Notification buildWithBigContentView(RemoteViews bigView); 81 Notification buildWithBigContentView(RemoteViews bigView);
78 82
79 Notification buildWithBigTextStyle(String bigText); 83 Notification buildWithBigTextStyle(String bigText);
80 84
81 Notification build(); 85 Notification build();
82 } 86 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698