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

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: Rebased. 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 static void function22(other_namespace.sub_namespace.SomeType value);
87 static EnumType function22(); 87 static void function23(other_namespace.sub_namespace.SomeType[] values);
88 static EnumType[] function23(); 88
89 static long function24();
90 static MyType1 function25();
91 static MyType1[] function26();
92 static EnumType function27();
93 static EnumType[] function28();
94 static other_namespace.SomeType function29();
95 static other_namespace.SomeType[] function30();
89 }; 96 };
90 97
91 interface Events { 98 interface Events {
92 static void onFoo1(); 99 static void onFoo1();
93 static void onFoo2(long x); 100 static void onFoo2(long x);
94 static void onFoo2(MyType1 arg); 101 static void onFoo2(MyType1 arg);
95 static void onFoo3(EnumType type); 102 static void onFoo3(EnumType type);
96 }; 103 };
97 }; 104 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698