Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 package org.chromium.chrome.browser.notifications; | |
| 6 | |
| 7 import android.app.Notification; | |
| 8 import android.app.PendingIntent; | |
| 9 import android.graphics.Bitmap; | |
| 10 | |
| 11 /** | |
| 12 * Created by awdf on 2/16/17. | |
|
Peter Beverloo
2017/02/20 01:06:45
nit: delete - elsewhere too.
Here, too, a TODO sa
awdf
2017/02/24 00:38:47
Done.
| |
| 13 */ | |
| 14 public interface ChromeNotificationBuilder { | |
|
nyquist
2017/02/22 10:43:59
Could you also add a high-level comment about this
awdf
2017/02/24 00:38:47
Done.
awdf
2017/02/24 00:38:47
Done.
| |
| 15 ChromeNotificationBuilder setAutoCancel(boolean autoCancel); | |
| 16 | |
| 17 ChromeNotificationBuilder setContentIntent(PendingIntent contentIntent); | |
| 18 | |
| 19 ChromeNotificationBuilder setContentTitle(String title); | |
| 20 | |
| 21 ChromeNotificationBuilder setContentText(String text); | |
| 22 | |
| 23 ChromeNotificationBuilder setSmallIcon(int icon); | |
| 24 | |
| 25 ChromeNotificationBuilder setTicker(String text); | |
| 26 | |
| 27 ChromeNotificationBuilder setLocalOnly(boolean localOnly); | |
| 28 | |
| 29 ChromeNotificationBuilder setGroup(String group); | |
| 30 | |
| 31 ChromeNotificationBuilder setOngoing(boolean ongoing); | |
| 32 | |
| 33 ChromeNotificationBuilder setVisibility(int visibility); | |
| 34 | |
| 35 ChromeNotificationBuilder setShowWhen(boolean showWhen); | |
| 36 | |
| 37 ChromeNotificationBuilder addAction(int icon, String title, PendingIntent in tent); | |
| 38 | |
| 39 ChromeNotificationBuilder setDeleteIntent(PendingIntent intent); | |
| 40 | |
| 41 ChromeNotificationBuilder setPriority(int pri); | |
| 42 | |
| 43 ChromeNotificationBuilder setProgress(int max, int percentage, boolean indet erminate); | |
| 44 | |
| 45 ChromeNotificationBuilder setSubText(String text); | |
| 46 | |
| 47 ChromeNotificationBuilder setContentInfo(String info); | |
| 48 | |
| 49 ChromeNotificationBuilder setWhen(long time); | |
| 50 | |
| 51 ChromeNotificationBuilder setLargeIcon(Bitmap icon); | |
| 52 | |
| 53 ChromeNotificationBuilder setVibrate(long[] vibratePattern); | |
| 54 | |
| 55 Notification buildWithBigTextStyle(String bigText); | |
| 56 | |
| 57 Notification build(); | |
| 58 } | |
| OLD | NEW |