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

Unified Diff: chrome/browser/notifications/notification_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: initial review 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/notifications/notification_common.h
diff --git a/chrome/browser/notifications/notification_common.h b/chrome/browser/notifications/notification_common.h
index 79ac93ebffe6e77057bb525b6bcc6a057183d2c4..a467585b52d5940fa7c66c3ac54c66f80b6ec78b 100644
--- a/chrome/browser/notifications/notification_common.h
+++ b/chrome/browser/notifications/notification_common.h
@@ -20,6 +20,9 @@ class NotificationCommon {
OPERATION_MAX = SETTINGS
};
+ // Possible kinds of notifications
+ enum Type { PERSISTENT = 0, NONPERSISTENT = 1, TYPE_MAX = NONPERSISTENT };
Peter Beverloo 2016/07/05 14:25:34 nit: NONPERSISTENT -> NON_PERSISTENT
Peter Beverloo 2016/07/05 14:25:34 Please place each type on their own line.
Miguel Garcia 2016/07/05 17:12:52 This is super annoying. clank format decides to ch
+
// Open the Notification settings screen when clicking the right button.
// TODO(miguelg) have it take a Profile instead once NotificationObjectProxy
// is updated.

Powered by Google App Engine
This is Rietveld 408576698