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

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

Issue 2808163002: [Android O] Refactor channel initialization (Closed)
Patch Set: fix comments Created 3 years, 8 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 8
9 /** 9 /**
10 * A proxy for the Android Notification Manager. This allows tests to be written without having to 10 * A proxy for the Android Notification Manager. This allows tests to be written without having to
11 * use the real Notification Manager. 11 * use the real Notification Manager.
12 * 12 *
13 * @see http://developer.android.com/reference/android/app/NotificationManager.h tml 13 * @see http://developer.android.com/reference/android/app/NotificationManager.h tml
14 */ 14 */
15 public interface NotificationManagerProxy { 15 public interface NotificationManagerProxy {
16 void cancel(int id); 16 void cancel(int id);
17 void cancel(String tag, int id); 17 void cancel(String tag, int id);
18 void cancelAll(); 18 void cancelAll();
19 void createNotificationChannel(ChannelsInitializer.Channel channel);
20 void createNotificationChannelGroup(ChannelsInitializer.ChannelGroup channel Group);
21
19 void notify(int id, Notification notification); 22 void notify(int id, Notification notification);
20 void notify(String tag, int id, Notification notification); 23 void notify(String tag, int id, Notification notification);
21 } 24 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698