Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_ | |
| 6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_ | |
| 7 | |
| 8 // A series of common operations for both in page and persistent notification | |
|
Peter Beverloo
2016/06/28 22:52:41
Remove. (A class-level comment would be appropriat
Miguel Garcia
2016/06/29 17:25:40
Acknowledged.
| |
| 9 namespace content { | |
| 10 class BrowserContext; | |
| 11 } // namespace content | |
| 12 | |
| 13 namespace notification_operation_common { | |
|
Peter Beverloo
2016/06/28 22:52:41
Please stash common behaviour like this in a class
Miguel Garcia
2016/06/29 17:25:40
Done.
| |
| 14 | |
| 15 // Things you can do to a notification. | |
| 16 enum NotificationOperation { | |
| 17 NOTIFICATION_CLICK = 0, | |
| 18 NOTIFICATION_CLOSE = 1, | |
| 19 NOTIFICATION_SETTINGS = 2 | |
| 20 }; | |
| 21 | |
| 22 // Open the Notification settings screen when clicking the right button. | |
| 23 void OpenNotificationSettings(content::BrowserContext* browser_context); | |
|
Peter Beverloo
2016/06/28 22:52:41
This should probably take a Profile* since it's no
Miguel Garcia
2016/06/29 17:25:40
Todo added but why exactly do we take a BrowserCon
| |
| 24 | |
| 25 } // namespace notification_operation_common | |
| 26 | |
| 27 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_ | |
| OLD | NEW |