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

Unified Diff: public/platform/modules/notifications/WebNotificationManager.h

Issue 1254423011: Add Notification.maxActions so websites know how many buttons we support (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@staticreadonlypeter
Patch Set: Created 5 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
« no previous file with comments | « Source/modules/notifications/Notification.idl ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/modules/notifications/WebNotificationManager.h
diff --git a/public/platform/modules/notifications/WebNotificationManager.h b/public/platform/modules/notifications/WebNotificationManager.h
index 9782331e6133abddb92cdf483538f365f88e8896..bd86cbdcb4106ab52129eb68801581ca476b2784 100644
--- a/public/platform/modules/notifications/WebNotificationManager.h
+++ b/public/platform/modules/notifications/WebNotificationManager.h
@@ -58,6 +58,9 @@ public:
// Synchronously checks the permission level for the given origin.
virtual WebNotificationPermission checkPermission(const WebSecurityOrigin&) = 0;
+
+ // Returns the maximum number of action buttons supported by the embedder.
Peter Beverloo 2015/07/31 12:28:58 s/action buttons/actions/
+ virtual size_t maxActions() { return 0; } // TODO(johnme): Make pure virtual.
Peter Beverloo 2015/07/31 12:28:58 nit: Please place the TODO on the line above.
};
} // namespace blink
« no previous file with comments | « Source/modules/notifications/Notification.idl ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698