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

Side by Side Diff: sdk/lib/web_sql/dartium/web_sql_dartium.dart

Issue 258733009: Rename blink -> _blink (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regenerate SDK from dart repo Created 6 years, 7 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 | Annotate | Revision Log
« no previous file with comments | « sdk/lib/web_gl/dartium/web_gl_dartium.dart ('k') | tools/create_sdk.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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' hide deprecated; 15 import 'dart:_internal' hide deprecated;
16 import 'dart:html'; 16 import 'dart:html';
17 import 'dart:html_common'; 17 import 'dart:html_common';
18 import 'dart:nativewrappers'; 18 import 'dart:nativewrappers';
19 import 'dart:blink' as blink; 19 import 'dart:_blink' as _blink;
20 // DO NOT EDIT - unless you are editing documentation as per: 20 // DO NOT EDIT - unless you are editing documentation as per:
21 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 21 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
22 // Auto-generated dart:audio library. 22 // Auto-generated dart:audio library.
23 23
24 24
25 25
26 26
27 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 27 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
28 // for details. All rights reserved. Use of this source code is governed by a 28 // for details. All rights reserved. Use of this source code is governed by a
29 // BSD-style license that can be found in the LICENSE file. 29 // BSD-style license that can be found in the LICENSE file.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 @Experimental() // deprecated 84 @Experimental() // deprecated
85 class SqlDatabase extends NativeFieldWrapperClass2 { 85 class SqlDatabase extends NativeFieldWrapperClass2 {
86 // To suppress missing implicit constructor warnings. 86 // To suppress missing implicit constructor warnings.
87 factory SqlDatabase._() { throw new UnsupportedError("Not supported"); } 87 factory SqlDatabase._() { throw new UnsupportedError("Not supported"); }
88 88
89 /// Checks if this type is supported on the current platform. 89 /// Checks if this type is supported on the current platform.
90 static bool get supported => true; 90 static bool get supported => true;
91 91
92 @DomName('Database.version') 92 @DomName('Database.version')
93 @DocsEditable() 93 @DocsEditable()
94 String get version => blink.Native_Database_version_Getter(this); 94 String get version => _blink.Native_Database_version_Getter(this);
95 95
96 /** 96 /**
97 * Atomically update the database version to [newVersion], asynchronously 97 * Atomically update the database version to [newVersion], asynchronously
98 * running [callback] on the [SqlTransaction] representing this 98 * running [callback] on the [SqlTransaction] representing this
99 * [changeVersion] transaction. 99 * [changeVersion] transaction.
100 * 100 *
101 * If [callback] runs successfully, then [successCallback] is called. 101 * If [callback] runs successfully, then [successCallback] is called.
102 * Otherwise, [errorCallback] is called. 102 * Otherwise, [errorCallback] is called.
103 * 103 *
104 * [oldVersion] should match the database's current [version] exactly. 104 * [oldVersion] should match the database's current [version] exactly.
105 * 105 *
106 * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom-database-c hangeversion) from W3C. 106 * * [Database.changeVersion](http://www.w3.org/TR/webdatabase/#dom-database-c hangeversion) from W3C.
107 */ 107 */
108 @DomName('Database.changeVersion') 108 @DomName('Database.changeVersion')
109 @DocsEditable() 109 @DocsEditable()
110 void changeVersion(String oldVersion, String newVersion, [SqlTransactionCallba ck callback, SqlTransactionErrorCallback errorCallback, VoidCallback successCall back]) => blink.Native_Database_changeVersion_Callback(this, oldVersion, newVers ion, callback, errorCallback, successCallback); 110 void changeVersion(String oldVersion, String newVersion, [SqlTransactionCallba ck callback, SqlTransactionErrorCallback errorCallback, VoidCallback successCall back]) => _blink.Native_Database_changeVersion_Callback(this, oldVersion, newVer sion, callback, errorCallback, successCallback);
111 111
112 @DomName('Database.readTransaction') 112 @DomName('Database.readTransaction')
113 @DocsEditable() 113 @DocsEditable()
114 void readTransaction(SqlTransactionCallback callback, [SqlTransactionErrorCall back errorCallback, VoidCallback successCallback]) => blink.Native_Database_read Transaction_Callback(this, callback, errorCallback, successCallback); 114 void readTransaction(SqlTransactionCallback callback, [SqlTransactionErrorCall back errorCallback, VoidCallback successCallback]) => _blink.Native_Database_rea dTransaction_Callback(this, callback, errorCallback, successCallback);
115 115
116 @DomName('Database.transaction') 116 @DomName('Database.transaction')
117 @DocsEditable() 117 @DocsEditable()
118 void transaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) => blink.Native_Database_transact ion_Callback(this, callback, errorCallback, successCallback); 118 void transaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) => _blink.Native_Database_transac tion_Callback(this, callback, errorCallback, successCallback);
119 119
120 } 120 }
121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
122 // for details. All rights reserved. Use of this source code is governed by a 122 // for details. All rights reserved. Use of this source code is governed by a
123 // BSD-style license that can be found in the LICENSE file. 123 // BSD-style license that can be found in the LICENSE file.
124 124
125 // WARNING: Do not edit - generated code. 125 // WARNING: Do not edit - generated code.
126 126
127 127
128 @DocsEditable() 128 @DocsEditable()
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 @DomName('SQLError.UNKNOWN_ERR') 160 @DomName('SQLError.UNKNOWN_ERR')
161 @DocsEditable() 161 @DocsEditable()
162 static const int UNKNOWN_ERR = 0; 162 static const int UNKNOWN_ERR = 0;
163 163
164 @DomName('SQLError.VERSION_ERR') 164 @DomName('SQLError.VERSION_ERR')
165 @DocsEditable() 165 @DocsEditable()
166 static const int VERSION_ERR = 2; 166 static const int VERSION_ERR = 2;
167 167
168 @DomName('SQLError.code') 168 @DomName('SQLError.code')
169 @DocsEditable() 169 @DocsEditable()
170 int get code => blink.Native_SQLError_code_Getter(this); 170 int get code => _blink.Native_SQLError_code_Getter(this);
171 171
172 @DomName('SQLError.message') 172 @DomName('SQLError.message')
173 @DocsEditable() 173 @DocsEditable()
174 String get message => blink.Native_SQLError_message_Getter(this); 174 String get message => _blink.Native_SQLError_message_Getter(this);
175 175
176 } 176 }
177 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 177 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
178 // for details. All rights reserved. Use of this source code is governed by a 178 // for details. All rights reserved. Use of this source code is governed by a
179 // BSD-style license that can be found in the LICENSE file. 179 // BSD-style license that can be found in the LICENSE file.
180 180
181 // WARNING: Do not edit - generated code. 181 // WARNING: Do not edit - generated code.
182 182
183 183
184 @DocsEditable() 184 @DocsEditable()
185 @DomName('SQLResultSet') 185 @DomName('SQLResultSet')
186 // http://www.w3.org/TR/webdatabase/#sqlresultset 186 // http://www.w3.org/TR/webdatabase/#sqlresultset
187 @Experimental() // deprecated 187 @Experimental() // deprecated
188 class SqlResultSet extends NativeFieldWrapperClass2 { 188 class SqlResultSet extends NativeFieldWrapperClass2 {
189 // To suppress missing implicit constructor warnings. 189 // To suppress missing implicit constructor warnings.
190 factory SqlResultSet._() { throw new UnsupportedError("Not supported"); } 190 factory SqlResultSet._() { throw new UnsupportedError("Not supported"); }
191 191
192 @DomName('SQLResultSet.insertId') 192 @DomName('SQLResultSet.insertId')
193 @DocsEditable() 193 @DocsEditable()
194 int get insertId => blink.Native_SQLResultSet_insertId_Getter(this); 194 int get insertId => _blink.Native_SQLResultSet_insertId_Getter(this);
195 195
196 @DomName('SQLResultSet.rows') 196 @DomName('SQLResultSet.rows')
197 @DocsEditable() 197 @DocsEditable()
198 SqlResultSetRowList get rows => blink.Native_SQLResultSet_rows_Getter(this); 198 SqlResultSetRowList get rows => _blink.Native_SQLResultSet_rows_Getter(this);
199 199
200 @DomName('SQLResultSet.rowsAffected') 200 @DomName('SQLResultSet.rowsAffected')
201 @DocsEditable() 201 @DocsEditable()
202 int get rowsAffected => blink.Native_SQLResultSet_rowsAffected_Getter(this); 202 int get rowsAffected => _blink.Native_SQLResultSet_rowsAffected_Getter(this);
203 203
204 } 204 }
205 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 205 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
206 // for details. All rights reserved. Use of this source code is governed by a 206 // for details. All rights reserved. Use of this source code is governed by a
207 // BSD-style license that can be found in the LICENSE file. 207 // BSD-style license that can be found in the LICENSE file.
208 208
209 // WARNING: Do not edit - generated code. 209 // WARNING: Do not edit - generated code.
210 210
211 211
212 @DocsEditable() 212 @DocsEditable()
213 @DomName('SQLResultSetRowList') 213 @DomName('SQLResultSetRowList')
214 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist 214 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist
215 @Experimental() // deprecated 215 @Experimental() // deprecated
216 class SqlResultSetRowList extends NativeFieldWrapperClass2 with ListMixin<Map>, ImmutableListMixin<Map> implements List<Map> { 216 class SqlResultSetRowList extends NativeFieldWrapperClass2 with ListMixin<Map>, ImmutableListMixin<Map> implements List<Map> {
217 // To suppress missing implicit constructor warnings. 217 // To suppress missing implicit constructor warnings.
218 factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); } 218 factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); }
219 219
220 @DomName('SQLResultSetRowList.length') 220 @DomName('SQLResultSetRowList.length')
221 @DocsEditable() 221 @DocsEditable()
222 int get length => blink.Native_SQLResultSetRowList_length_Getter(this); 222 int get length => _blink.Native_SQLResultSetRowList_length_Getter(this);
223 223
224 Map operator[](int index) { 224 Map operator[](int index) {
225 if (index < 0 || index >= length) 225 if (index < 0 || index >= length)
226 throw new RangeError.range(index, 0, length); 226 throw new RangeError.range(index, 0, length);
227 return blink.Native_SQLResultSetRowList_NativeIndexed_Getter(this, index); 227 return _blink.Native_SQLResultSetRowList_NativeIndexed_Getter(this, index);
228 } 228 }
229 229
230 Map _nativeIndexedGetter(int index) => blink.Native_SQLResultSetRowList_Native Indexed_Getter(this, index); 230 Map _nativeIndexedGetter(int index) => _blink.Native_SQLResultSetRowList_Nativ eIndexed_Getter(this, index);
231 231
232 void operator[]=(int index, Map value) { 232 void operator[]=(int index, Map value) {
233 throw new UnsupportedError("Cannot assign element of immutable List."); 233 throw new UnsupportedError("Cannot assign element of immutable List.");
234 } 234 }
235 // -- start List<Map> mixins. 235 // -- start List<Map> mixins.
236 // Map is the element type. 236 // Map is the element type.
237 237
238 238
239 void set length(int value) { 239 void set length(int value) {
240 throw new UnsupportedError("Cannot resize immutable List."); 240 throw new UnsupportedError("Cannot resize immutable List.");
(...skipping 21 matching lines...) Expand all
262 } 262 }
263 if (len == 0) throw new StateError("No elements"); 263 if (len == 0) throw new StateError("No elements");
264 throw new StateError("More than one element"); 264 throw new StateError("More than one element");
265 } 265 }
266 266
267 Map elementAt(int index) => this[index]; 267 Map elementAt(int index) => this[index];
268 // -- end List<Map> mixins. 268 // -- end List<Map> mixins.
269 269
270 @DomName('SQLResultSetRowList.item') 270 @DomName('SQLResultSetRowList.item')
271 @DocsEditable() 271 @DocsEditable()
272 Map item(int index) => blink.Native_SQLResultSetRowList_item_Callback(this, in dex); 272 Map item(int index) => _blink.Native_SQLResultSetRowList_item_Callback(this, i ndex);
273 273
274 } 274 }
275 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 275 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
276 // for details. All rights reserved. Use of this source code is governed by a 276 // for details. All rights reserved. Use of this source code is governed by a
277 // BSD-style license that can be found in the LICENSE file. 277 // BSD-style license that can be found in the LICENSE file.
278 278
279 // WARNING: Do not edit - generated code. 279 // WARNING: Do not edit - generated code.
280 280
281 281
282 @DocsEditable() 282 @DocsEditable()
283 @DomName('SQLTransaction') 283 @DomName('SQLTransaction')
284 @SupportedBrowser(SupportedBrowser.CHROME) 284 @SupportedBrowser(SupportedBrowser.CHROME)
285 @SupportedBrowser(SupportedBrowser.SAFARI) 285 @SupportedBrowser(SupportedBrowser.SAFARI)
286 @Experimental() 286 @Experimental()
287 // http://www.w3.org/TR/webdatabase/#sqltransaction 287 // http://www.w3.org/TR/webdatabase/#sqltransaction
288 @deprecated // deprecated 288 @deprecated // deprecated
289 class SqlTransaction extends NativeFieldWrapperClass2 { 289 class SqlTransaction extends NativeFieldWrapperClass2 {
290 // To suppress missing implicit constructor warnings. 290 // To suppress missing implicit constructor warnings.
291 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); } 291 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); }
292 292
293 @DomName('SQLTransaction.executeSql') 293 @DomName('SQLTransaction.executeSql')
294 @DocsEditable() 294 @DocsEditable()
295 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall back callback, SqlStatementErrorCallback errorCallback]) => blink.Native_SQLTran saction_executeSql_Callback(this, sqlStatement, arguments, callback, errorCallba ck); 295 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall back callback, SqlStatementErrorCallback errorCallback]) => _blink.Native_SQLTra nsaction_executeSql_Callback(this, sqlStatement, arguments, callback, errorCallb ack);
296 296
297 } 297 }
298 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 298 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
299 // for details. All rights reserved. Use of this source code is governed by a 299 // for details. All rights reserved. Use of this source code is governed by a
300 // BSD-style license that can be found in the LICENSE file. 300 // BSD-style license that can be found in the LICENSE file.
301 301
302 // WARNING: Do not edit - generated code. 302 // WARNING: Do not edit - generated code.
303 303
304 304
305 @DocsEditable() 305 @DocsEditable()
306 @DomName('SQLTransactionSync') 306 @DomName('SQLTransactionSync')
307 @SupportedBrowser(SupportedBrowser.CHROME) 307 @SupportedBrowser(SupportedBrowser.CHROME)
308 @SupportedBrowser(SupportedBrowser.SAFARI) 308 @SupportedBrowser(SupportedBrowser.SAFARI)
309 @Experimental() 309 @Experimental()
310 // http://www.w3.org/TR/webdatabase/#sqltransactionsync 310 // http://www.w3.org/TR/webdatabase/#sqltransactionsync
311 @Experimental() // deprecated 311 @Experimental() // deprecated
312 abstract class _SQLTransactionSync extends NativeFieldWrapperClass2 { 312 abstract class _SQLTransactionSync extends NativeFieldWrapperClass2 {
313 // To suppress missing implicit constructor warnings. 313 // To suppress missing implicit constructor warnings.
314 factory _SQLTransactionSync._() { throw new UnsupportedError("Not supported"); } 314 factory _SQLTransactionSync._() { throw new UnsupportedError("Not supported"); }
315 315
316 } 316 }
OLDNEW
« no previous file with comments | « sdk/lib/web_gl/dartium/web_gl_dartium.dart ('k') | tools/create_sdk.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698