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

Unified Diff: content/public/common/platform_notification_data.h

Issue 1422673002: Extract Notifications kClickWasNotAnAction constant Base URL: https://chromium.googlesource.com/chromium/src.git@actions_spec_sync
Patch Set: Created 5 years, 2 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: content/public/common/platform_notification_data.h
diff --git a/content/public/common/platform_notification_data.h b/content/public/common/platform_notification_data.h
index 12f4eee9797daa856d5ec8fef4835c6f16e66ee0..a1440b51c475cdff1d46beb753286bc51fe55d31 100644
--- a/content/public/common/platform_notification_data.h
+++ b/content/public/common/platform_notification_data.h
@@ -14,6 +14,15 @@
namespace content {
+// Maximum number of actions on a Platform Notification.
Peter Beverloo 2015/10/22 11:33:39 nit: s/Platform Notification/platform notification
+static const size_t kPlatformNotificationMaxActions = 2;
+
+// When a notification is clicked, passing this value for |actionIndex|
Peter Beverloo 2015/10/22 11:33:39 Referring to specific arguments has little meaning
+// indicates that the main body of the notification was clicked, rather than an
+// action button. Must be kept in sync with
+// NotificationUIManager.CLICK_WAS_NOT_AN_ACTION.
+static const int kNotificationClickWasNotAnAction = -1;
Peter Beverloo 2015/10/22 11:33:39 kInvalidNotificationAction? kNoNotificationAction?
+
// A notification action (button); corresponds to Blink WebNotificationAction.
struct CONTENT_EXPORT PlatformNotificationAction {
PlatformNotificationAction();

Powered by Google App Engine
This is Rietveld 408576698