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

Side by Side Diff: chrome/browser/notifications/notification_operation_common.h

Issue 2093953002: Introduce a new API to handle native notification clicks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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
(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
9 namespace content {
10 class BrowserContext;
11 } // namespace content
12
13 namespace notification_operation_common {
14
15 // Possible kinds of notifications
16 enum NotificationHandlerType {
17 PERSISTENT_NOTIFICATION = 0,
18 INPAGE_NOTIFICATION = 1,
19 NOTIFICATION_HANDLER_TYPE_LAST = INPAGE_NOTIFICATION
Peter Beverloo 2016/06/29 00:23:16 Why do you call this _LAST, but the enum eight lin
Miguel Garcia 2016/07/05 13:54:50 Done.
20 };
21
22 // Things a user can do to a notification.
23 enum NotificationOperation {
24 NOTIFICATION_CLICK = 0,
25 NOTIFICATION_CLOSE = 1,
26 NOTIFICATION_SETTINGS = 2,
27 NOTIFICATION_OPERATION_MAX = NOTIFICATION_SETTINGS
28 };
29
30 // Open the Notification settings screen when clicking the right button.
31 void OpenNotificationSettings(content::BrowserContext* browser_context);
32
33 } // namespace notification_operation_common
34
35 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_OPERATION_COMMON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698