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

Unified 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 enum suffix Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/notifications/notification_common.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/notifications/notification_common.h
diff --git a/chrome/browser/notifications/notification_common.h b/chrome/browser/notifications/notification_common.h
new file mode 100644
index 0000000000000000000000000000000000000000..8d216857f39f1a8dbdb1487834b003ccd3ca7b8d
--- /dev/null
+++ b/chrome/browser/notifications/notification_common.h
@@ -0,0 +1,29 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_COMMON_H_
+#define CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_COMMON_H_
+
+namespace content {
+class BrowserContext;
+} // namespace content
+
+// Shared functionality for both in page and persistent notification
+class NotificationCommon {
+ public:
+ // Things as user can do to a notification.
+ enum Operation {
+ CLICK = 0,
+ CLOSE = 1,
+ SETTINGS = 2
+ };
+
+ // Open the Notification settings screen when clicking the right button.
+ // TODO(miguelg) have it take a Profile instead once NotificationObjectProxy
+ // is updated.
+ static void OpenNotificationSettings(
+ content::BrowserContext* browser_context);
+};
+
+#endif // CHROME_BROWSER_NOTIFICATIONS_NOTIFICATION_COMMON_H_
« 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