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

Side by Side Diff: sdk/lib/web_sql/dart2js/web_sql_dart2js.dart

Issue 1763753002: Revert "Changes to tests and status file for the 45 roll w/ regenderated sdk/libs" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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
1 /** 1 /**
2 * An API for storing data in the browser that can be queried with SQL. 2 * An API for storing data in the browser that can be queried with SQL.
3 * 3 *
4 * **Caution:** this specification is no longer actively maintained by the Web 4 * **Caution:** this specification is no longer actively maintained by the Web
5 * Applications Working Group and may be removed at any time. 5 * Applications Working Group and may be removed at any time.
6 * See [the W3C Web SQL Database specification](http://www.w3.org/TR/webdatabase /) 6 * See [the W3C Web SQL Database specification](http://www.w3.org/TR/webdatabase /)
7 * for more information. 7 * for more information.
8 * 8 *
9 * The [dart:indexed_db] APIs is a recommended alternatives. 9 * The [dart:indexed_db] APIs is a recommended alternatives.
10 */ 10 */
11 library dart.dom.web_sql; 11 library dart.dom.web_sql;
12 12
13 import 'dart:async'; 13 import 'dart:async';
14 import 'dart:collection'; 14 import 'dart:collection';
15 import 'dart:_internal'; 15 import 'dart:_internal';
16 import 'dart:html'; 16 import 'dart:html';
17 import 'dart:html_common'; 17 import 'dart:html_common';
18 import 'dart:_js_helper' show convertDartClosureToJS, Creates, JSName, Native;
18 import 'dart:_foreign_helper' show JS; 19 import 'dart:_foreign_helper' show JS;
19 import 'dart:_interceptors' show Interceptor; 20 import 'dart:_interceptors' show Interceptor;
20 // DO NOT EDIT - unless you are editing documentation as per: 21 // DO NOT EDIT - unless you are editing documentation as per:
21 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 22 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
22 // Auto-generated dart:audio library. 23 // Auto-generated dart:audio library.
23 24
24 25
25 import 'dart:_js_helper' show convertDartClosureToJS, Creates, JSName, Native,
26 JavaScriptIndexingBehavior;
27 26
28 27
29 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 28 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
30 // for details. All rights reserved. Use of this source code is governed by a 29 // for details. All rights reserved. Use of this source code is governed by a
31 // BSD-style license that can be found in the LICENSE file. 30 // BSD-style license that can be found in the LICENSE file.
32 31
33 // WARNING: Do not edit - generated code. 32 // WARNING: Do not edit - generated code.
34 33
35 34
36 @DomName('SQLStatementCallback') 35 @DomName('SQLStatementCallback')
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 202 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
204 // for details. All rights reserved. Use of this source code is governed by a 203 // for details. All rights reserved. Use of this source code is governed by a
205 // BSD-style license that can be found in the LICENSE file. 204 // BSD-style license that can be found in the LICENSE file.
206 205
207 206
208 @DocsEditable() 207 @DocsEditable()
209 @DomName('SQLResultSetRowList') 208 @DomName('SQLResultSetRowList')
210 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist 209 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist
211 @Experimental() // deprecated 210 @Experimental() // deprecated
212 @Native("SQLResultSetRowList") 211 @Native("SQLResultSetRowList")
213 class SqlResultSetRowList extends Interceptor with ListMixin<Map>, ImmutableList Mixin<Map> implements JavaScriptIndexingBehavior, List<Map> { 212 class SqlResultSetRowList extends Interceptor with ListMixin<Map>, ImmutableList Mixin<Map> implements List<Map> {
214 // To suppress missing implicit constructor warnings. 213 // To suppress missing implicit constructor warnings.
215 factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); } 214 factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); }
216 215
217 @DomName('SQLResultSetRowList.length') 216 @DomName('SQLResultSetRowList.length')
218 @DocsEditable() 217 @DocsEditable()
219 int get length => JS("int", "#.length", this); 218 int get length => JS("int", "#.length", this);
220 219
221 Map operator[](int index) { 220 Map operator[](int index) {
222 if (JS("bool", "# >>> 0 !== # || # >= #", index, 221 if (JS("bool", "# >>> 0 !== # || # >= #", index,
223 index, index, length)) 222 index, index, length))
224 throw new RangeError.index(index, this); 223 throw new RangeError.index(index, this);
225 return JS("Map", "#[#]", this, index); 224 return this.item(index);
226 } 225 }
227 void operator[]=(int index, Map value) { 226 void operator[]=(int index, Map value) {
228 throw new UnsupportedError("Cannot assign element of immutable List."); 227 throw new UnsupportedError("Cannot assign element of immutable List.");
229 } 228 }
230 // -- start List<Map> mixins. 229 // -- start List<Map> mixins.
231 // Map is the element type. 230 // Map is the element type.
232 231
233 232
234 set length(int value) { 233 set length(int value) {
235 throw new UnsupportedError("Cannot resize immutable List."); 234 throw new UnsupportedError("Cannot resize immutable List.");
(...skipping 22 matching lines...) Expand all
258 if (len == 0) throw new StateError("No elements"); 257 if (len == 0) throw new StateError("No elements");
259 throw new StateError("More than one element"); 258 throw new StateError("More than one element");
260 } 259 }
261 260
262 Map elementAt(int index) => this[index]; 261 Map elementAt(int index) => this[index];
263 // -- end List<Map> mixins. 262 // -- end List<Map> mixins.
264 263
265 @DomName('SQLResultSetRowList.item') 264 @DomName('SQLResultSetRowList.item')
266 @DocsEditable() 265 @DocsEditable()
267 @Creates('=Object') 266 @Creates('=Object')
268 Object item(int index) native; 267 Map item(int index) {
268 return convertNativeToDart_Dictionary(_item_1(index));
269 }
270 @JSName('item')
271 @DomName('SQLResultSetRowList.item')
272 @DocsEditable()
273 @Creates('=Object')
274 _item_1(index) native;
269 } 275 }
270 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
271 // for details. All rights reserved. Use of this source code is governed by a 277 // for details. All rights reserved. Use of this source code is governed by a
272 // BSD-style license that can be found in the LICENSE file. 278 // BSD-style license that can be found in the LICENSE file.
273 279
274 280
275 @DocsEditable() 281 @DocsEditable()
276 @DomName('SQLTransaction') 282 @DomName('SQLTransaction')
277 @SupportedBrowser(SupportedBrowser.CHROME) 283 @SupportedBrowser(SupportedBrowser.CHROME)
278 @SupportedBrowser(SupportedBrowser.SAFARI) 284 @SupportedBrowser(SupportedBrowser.SAFARI)
279 @Experimental() 285 @Experimental()
280 // http://www.w3.org/TR/webdatabase/#sqltransaction 286 // http://www.w3.org/TR/webdatabase/#sqltransaction
281 @deprecated // deprecated 287 @deprecated // deprecated
282 @Native("SQLTransaction") 288 @Native("SQLTransaction")
283 class SqlTransaction extends Interceptor { 289 class SqlTransaction extends Interceptor {
284 // To suppress missing implicit constructor warnings. 290 // To suppress missing implicit constructor warnings.
285 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); } 291 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); }
286 292
287 @DomName('SQLTransaction.executeSql') 293 @DomName('SQLTransaction.executeSql')
288 @DocsEditable() 294 @DocsEditable()
289 void executeSql(String sqlStatement, [List arguments, SqlStatementCallback cal lback, SqlStatementErrorCallback errorCallback]) native; 295 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall back callback, SqlStatementErrorCallback errorCallback]) native;
290 } 296 }
OLDNEW
« no previous file with comments | « sdk/lib/web_gl/dartium/web_gl_dartium.dart ('k') | sdk/lib/web_sql/dartium/web_sql_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698