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

Unified Diff: Source/modules/notifications/Notification.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: Address review nits 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
Index: Source/modules/notifications/Notification.h
diff --git a/Source/modules/notifications/Notification.h b/Source/modules/notifications/Notification.h
index e922eb9227fbdd6c7178da3884fdc23287de9b70..86b7fcb0d3cd31e4babf734ffceb4e913efc3fc7 100644
--- a/Source/modules/notifications/Notification.h
+++ b/Source/modules/notifications/Notification.h
@@ -103,6 +103,8 @@ public:
static WebNotificationPermission checkPermission(ExecutionContext*);
static void requestPermission(ExecutionContext*, NotificationPermissionCallback* = nullptr);
+ static unsigned maxActions();
+
// EventTarget interface.
ExecutionContext* executionContext() const final { return ActiveDOMObject::executionContext(); }
const AtomicString& interfaceName() const override;
« no previous file with comments | « LayoutTests/http/tests/notifications/notification-properties.html ('k') | Source/modules/notifications/Notification.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698