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

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: Created 6 years, 9 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(other_namespace.SomeType value);
85 static MyType1 function20(); 85 static void function21(other_namespace.SomeType[] values);
86 static MyType1[] function21(); 86
87 static EnumType function22(); 87 static long function22();
88 static EnumType[] function23(); 88 static MyType1 function23();
89 static MyType1[] function24();
90 static EnumType function25();
91 static EnumType[] function26();
92 static other_namespace.SomeType function27();
93 static other_namespace.SomeType[] function28();
89 }; 94 };
90 95
91 interface Events { 96 interface Events {
92 static void onFoo1(); 97 static void onFoo1();
93 static void onFoo2(long x); 98 static void onFoo2(long x);
94 static void onFoo2(MyType1 arg); 99 static void onFoo2(MyType1 arg);
95 static void onFoo3(EnumType type); 100 static void onFoo3(EnumType type);
96 }; 101 };
97 }; 102 };
OLDNEW
« ppapi/generators/idl_parser.py ('K') | « tools/json_schema_compiler/idl_schema_test.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698