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

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

Issue 10639020: Switch the downloads API over to IDL/json_schema_compiler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 8 years, 5 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
« no previous file with comments | « tools/json_schema_compiler/schema_util.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 namespace idl_basics { 7 namespace idl_basics {
8 // Enum description
8 enum EnumType { 9 enum EnumType {
9 name1, 10 name1,
10 name2 11 name2
11 }; 12 };
12 13
13 dictionary MyType1 { 14 dictionary MyType1 {
14 long x; // This comment tests "double-quotes". 15 // This comment tests "double-quotes".
16 [legalValues=(1,2)] long x;
15 DOMString y; 17 DOMString y;
16 }; 18 };
17 19
18 dictionary MyType2 { 20 dictionary MyType2 {
19 DOMString x; 21 DOMString x;
20 }; 22 };
21 23
22 callback Callback1 = void(); 24 callback Callback1 = void();
23 callback Callback2 = void(long x); 25 callback Callback2 = void(long x);
24 callback Callback3 = void(MyType1 arg); 26 callback Callback3 = void(MyType1 arg);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 [nocompile] static void function15(long switch); 60 [nocompile] static void function15(long switch);
59 }; 61 };
60 62
61 interface Events { 63 interface Events {
62 static void onFoo1(); 64 static void onFoo1();
63 static void onFoo2(long x); 65 static void onFoo2(long x);
64 static void onFoo2(MyType1 arg); 66 static void onFoo2(MyType1 arg);
65 static void onFoo3(EnumType type); 67 static void onFoo3(EnumType type);
66 }; 68 };
67 }; 69 };
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/schema_util.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698