OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_ | 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_ |
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_ | 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_ |
7 | 7 |
8 // A series of common operations for both in page and persistent notification | 8 // A series of common operations for both in page and persistent notification |
9 namespace content { | 9 namespace content { |
10 class BrowserContext; | 10 class BrowserContext; |
11 } // namespace content | 11 } // namespace content |
12 | 12 |
13 namespace notification_operation_common { | 13 namespace notification_operation_common { |
14 | 14 |
15 // Things you can do to a notification. | 15 // Things you can do to a notification. |
16 enum NotificationOperation { | 16 enum NotificationOperation { |
17 NOTIFICATION_CLICK = 0, | 17 NOTIFICATION_CLICK = 0, |
18 NOTIFICATION_CLOSE = 1, | 18 NOTIFICATION_CLOSE = 1, |
19 NOTIFICATION_SETTINGS = 2 | 19 NOTIFICATION_SETTINGS = 2, |
| 20 NOTIFICATION_OPERATION_MAX = NOTIFICATION_SETTINGS |
20 }; | 21 }; |
21 | 22 |
22 // Open the Notification settings screen when clicking the right button. | 23 // Open the Notification settings screen when clicking the right button. |
23 void OpenNotificationSettings(content::BrowserContext* browser_context); | 24 void OpenNotificationSettings(content::BrowserContext* browser_context); |
24 | 25 |
25 } // namespace notification_operation_common | 26 } // namespace notification_operation_common |
26 | 27 |
27 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_ | 28 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_ |
OLD | NEW |