OLD | NEW |
---|---|
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // File-level comment to appease parser. Eventually this will not be necessary. | |
6 // TODO(mpcomplete): We need documentation before we can release this. | |
not at google - send to devlin
2012/06/07 03:00:54
Do we no longer require file-level comments?
benjhayden
2012/06/08 16:41:52
See ongoing discussion in http://codereview.chromi
| |
7 | |
8 namespace alarms { | 5 namespace alarms { |
9 dictionary Alarm { | 6 dictionary Alarm { |
10 // Name of this alarm. | 7 // Name of this alarm. |
11 DOMString name; | 8 DOMString name; |
12 | 9 |
13 // Original length of time in minutes after which the onAlarm event should | 10 // Original length of time in minutes after which the onAlarm event should |
14 // fire. | 11 // fire. |
15 // TODO: need minimum=0 | 12 // TODO: need minimum=0 |
16 double delayInMinutes; | 13 double delayInMinutes; |
17 | 14 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
60 // Clears all alarms. | 57 // Clears all alarms. |
61 static void clearAll(); | 58 static void clearAll(); |
62 }; | 59 }; |
63 | 60 |
64 interface Events { | 61 interface Events { |
65 // Fired when an alarm has elapsed. Useful for transient background pages. | 62 // Fired when an alarm has elapsed. Useful for transient background pages. |
66 // |alarm|: The alarm that has elapsed. | 63 // |alarm|: The alarm that has elapsed. |
67 static void onAlarm(Alarm alarm); | 64 static void onAlarm(Alarm alarm); |
68 }; | 65 }; |
69 }; | 66 }; |
OLD | NEW |