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

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

Issue 9617010: Move chrome.downloads out of experimental to dev (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments Created 8 years, 6 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 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
14 // IntegerEnum description
15 enum IntegerEnumType {
16 int0 = 0,
17 int1 = 42
18 };
19
20 // DoubleEnumType description
21 enum DoubleEnumType {
22 pi = 3.14159265,
23 avogadro = 6.0221415e23,
24 planck = 6.626068e-34
25 };
26
13 dictionary MyType1 { 27 dictionary MyType1 {
14 long x; // This comment tests "double-quotes". 28 long x; // This comment tests "double-quotes".
15 DOMString y; 29 DOMString y;
16 }; 30 };
17 31
18 dictionary MyType2 { 32 dictionary MyType2 {
19 DOMString x; 33 DOMString x;
20 }; 34 };
21 35
22 callback Callback1 = void(); 36 callback Callback1 = void();
(...skipping 28 matching lines...) Expand all
51 [nocompile] static void function15(long switch); 65 [nocompile] static void function15(long switch);
52 }; 66 };
53 67
54 interface Events { 68 interface Events {
55 static void onFoo1(); 69 static void onFoo1();
56 static void onFoo2(long x); 70 static void onFoo2(long x);
57 static void onFoo2(MyType1 arg); 71 static void onFoo2(MyType1 arg);
58 static void onFoo3(EnumType type); 72 static void onFoo3(EnumType type);
59 }; 73 };
60 }; 74 };
OLDNEW
« tools/json_schema_compiler/idl_schema.py ('K') | « 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