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

Side by Side Diff: tools/json_schema_compiler/test/idl_basics.idl

Issue 197873009: Support scoped types in PPAPI IDL. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed tests. Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Tests a variety of basic API definition features. 5 // Tests a variety of basic API definition features.
6 6
7 [internal] namespace idl_basics { 7 [internal] namespace idl_basics {
8 // Enum description 8 // Enum description
9 enum EnumType { 9 enum EnumType {
10 // comment1 10 // comment1
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 74
75 // "switch" is a reserved word and should cause a C++ compile error if we 75 // "switch" is a reserved word and should cause a C++ compile error if we
76 // emit code for this declaration. 76 // emit code for this declaration.
77 [nocompile] static void function15(long switch); 77 [nocompile] static void function15(long switch);
78 78
79 static void function16(Callback6 cb); 79 static void function16(Callback6 cb);
80 static void function17(Callback7 cb); 80 static void function17(Callback7 cb);
81 // |cb|: Override callback comment. 81 // |cb|: Override callback comment.
82 static void function18(Callback7 cb); 82 static void function18(Callback7 cb);
83 83
84 static long function19(); 84 static void function20(idl_other_namespace.SomeType value);
85 static MyType1 function20(); 85 static void function21(idl_other_namespace.SomeType[] values);
86 static MyType1[] function21(); 86 static void function22(
87 static EnumType function22(); 87 idl_other_namespace.sub_namespace.AnotherType value);
88 static EnumType[] function23(); 88 static void function23(
89 idl_other_namespace.sub_namespace.AnotherType[] values);
90
91 static long function24();
92 static MyType1 function25();
93 static MyType1[] function26();
94 static EnumType function27();
95 static EnumType[] function28();
96 static idl_other_namespace.SomeType function29();
97 static idl_other_namespace.SomeType[] function30();
89 }; 98 };
90 99
91 interface Events { 100 interface Events {
92 static void onFoo1(); 101 static void onFoo1();
93 static void onFoo2(long x); 102 static void onFoo2(long x);
94 static void onFoo2(MyType1 arg); 103 static void onFoo2(MyType1 arg);
95 static void onFoo3(EnumType type); 104 static void onFoo3(EnumType type);
96 }; 105 };
97 }; 106 };
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/test/error_generation_unittest.cc ('k') | tools/json_schema_compiler/test/idl_other_namespace.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698