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

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

Issue 1348173002: Dartium JS Enabled take 2 (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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 */
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 throw new RangeError.index(index, this); 221 throw new RangeError.index(index, this);
222 return this.item(index); 222 return this.item(index);
223 } 223 }
224 void operator[]=(int index, Map value) { 224 void operator[]=(int index, Map value) {
225 throw new UnsupportedError("Cannot assign element of immutable List."); 225 throw new UnsupportedError("Cannot assign element of immutable List.");
226 } 226 }
227 // -- start List<Map> mixins. 227 // -- start List<Map> mixins.
228 // Map is the element type. 228 // Map is the element type.
229 229
230 230
231 void set length(int value) { 231 set length(int value) {
232 throw new UnsupportedError("Cannot resize immutable List."); 232 throw new UnsupportedError("Cannot resize immutable List.");
233 } 233 }
234 234
235 Map get first { 235 Map get first {
236 if (this.length > 0) { 236 if (this.length > 0) {
237 return JS('Map', '#[0]', this); 237 return JS('Map', '#[0]', this);
238 } 238 }
239 throw new StateError("No elements"); 239 throw new StateError("No elements");
240 } 240 }
241 241
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 @deprecated // deprecated 285 @deprecated // deprecated
286 @Native("SQLTransaction") 286 @Native("SQLTransaction")
287 class SqlTransaction extends Interceptor { 287 class SqlTransaction extends Interceptor {
288 // To suppress missing implicit constructor warnings. 288 // To suppress missing implicit constructor warnings.
289 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); } 289 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); }
290 290
291 @DomName('SQLTransaction.executeSql') 291 @DomName('SQLTransaction.executeSql')
292 @DocsEditable() 292 @DocsEditable()
293 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall back callback, SqlStatementErrorCallback errorCallback]) native; 293 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall back callback, SqlStatementErrorCallback errorCallback]) native;
294 } 294 }
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