summaryrefslogtreecommitdiff
path: root/chromium/tools/json_schema_compiler/dart_test/dictionaries.dart
blob: ebe92a6c1ebd84cd153a1cf339f45f31e64dfe43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
// Copyright (c) 2013, the Dart project authors.  Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

// Generated from namespace: dictionaries

part of chrome;

/**
 * Types
 */

class DictionariesInnerType extends ChromeObject {
  /*
   * Public constructor
   */
  DictionariesInnerType({String s, int b, int i, int l, double d, FileEntry f, String os, int ob, int oi, int ol, double od, FileEntry of}) {
    if (s != null)
      this.s = s;
    if (b != null)
      this.b = b;
    if (i != null)
      this.i = i;
    if (l != null)
      this.l = l;
    if (d != null)
      this.d = d;
    if (f != null)
      this.f = f;
    if (os != null)
      this.os = os;
    if (ob != null)
      this.ob = ob;
    if (oi != null)
      this.oi = oi;
    if (ol != null)
      this.ol = ol;
    if (od != null)
      this.od = od;
    if (of != null)
      this.of = of;
  }

  /*
   * Private constructor
   */
  DictionariesInnerType._proxy(_jsObject) : super._proxy(_jsObject);

  /*
   * Public accessors
   */
  /// Documentation for the String s.
  String get s => JS('String', '#.s', this._jsObject);

  void set s(String s) {
    JS('void', '#.s = #', this._jsObject, s);
  }

  /// Documentation for the boolean b.
  int get b => JS('int', '#.b', this._jsObject);

  void set b(int b) {
    JS('void', '#.b = #', this._jsObject, b);
  }

  /// Documentation for the int i.
  int get i => JS('int', '#.i', this._jsObject);

  void set i(int i) {
    JS('void', '#.i = #', this._jsObject, i);
  }

  /// Documentation for the long l.
  int get l => JS('int', '#.l', this._jsObject);

  void set l(int l) {
    JS('void', '#.l = #', this._jsObject, l);
  }

  /// Documentation for the double d.
  double get d => JS('double', '#.d', this._jsObject);

  void set d(double d) {
    JS('void', '#.d = #', this._jsObject, d);
  }

  /// Documentation for the file entry f.
  FileEntry get f => JS('FileEntry', '#.f', this._jsObject);

  void set f(FileEntry f) {
    JS('void', '#.f = #', this._jsObject, convertArgument(f));
  }

  /// Documentation for the optional String s.
  String get os => JS('String', '#.os', this._jsObject);

  void set os(String os) {
    JS('void', '#.os = #', this._jsObject, os);
  }

  /// Documentation for the optional boolean ob.
  int get ob => JS('int', '#.ob', this._jsObject);

  void set ob(int ob) {
    JS('void', '#.ob = #', this._jsObject, ob);
  }

  /// Documentation for the optional int i.
  int get oi => JS('int', '#.oi', this._jsObject);

  void set oi(int oi) {
    JS('void', '#.oi = #', this._jsObject, oi);
  }

  /// Documentation for the optional long l.
  int get ol => JS('int', '#.ol', this._jsObject);

  void set ol(int ol) {
    JS('void', '#.ol = #', this._jsObject, ol);
  }

  /// Documentation for the optional double d.
  double get od => JS('double', '#.od', this._jsObject);

  void set od(double od) {
    JS('void', '#.od = #', this._jsObject, od);
  }

  /// Documentation for the optional file entry f.
  FileEntry get of => JS('FileEntry', '#.of', this._jsObject);

  void set of(FileEntry of) {
    JS('void', '#.of = #', this._jsObject, convertArgument(of));
  }

}

class DictionariesOuterType extends ChromeObject {
  /*
   * Public constructor
   */
  DictionariesOuterType({List<DictionariesInnerType> items, List<DictionariesInnerType> oitems}) {
    if (items != null)
      this.items = items;
    if (oitems != null)
      this.oitems = oitems;
  }

  /*
   * Private constructor
   */
  DictionariesOuterType._proxy(_jsObject) : super._proxy(_jsObject);

  /*
   * Public accessors
   */
  /// Documentation for the array of InnerTypes items.
  List<DictionariesInnerType> get items {
    List<DictionariesInnerType> __proxy_items = new List<DictionariesInnerType>();
    int count = JS('int', '#.items.length', this._jsObject);
    for (int i = 0; i < count; i++) {
      var item = JS('', '#.items[#]', this._jsObject, i);
      __proxy_items.add(new DictionariesInnerType._proxy(item));
    }
    return __proxy_items;
  }

  void set items(List<DictionariesInnerType> items) {
    JS('void', '#.items = #', this._jsObject, convertArgument(items));
  }

  /// Documentation for the optional array of Inner Types oitems.
  List<DictionariesInnerType> get oitems {
    List<DictionariesInnerType> __proxy_oitems = new List<DictionariesInnerType>();
    int count = JS('int', '#.oitems.length', this._jsObject);
    for (int i = 0; i < count; i++) {
      var item = JS('', '#.oitems[#]', this._jsObject, i);
      __proxy_oitems.add(new DictionariesInnerType._proxy(item));
    }
    return __proxy_oitems;
  }

  void set oitems(List<DictionariesInnerType> oitems) {
    JS('void', '#.oitems = #', this._jsObject, convertArgument(oitems));
  }

}

class DictionariesComplexType extends ChromeObject {
  /*
   * Public constructor
   */
  DictionariesComplexType({int i, DictionariesComplexType c}) {
    if (i != null)
      this.i = i;
    if (c != null)
      this.c = c;
  }

  /*
   * Private constructor
   */
  DictionariesComplexType._proxy(_jsObject) : super._proxy(_jsObject);

  /*
   * Public accessors
   */
  /// Documentation for the int i.
  int get i => JS('int', '#.i', this._jsObject);

  void set i(int i) {
    JS('void', '#.i = #', this._jsObject, i);
  }

  /// Documentation for the ComplexType c.
  DictionariesComplexType get c => new DictionariesComplexType._proxy(JS('', '#.c', this._jsObject));

  void set c(DictionariesComplexType c) {
    JS('void', '#.c = #', this._jsObject, convertArgument(c));
  }

}

/**
 * Functions
 */

class API_dictionaries {
  /*
   * API connection
   */
  Object _jsObject;
  API_dictionaries(this._jsObject) {
  }
}