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

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

Issue 2095223002: Refactor notification operation functionality out of PNS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove renamed files 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
« no previous file with comments | « no previous file | chrome/browser/notifications/notification_common.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_COMMON_H_
6 #define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_COMMON_H_
7
8 namespace content {
9 class BrowserContext;
10 } // namespace content
11
12 // Shared functionality for both in page and persistent notification
13 class NotificationCommon {
14 public:
15 // Things as user can do to a notification.
16 enum Operation {
17 NOTIFICATION_CLICK = 0,
18 NOTIFICATION_CLOSE = 1,
19 NOTIFICATION_SETTINGS = 2
Peter Beverloo 2016/06/29 17:32:29 nit: since it's scoped to the NotificationCommon c
Miguel Garcia 2016/07/01 10:49:08 The shorter the better, so I went with CLICK,CLOSE
20 };
21
22 // Open the Notification settings screen when clicking the right button.
23 // TODO(miguelg) have it take a Profile instead once NotificationObjectProxy
24 // is updated.
25 static void OpenNotificationSettings(
26 content::BrowserContext* browser_context);
27 };
28
29 #endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_COMMON_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/notifications/notification_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698