| OLD | NEW |
| (Empty) | |
| 1 // Put at least one comment line before 'namespace' to avoid a bug in the .idl c
ompiler. |
| 2 namespace myapi { |
| 3 dictionary BazOptions { |
| 4 // Describes what the id argument means. |
| 5 long id; |
| 6 // Describes what the s argument means. |
| 7 DOMString s; |
| 8 }; |
| 9 |
| 10 dictionary BazResult { |
| 11 long x; |
| 12 long y; |
| 13 }; |
| 14 |
| 15 callback BazCallback = void (BazResult result); |
| 16 |
| 17 interface Functions { |
| 18 // An interesting comment describing what the baz operation is. |
| 19 // Note that this function can take multiple input arguments, including thin
gs like |
| 20 // long and DOMString, but they have been elided for simplicity. |
| 21 static void doBaz(BazOptions options, BazCallback callback); |
| 22 }; |
| 23 }; |
| OLD | NEW |