• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (c) 2014, 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: dictionaries
6
7part of chrome;
8
9/**
10 * Types
11 */
12
13class DictionariesInnerType extends ChromeObject {
14  /*
15   * Public constructor
16   */
17  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}) {
18    if (s != null)
19      this.s = s;
20    if (b != null)
21      this.b = b;
22    if (i != null)
23      this.i = i;
24    if (l != null)
25      this.l = l;
26    if (d != null)
27      this.d = d;
28    if (f != null)
29      this.f = f;
30    if (os != null)
31      this.os = os;
32    if (ob != null)
33      this.ob = ob;
34    if (oi != null)
35      this.oi = oi;
36    if (ol != null)
37      this.ol = ol;
38    if (od != null)
39      this.od = od;
40    if (of != null)
41      this.of = of;
42  }
43
44  /*
45   * Private constructor
46   */
47  DictionariesInnerType._proxy(_jsObject) : super._proxy(_jsObject);
48
49  /*
50   * Public accessors
51   */
52  /// Documentation for the String s.
53  String get s => JS('String', '#.s', this._jsObject);
54
55  void set s(String s) {
56    JS('void', '#.s = #', this._jsObject, s);
57  }
58
59  /// Documentation for the boolean b.
60  int get b => JS('int', '#.b', this._jsObject);
61
62  void set b(int b) {
63    JS('void', '#.b = #', this._jsObject, b);
64  }
65
66  /// Documentation for the int i.
67  int get i => JS('int', '#.i', this._jsObject);
68
69  void set i(int i) {
70    JS('void', '#.i = #', this._jsObject, i);
71  }
72
73  /// Documentation for the long l.
74  int get l => JS('int', '#.l', this._jsObject);
75
76  void set l(int l) {
77    JS('void', '#.l = #', this._jsObject, l);
78  }
79
80  /// Documentation for the double d.
81  double get d => JS('double', '#.d', this._jsObject);
82
83  void set d(double d) {
84    JS('void', '#.d = #', this._jsObject, d);
85  }
86
87  /// Documentation for the file entry f.
88  FileEntry get f => JS('FileEntry', '#.f', this._jsObject);
89
90  void set f(FileEntry f) {
91    JS('void', '#.f = #', this._jsObject, convertArgument(f));
92  }
93
94  /// Documentation for the optional String s.
95  String get os => JS('String', '#.os', this._jsObject);
96
97  void set os(String os) {
98    JS('void', '#.os = #', this._jsObject, os);
99  }
100
101  /// Documentation for the optional boolean ob.
102  int get ob => JS('int', '#.ob', this._jsObject);
103
104  void set ob(int ob) {
105    JS('void', '#.ob = #', this._jsObject, ob);
106  }
107
108  /// Documentation for the optional int i.
109  int get oi => JS('int', '#.oi', this._jsObject);
110
111  void set oi(int oi) {
112    JS('void', '#.oi = #', this._jsObject, oi);
113  }
114
115  /// Documentation for the optional long l.
116  int get ol => JS('int', '#.ol', this._jsObject);
117
118  void set ol(int ol) {
119    JS('void', '#.ol = #', this._jsObject, ol);
120  }
121
122  /// Documentation for the optional double d.
123  double get od => JS('double', '#.od', this._jsObject);
124
125  void set od(double od) {
126    JS('void', '#.od = #', this._jsObject, od);
127  }
128
129  /// Documentation for the optional file entry f.
130  FileEntry get of => JS('FileEntry', '#.of', this._jsObject);
131
132  void set of(FileEntry of) {
133    JS('void', '#.of = #', this._jsObject, convertArgument(of));
134  }
135
136}
137
138class DictionariesOuterType extends ChromeObject {
139  /*
140   * Public constructor
141   */
142  DictionariesOuterType({List<DictionariesInnerType> items, List<DictionariesInnerType> oitems}) {
143    if (items != null)
144      this.items = items;
145    if (oitems != null)
146      this.oitems = oitems;
147  }
148
149  /*
150   * Private constructor
151   */
152  DictionariesOuterType._proxy(_jsObject) : super._proxy(_jsObject);
153
154  /*
155   * Public accessors
156   */
157  /// Documentation for the array of InnerTypes items.
158  List<DictionariesInnerType> get items {
159    List<DictionariesInnerType> __proxy_items = new List<DictionariesInnerType>();
160    int count = JS('int', '#.items.length', this._jsObject);
161    for (int i = 0; i < count; i++) {
162      var item = JS('', '#.items[#]', this._jsObject, i);
163      __proxy_items.add(new DictionariesInnerType._proxy(item));
164    }
165    return __proxy_items;
166  }
167
168  void set items(List<DictionariesInnerType> items) {
169    JS('void', '#.items = #', this._jsObject, convertArgument(items));
170  }
171
172  /// Documentation for the optional array of Inner Types oitems.
173  List<DictionariesInnerType> get oitems {
174    List<DictionariesInnerType> __proxy_oitems = new List<DictionariesInnerType>();
175    int count = JS('int', '#.oitems.length', this._jsObject);
176    for (int i = 0; i < count; i++) {
177      var item = JS('', '#.oitems[#]', this._jsObject, i);
178      __proxy_oitems.add(new DictionariesInnerType._proxy(item));
179    }
180    return __proxy_oitems;
181  }
182
183  void set oitems(List<DictionariesInnerType> oitems) {
184    JS('void', '#.oitems = #', this._jsObject, convertArgument(oitems));
185  }
186
187}
188
189class DictionariesComplexType extends ChromeObject {
190  /*
191   * Public constructor
192   */
193  DictionariesComplexType({int i, DictionariesComplexType c}) {
194    if (i != null)
195      this.i = i;
196    if (c != null)
197      this.c = c;
198  }
199
200  /*
201   * Private constructor
202   */
203  DictionariesComplexType._proxy(_jsObject) : super._proxy(_jsObject);
204
205  /*
206   * Public accessors
207   */
208  /// Documentation for the int i.
209  int get i => JS('int', '#.i', this._jsObject);
210
211  void set i(int i) {
212    JS('void', '#.i = #', this._jsObject, i);
213  }
214
215  /// Documentation for the ComplexType c.
216  DictionariesComplexType get c => new DictionariesComplexType._proxy(JS('', '#.c', this._jsObject));
217
218  void set c(DictionariesComplexType c) {
219    JS('void', '#.c = #', this._jsObject, convertArgument(c));
220  }
221
222}
223
224/**
225 * Functions
226 */
227
228class API_dictionaries {
229  /*
230   * API connection
231   */
232  Object _jsObject;
233  API_dictionaries(this._jsObject) {
234  }
235}
236