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

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

Issue 17679004: testing adding an extension api Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/interactive_ui_tests_run.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/api/myapi.idl
diff --git a/chrome/common/extensions/api/myapi.idl b/chrome/common/extensions/api/myapi.idl
new file mode 100644
index 0000000000000000000000000000000000000000..4dc8c09ae28ce69f8889fe0798622945a6c1ae4e
--- /dev/null
+++ b/chrome/common/extensions/api/myapi.idl
@@ -0,0 +1,23 @@
+// Put at least one comment line before 'namespace' to avoid a bug in the .idl compiler.
+namespace myapi {
+ dictionary BazOptions {
+ // Describes what the id argument means.
+ long id;
+ // Describes what the s argument means.
+ DOMString s;
+ };
+
+ dictionary BazResult {
+ long x;
+ long y;
+ };
+
+ callback BazCallback = void (BazResult result);
+
+ interface Functions {
+ // An interesting comment describing what the baz operation is.
+ // Note that this function can take multiple input arguments, including things like
+ // long and DOMString, but they have been elided for simplicity.
+ static void doBaz(BazOptions options, BazCallback callback);
+ };
+};
« no previous file with comments | « chrome/common/extensions/api/api.gyp ('k') | chrome/interactive_ui_tests_run.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698