OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |