Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
|
Jói
2013/06/28 12:36:55
2013
hpjonsson
2013/06/28 13:38:10
Done.
| |
| 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 |chrome.time| API to get the current time | |
| 6 namespace time { | |
| 7 | |
| 8 dictionary TimeResult { | |
| 9 DOMString timeString; | |
| 10 }; | |
| 11 | |
| 12 callback TimeCallback = void (TimeResult result); | |
| 13 | |
| 14 interface Functions { | |
| 15 static void getTime(optional DOMString format, TimeCallback callback); | |
| 16 }; | |
| 17 }; | |
| OLD | NEW |