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

Unified Diff: ppapi/apps_tests/test3.idl

Issue 9359040: WIP IDL-IPC2 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Checkpoint before going back to returning ListValue via ExtensionMsg_Response. Created 8 years, 10 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 | « ppapi/apps_tests/test2.idl ('k') | ppapi/generators/apiidlc.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/apps_tests/test3.idl
diff --git a/ppapi/apps_tests/test3.idl b/ppapi/apps_tests/test3.idl
new file mode 100644
index 0000000000000000000000000000000000000000..638b6a8687f76de14f3ff20b6b309642518ecad3
--- /dev/null
+++ b/ppapi/apps_tests/test3.idl
@@ -0,0 +1,60 @@
+// Namespace comment.
+namespace foo.bar {
+
+ dictionary Dict1 {
+ long x;
+ DOMString y;
+
+ long[] an_array;
+ long? something_optional;
+ long[]? optional_array;
+ [nodoc] long something_hidden;
+ [nodoc,foo=1] long[] hidden_array;
+ };
+
+ // Dictionary comment
+ dictionary Dict2 {
+ Dict1 d1;
+ Dict1[] d2;
+ [nodoc] Dict1[]? d3;
+ };
+
+ [nodoc] dictionary Dict3 {};
+
+ callback Callback1 = void ();
+ // callback Comment
+ callback Callback2 = long ();
+ callback Callback3 = void (long x);
+ // Another callback comment.
+ [nodoc] callback Callback4 = void (DOMString x, long y);
+ callback Callback5 = DOMString (optional long x);
+ callback Callback6 = void (optional long x, optional Dict1 y);
+ callback Callback7 = void (long x, DOMString y, optional Dict2[] z);
+
+ interface Functions {
+ // Function comment
+ static void fn1();
+ static void fn2(long x);
+
+ // Another function comment
+ static void fn3(long x, DOMString y);
+ static void fn4(Dict1 d, Callback4 cb);
+ static void fn5(long x, optional Callback6 cb);
+ static void fn6(optional long x, optional Dict2 y);
+ static long fn7(Dict1[] foo, optional Dict2[] bar);
+ [nodoc] static void fn8(long x, long y, optional Callback1 cb);
+ };
+
+ // Interface comment.
+ interface Events {
+ static void OnFoo1();
+ static void OnFoo2(long x);
+ static void OnFoo3(long x, DOMString y);
+ // Event comment.
+ static void OnFoo4(Dict1 d, Callback4 cb);
+ static void OnFoo5(long x, optional Callback6 cb);
+ static void OnFoo6(optional long x, optional Dict2 y);
+ static void OnFoo7(Dict1[] foo, optional Dict2[] bar);
+ [nodoc, foo=1] static void OnFoo8(long x, DOMString y, long z);
+ };
+};
« no previous file with comments | « ppapi/apps_tests/test2.idl ('k') | ppapi/generators/apiidlc.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698