diff options
author | dewittj@chromium.org <dewittj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-24 00:33:55 +0000 |
---|---|---|
committer | dewittj@chromium.org <dewittj@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-24 00:33:55 +0000 |
commit | e8341814fe1c35cdc8466e9f8e6dcf27b60890b0 (patch) | |
tree | bd414ddf543d6d9201abc36215d290b2571b9c88 /chrome/browser/extensions/api/notifications/notifications_api.h | |
parent | ad3203b607db49cc87f0d7a4d63417adc45dd756 (diff) | |
download | chromium_src-e8341814fe1c35cdc8466e9f8e6dcf27b60890b0.zip chromium_src-e8341814fe1c35cdc8466e9f8e6dcf27b60890b0.tar.gz chromium_src-e8341814fe1c35cdc8466e9f8e6dcf27b60890b0.tar.bz2 |
Add API function chrome.notifications.getAll
This function returns an object whose keys are the notification
IDs of all notifications created by that extension.
BUG=240924
Review URL: https://chromiumcodereview.appspot.com/14767029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@201932 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/api/notifications/notifications_api.h')
-rw-r--r-- | chrome/browser/extensions/api/notifications/notifications_api.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/chrome/browser/extensions/api/notifications/notifications_api.h b/chrome/browser/extensions/api/notifications/notifications_api.h index 8635a39..447d0bf 100644 --- a/chrome/browser/extensions/api/notifications/notifications_api.h +++ b/chrome/browser/extensions/api/notifications/notifications_api.h @@ -89,6 +89,20 @@ class NotificationsClearFunction : public NotificationsApiFunction { DECLARE_EXTENSION_FUNCTION("notifications.clear", NOTIFICATIONS_CLEAR) }; +class NotificationsGetAllFunction : public NotificationsApiFunction { + public: + NotificationsGetAllFunction(); + + // UIThreadExtensionFunction: + virtual bool RunNotificationsApi() OVERRIDE; + + protected: + virtual ~NotificationsGetAllFunction(); + + private: + DECLARE_EXTENSION_FUNCTION("notifications.getAll", NOTIFICATIONS_GET_ALL) +}; + } // namespace extensions #endif // CHROME_BROWSER_EXTENSIONS_API_NOTIFICATIONS_NOTIFICATIONS_API_H_ |