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

Side by Side Diff: tools/json_schema_compiler/dart_test/basic_type.dart

Issue 12218151: Added unit tests for the Dart Chrome.* API wrappers. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Remove print statement if outputting to file. Created 7 years, 10 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
OLDNEW
(Empty)
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 // Generated from namespace: basic_type
6
7 part of chrome;
8
9 /**
10 * Types
11 */
12
13 class Basic_typeBasicType extends ChromeObject {
14 /*
15 * Public constructor
16 */
17 Basic_typeBasicType({String s, int i, int l, double d}) {
18 if (?s)
19 this.s = s;
20 if (?i)
21 this.i = i;
22 if (?l)
23 this.l = l;
24 if (?d)
25 this.d = d;
26 }
27
28 /*
29 * Private constructor
30 */
31 Basic_typeBasicType._proxy(_jsObject) : super._proxy(_jsObject);
32
33 /*
34 * Public accessors
35 */
36 /// Documentation for the String s.
37 String get s => JS('String', '#.s', this._jsObject);
38
39 void set s(String s) {
40 JS('void', '#.s = #', this._jsObject, s);
41 }
42
43 /// Documentation for the int i.
44 int get i => JS('int', '#.i', this._jsObject);
45
46 void set i(int i) {
47 JS('void', '#.i = #', this._jsObject, i);
48 }
49
50 /// Documentation for the long l.
51 int get l => JS('int', '#.l', this._jsObject);
52
53 void set l(int l) {
54 JS('void', '#.l = #', this._jsObject, l);
55 }
56
57 /// Documentation for the double d.
58 double get d => JS('double', '#.d', this._jsObject);
59
60 void set d(double d) {
61 JS('void', '#.d = #', this._jsObject, d);
62 }
63
64 }
65
66 /**
67 * Functions
68 */
69
70 class API_basic_type {
71 /*
72 * API connection
73 */
74 Object _jsObject;
75 API_basic_type(this._jsObject) {
76 }
77 }
OLDNEW
« no previous file with comments | « tools/json_schema_compiler/dart_test/basic_function.idl ('k') | tools/json_schema_compiler/dart_test/basic_type.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698