summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler/test/idl_basics.idl
diff options
context:
space:
mode:
authorcduvall@chromium.org <cduvall@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-02 04:17:22 +0000
committercduvall@chromium.org <cduvall@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-02 04:17:22 +0000
commit288ddd812295aa4dea37e6599c2ca035cff0d632 (patch)
treed5ce7c55bec9384e191624bc91a64a12239dc5b7 /tools/json_schema_compiler/test/idl_basics.idl
parent63e96497767c184c4026be3850bb1ff59223f87b (diff)
downloadchromium_src-288ddd812295aa4dea37e6599c2ca035cff0d632.zip
chromium_src-288ddd812295aa4dea37e6599c2ca035cff0d632.tar.gz
chromium_src-288ddd812295aa4dea37e6599c2ca035cff0d632.tar.bz2
Allow IDL schemas to have comments on callback functions
The JSON schema compiler was ignoring comments on callback functions. Now callback functions and their parameters can have comments. BUG=158459 Review URL: https://chromiumcodereview.appspot.com/11342033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@165613 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools/json_schema_compiler/test/idl_basics.idl')
-rw-r--r--tools/json_schema_compiler/test/idl_basics.idl10
1 files changed, 10 insertions, 0 deletions
diff --git a/tools/json_schema_compiler/test/idl_basics.idl b/tools/json_schema_compiler/test/idl_basics.idl
index eb4ec62..f4e1b3ca 100644
--- a/tools/json_schema_compiler/test/idl_basics.idl
+++ b/tools/json_schema_compiler/test/idl_basics.idl
@@ -26,6 +26,11 @@
callback Callback3 = void(MyType1 arg);
callback Callback4 = void(MyType2[] arg);
callback Callback5 = void(EnumType type);
+ // A comment on a callback.
+ // |x|: A parameter.
+ callback Callback6 = void(long x);
+ // |x|: Just a parameter comment, with no comment on the callback.
+ callback Callback7 = void(long x);
interface Functions {
static void function1();
@@ -60,6 +65,11 @@
// "switch" is a reserved word and should cause a C++ compile error if we
// emit code for this declaration.
[nocompile] static void function15(long switch);
+
+ static void function16(Callback6 cb);
+ static void function17(Callback7 cb);
+ // |cb|: Override callback comment.
+ static void function18(Callback7 cb);
};
interface Events {