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

Side by Side Diff: chrome/common/extensions/api/alarms.idl

Issue 12996003: Dynamically generate a heading for Extension Docs API pages (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Minor changes 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 unified diff | Download patch
OLDNEW
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 // TODO(mpcomplete): We need documentation before we can release this.
not at google - send to devlin 2013/04/30 18:34:19 erm, this comment seems wrong, given we released i
epeterson 2013/05/13 02:38:10 Done. I noticed this earlier, but removing someone
4 5
5 // TODO(mpcomplete): We need documentation before we can release this. 6 // Use the <code>chrome.alarms</code> module to schedule code to run
7 // periodically or at a specified time in the future.
6 8
not at google - send to devlin 2013/04/30 18:34:19 no extra newline. maybe the other IDL files have t
epeterson 2013/05/13 02:38:10 Done. (For the other IDL files, as well)
7 namespace alarms { 9 namespace alarms {
8 dictionary Alarm { 10 dictionary Alarm {
9 // Name of this alarm. 11 // Name of this alarm.
10 DOMString name; 12 DOMString name;
11 13
12 // Time at which this alarm was scheduled to fire, in milliseconds past the 14 // Time at which this alarm was scheduled to fire, in milliseconds past the
13 // epoch (e.g. <code>Date.now() + n</code>). For performance reasons, the 15 // epoch (e.g. <code>Date.now() + n</code>). For performance reasons, the
14 // alarm may have been delayed an arbitrary amount beyond this. 16 // alarm may have been delayed an arbitrary amount beyond this.
15 double scheduledTime; 17 double scheduledTime;
16 18
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // Clears all alarms. 90 // Clears all alarms.
89 static void clearAll(); 91 static void clearAll();
90 }; 92 };
91 93
92 interface Events { 94 interface Events {
93 // Fired when an alarm has elapsed. Useful for event pages. 95 // Fired when an alarm has elapsed. Useful for event pages.
94 // |alarm|: The alarm that has elapsed. 96 // |alarm|: The alarm that has elapsed.
95 static void onAlarm(Alarm alarm); 97 static void onAlarm(Alarm alarm);
96 }; 98 };
97 }; 99 };
OLDNEW
« no previous file with comments | « no previous file | chrome/common/extensions/api/app_runtime.idl » ('j') | chrome/common/extensions/api/browser_action.json » ('J')

Powered by Google App Engine
This is Rietveld 408576698