Index: chrome/common/extensions/api/time.idl |
diff --git a/chrome/common/extensions/api/time.idl b/chrome/common/extensions/api/time.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9eb66192c5fe3d6d0b6d7e5f170960015b8016de |
--- /dev/null |
+++ b/chrome/common/extensions/api/time.idl |
@@ -0,0 +1,17 @@ |
+// 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.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// Use the |chrome.time| API to get the current time |
+namespace time { |
+ |
+ dictionary TimeResult { |
+ DOMString timeString; |
+ }; |
+ |
+ callback TimeCallback = void (TimeResult result); |
+ |
+ interface Functions { |
+ static void getTime(optional DOMString format, TimeCallback callback); |
+ }; |
+}; |