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

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

Issue 205323002: Chrome Alarm Clear and ClearAll Updates (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/alarms.idl
diff --git a/chrome/common/extensions/api/alarms.idl b/chrome/common/extensions/api/alarms.idl
index 3b218e0f0dd71d2970fb15ea4294b26a46771ede..55349be16db87b4919637128acff9f038b0fedce 100644
--- a/chrome/common/extensions/api/alarms.idl
+++ b/chrome/common/extensions/api/alarms.idl
@@ -42,6 +42,7 @@ namespace alarms {
callback AlarmCallback = void (Alarm alarm);
callback AlarmListCallback = void (Alarm[] alarms);
+ callback ClearCallback = void (boolean wasCleared);
interface Functions {
// Creates an alarm. Near the time(s) specified by <var>alarmInfo</var>,
@@ -81,10 +82,10 @@ namespace alarms {
// Clears the alarm with the given name.
// |name|: The name of the alarm to clear. Defaults to the empty string.
- static void clear(optional DOMString name);
+ static void clear(optional DOMString name, optional ClearCallback callback);
// Clears all alarms.
- static void clearAll();
+ static void clearAll(optional ClearCallback callback);
};
interface Events {

Powered by Google App Engine
This is Rietveld 408576698