| 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);
|
| + };
|
| +};
|
|
|