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