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

Unified Diff: chrome/common/extensions/api/time.idl

Issue 18063003: Chromium extension API - written as part of course in Open Software Development at Reykjavik Univer… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixing review remarks. Created 7 years, 6 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 side-by-side diff with in-line comments
Download patch
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);
+ };
+};

Powered by Google App Engine
This is Rietveld 408576698