Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 // Use the <code>chrome.time</code> API to get the current time | |
|
Jói
2013/06/28 10:49:15
Generally we don't use HTML or other markup in com
hpjonsson
2013/06/28 12:13:04
Done.
| |
| 6 namespace time { | |
| 7 dictionary TimeResult { | |
| 8 DOMString timeString; | |
| 9 }; | |
| 10 | |
| 11 callback TimeCallback = void (TimeResult result); | |
| 12 | |
| 13 interface Functions { | |
| 14 static void getTime(optional DOMString format, TimeCallback callback); | |
| 15 }; | |
| 16 }; | |
| OLD | NEW |