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

Unified Diff: chrome/common/extensions/api/notifications.idl

Issue 14767029: Add API function chrome.notifications.getAll (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge that caused test error. Created 7 years, 7 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/common/extensions/api/notifications.idl
diff --git a/chrome/common/extensions/api/notifications.idl b/chrome/common/extensions/api/notifications.idl
index ec8bf147c8f753c4ca8c029cbc974b98b60cf582..895d34ae54b2dabdf6b1a9d8a208f7ba8a1363e4 100644
--- a/chrome/common/extensions/api/notifications.idl
+++ b/chrome/common/extensions/api/notifications.idl
@@ -70,6 +70,8 @@ namespace notifications {
callback ClearCallback = void (boolean wasCleared);
+ callback GetAllCallback = void (object notifications);
+
interface Functions {
// Creates and displays a notification having the contents in |options|,
// identified by the id |notificationId|. If |notificationId| is empty,
@@ -92,6 +94,10 @@ namespace notifications {
// corresponding notification. |callback| indicates whether a matching
// notification existed.
static void clear(DOMString notificationId, ClearCallback callback);
+
+ // |callback| is executed with the set of notification_ids currently in
+ // the system.
+ static void getAll(GetAllCallback callback);
};
interface Events {

Powered by Google App Engine
This is Rietveld 408576698