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.
5 // Generated from namespace: dictionaries
13 class DictionariesInnerType extends ChromeObject {
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}) {
47 DictionariesInnerType._proxy(_jsObject) : super._proxy(_jsObject);
52 /// Documentation for the String s.
53 String get s => JS('String', '#.s', this._jsObject);
55 void set s(String s) {
56 JS('void', '#.s = #', this._jsObject, s);
59 /// Documentation for the boolean b.
60 int get b => JS('int', '#.b', this._jsObject);
63 JS('void', '#.b = #', this._jsObject, b);
66 /// Documentation for the int i.
67 int get i => JS('int', '#.i', this._jsObject);
70 JS('void', '#.i = #', this._jsObject, i);
73 /// Documentation for the long l.
74 int get l => JS('int', '#.l', this._jsObject);
77 JS('void', '#.l = #', this._jsObject, l);
80 /// Documentation for the double d.
81 double get d => JS('double', '#.d', this._jsObject);
83 void set d(double d) {
84 JS('void', '#.d = #', this._jsObject, d);
87 /// Documentation for the file entry f.
88 FileEntry get f => JS('FileEntry', '#.f', this._jsObject);
90 void set f(FileEntry f) {
91 JS('void', '#.f = #', this._jsObject, convertArgument(f));
94 /// Documentation for the optional String s.
95 String get os => JS('String', '#.os', this._jsObject);
97 void set os(String os) {
98 JS('void', '#.os = #', this._jsObject, os);
101 /// Documentation for the optional boolean ob.
102 int get ob => JS('int', '#.ob', this._jsObject);
104 void set ob(int ob) {
105 JS('void', '#.ob = #', this._jsObject, ob);
108 /// Documentation for the optional int i.
109 int get oi => JS('int', '#.oi', this._jsObject);
111 void set oi(int oi) {
112 JS('void', '#.oi = #', this._jsObject, oi);
115 /// Documentation for the optional long l.
116 int get ol => JS('int', '#.ol', this._jsObject);
118 void set ol(int ol) {
119 JS('void', '#.ol = #', this._jsObject, ol);
122 /// Documentation for the optional double d.
123 double get od => JS('double', '#.od', this._jsObject);
125 void set od(double od) {
126 JS('void', '#.od = #', this._jsObject, od);
129 /// Documentation for the optional file entry f.
130 FileEntry get of => JS('FileEntry', '#.of', this._jsObject);
132 void set of(FileEntry of) {
133 JS('void', '#.of = #', this._jsObject, convertArgument(of));
138 class DictionariesOuterType extends ChromeObject {
142 DictionariesOuterType({List<DictionariesInnerType> items, List<DictionariesInnerType> oitems}) {
146 this.oitems = oitems;
150 * Private constructor
152 DictionariesOuterType._proxy(_jsObject) : super._proxy(_jsObject);
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));
165 return __proxy_items;
168 void set items(List<DictionariesInnerType> items) {
169 JS('void', '#.items = #', this._jsObject, convertArgument(items));
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));
180 return __proxy_oitems;
183 void set oitems(List<DictionariesInnerType> oitems) {
184 JS('void', '#.oitems = #', this._jsObject, convertArgument(oitems));
189 class DictionariesComplexType extends ChromeObject {
193 DictionariesComplexType({int i, DictionariesComplexType c}) {
201 * Private constructor
203 DictionariesComplexType._proxy(_jsObject) : super._proxy(_jsObject);
208 /// Documentation for the int i.
209 int get i => JS('int', '#.i', this._jsObject);
212 JS('void', '#.i = #', this._jsObject, i);
215 /// Documentation for the ComplexType c.
216 DictionariesComplexType get c => new DictionariesComplexType._proxy(JS('', '#.c', this._jsObject));
218 void set c(DictionariesComplexType c) {
219 JS('void', '#.c = #', this._jsObject, convertArgument(c));
228 class API_dictionaries {
233 API_dictionaries(this._jsObject) {