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

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

Issue 1428593002: Deprecate new internal Dartium/JsInterop APIs that are public (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « sdk/lib/web_gl/dartium/web_gl_dartium.dart ('k') | tools/dom/scripts/systemhtml.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'; 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:nativewrappers'; 18 import 'dart:nativewrappers';
19 import 'dart:_blink' as _blink; 19 import 'dart:_blink' as _blink;
20 import 'dart:js' as js; 20 import 'dart:js' as js;
21 21
22 // DO NOT EDIT - unless you are editing documentation as per: 22 // DO NOT EDIT - unless you are editing documentation as per:
23 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 23 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
24 // Auto-generated dart:audio library. 24 // Auto-generated dart:audio library.
25 25
26 26
27 27
28 28
29 // FIXME: Can we make this private? 29 // FIXME: Can we make this private?
30 @Deprecated("Internal Use Only")
30 final web_sqlBlinkMap = { 31 final web_sqlBlinkMap = {
31 'Database': () => SqlDatabase, 32 'Database': () => SqlDatabase,
32 'SQLError': () => SqlError, 33 'SQLError': () => SqlError,
33 'SQLResultSet': () => SqlResultSet, 34 'SQLResultSet': () => SqlResultSet,
34 'SQLResultSetRowList': () => SqlResultSetRowList, 35 'SQLResultSetRowList': () => SqlResultSetRowList,
35 'SQLTransaction': () => SqlTransaction, 36 'SQLTransaction': () => SqlTransaction,
36 37
37 }; 38 };
38 39
39 // FIXME: Can we make this private? 40 // FIXME: Can we make this private?
41 @Deprecated("Internal Use Only")
40 final web_sqlBlinkFunctionMap = { 42 final web_sqlBlinkFunctionMap = {
41 'Database': () => SqlDatabase.internalCreateSqlDatabase, 43 'Database': () => SqlDatabase.internalCreateSqlDatabase,
42 'SQLError': () => SqlError.internalCreateSqlError, 44 'SQLError': () => SqlError.internalCreateSqlError,
43 'SQLResultSet': () => SqlResultSet.internalCreateSqlResultSet, 45 'SQLResultSet': () => SqlResultSet.internalCreateSqlResultSet,
44 'SQLResultSetRowList': () => SqlResultSetRowList.internalCreateSqlResultSetRow List, 46 'SQLResultSetRowList': () => SqlResultSetRowList.internalCreateSqlResultSetRow List,
45 'SQLTransaction': () => SqlTransaction.internalCreateSqlTransaction, 47 'SQLTransaction': () => SqlTransaction.internalCreateSqlTransaction,
46 48
47 }; 49 };
48 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 50 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
49 // for details. All rights reserved. Use of this source code is governed by a 51 // for details. All rights reserved. Use of this source code is governed by a
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 @DomName('Database') 102 @DomName('Database')
101 @SupportedBrowser(SupportedBrowser.CHROME) 103 @SupportedBrowser(SupportedBrowser.CHROME)
102 @SupportedBrowser(SupportedBrowser.SAFARI) 104 @SupportedBrowser(SupportedBrowser.SAFARI)
103 @Experimental() 105 @Experimental()
104 // http://www.w3.org/TR/webdatabase/#asynchronous-database-api 106 // http://www.w3.org/TR/webdatabase/#asynchronous-database-api
105 @Experimental() // deprecated 107 @Experimental() // deprecated
106 class SqlDatabase extends DartHtmlDomObject { 108 class SqlDatabase extends DartHtmlDomObject {
107 // To suppress missing implicit constructor warnings. 109 // To suppress missing implicit constructor warnings.
108 factory SqlDatabase._() { throw new UnsupportedError("Not supported"); } 110 factory SqlDatabase._() { throw new UnsupportedError("Not supported"); }
109 111
112 @Deprecated("Internal Use Only")
110 static SqlDatabase internalCreateSqlDatabase() { 113 static SqlDatabase internalCreateSqlDatabase() {
111 return new SqlDatabase._internalWrap(); 114 return new SqlDatabase._internalWrap();
112 } 115 }
113 116
114 factory SqlDatabase._internalWrap() { 117 factory SqlDatabase._internalWrap() {
115 return new SqlDatabase.internal_(); 118 return new SqlDatabase.internal_();
116 } 119 }
117 120
118 SqlDatabase.internal_() { } 121 SqlDatabase.internal_() { }
119 122
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 182
180 183
181 @DocsEditable() 184 @DocsEditable()
182 @DomName('SQLError') 185 @DomName('SQLError')
183 // http://www.w3.org/TR/webdatabase/#sqlerror 186 // http://www.w3.org/TR/webdatabase/#sqlerror
184 @Experimental() // deprecated 187 @Experimental() // deprecated
185 class SqlError extends DartHtmlDomObject { 188 class SqlError extends DartHtmlDomObject {
186 // To suppress missing implicit constructor warnings. 189 // To suppress missing implicit constructor warnings.
187 factory SqlError._() { throw new UnsupportedError("Not supported"); } 190 factory SqlError._() { throw new UnsupportedError("Not supported"); }
188 191
192 @Deprecated("Internal Use Only")
189 static SqlError internalCreateSqlError() { 193 static SqlError internalCreateSqlError() {
190 return new SqlError._internalWrap(); 194 return new SqlError._internalWrap();
191 } 195 }
192 196
193 factory SqlError._internalWrap() { 197 factory SqlError._internalWrap() {
194 return new SqlError.internal_(); 198 return new SqlError.internal_();
195 } 199 }
196 200
197 SqlError.internal_() { } 201 SqlError.internal_() { }
198 202
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 252
249 253
250 @DocsEditable() 254 @DocsEditable()
251 @DomName('SQLResultSet') 255 @DomName('SQLResultSet')
252 // http://www.w3.org/TR/webdatabase/#sqlresultset 256 // http://www.w3.org/TR/webdatabase/#sqlresultset
253 @Experimental() // deprecated 257 @Experimental() // deprecated
254 class SqlResultSet extends DartHtmlDomObject { 258 class SqlResultSet extends DartHtmlDomObject {
255 // To suppress missing implicit constructor warnings. 259 // To suppress missing implicit constructor warnings.
256 factory SqlResultSet._() { throw new UnsupportedError("Not supported"); } 260 factory SqlResultSet._() { throw new UnsupportedError("Not supported"); }
257 261
262 @Deprecated("Internal Use Only")
258 static SqlResultSet internalCreateSqlResultSet() { 263 static SqlResultSet internalCreateSqlResultSet() {
259 return new SqlResultSet._internalWrap(); 264 return new SqlResultSet._internalWrap();
260 } 265 }
261 266
262 factory SqlResultSet._internalWrap() { 267 factory SqlResultSet._internalWrap() {
263 return new SqlResultSet.internal_(); 268 return new SqlResultSet.internal_();
264 } 269 }
265 270
266 SqlResultSet.internal_() { } 271 SqlResultSet.internal_() { }
267 272
(...skipping 21 matching lines...) Expand all
289 294
290 295
291 @DocsEditable() 296 @DocsEditable()
292 @DomName('SQLResultSetRowList') 297 @DomName('SQLResultSetRowList')
293 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist 298 // http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist
294 @Experimental() // deprecated 299 @Experimental() // deprecated
295 class SqlResultSetRowList extends DartHtmlDomObject with ListMixin<Map>, Immutab leListMixin<Map> implements List<Map> { 300 class SqlResultSetRowList extends DartHtmlDomObject with ListMixin<Map>, Immutab leListMixin<Map> implements List<Map> {
296 // To suppress missing implicit constructor warnings. 301 // To suppress missing implicit constructor warnings.
297 factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); } 302 factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); }
298 303
304 @Deprecated("Internal Use Only")
299 static SqlResultSetRowList internalCreateSqlResultSetRowList() { 305 static SqlResultSetRowList internalCreateSqlResultSetRowList() {
300 return new SqlResultSetRowList._internalWrap(); 306 return new SqlResultSetRowList._internalWrap();
301 } 307 }
302 308
303 factory SqlResultSetRowList._internalWrap() { 309 factory SqlResultSetRowList._internalWrap() {
304 return new SqlResultSetRowList.internal_(); 310 return new SqlResultSetRowList.internal_();
305 } 311 }
306 312
307 SqlResultSetRowList.internal_() { } 313 SqlResultSetRowList.internal_() { }
308 314
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 @DomName('SQLTransaction') 381 @DomName('SQLTransaction')
376 @SupportedBrowser(SupportedBrowser.CHROME) 382 @SupportedBrowser(SupportedBrowser.CHROME)
377 @SupportedBrowser(SupportedBrowser.SAFARI) 383 @SupportedBrowser(SupportedBrowser.SAFARI)
378 @Experimental() 384 @Experimental()
379 // http://www.w3.org/TR/webdatabase/#sqltransaction 385 // http://www.w3.org/TR/webdatabase/#sqltransaction
380 @deprecated // deprecated 386 @deprecated // deprecated
381 class SqlTransaction extends DartHtmlDomObject { 387 class SqlTransaction extends DartHtmlDomObject {
382 // To suppress missing implicit constructor warnings. 388 // To suppress missing implicit constructor warnings.
383 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); } 389 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); }
384 390
391 @Deprecated("Internal Use Only")
385 static SqlTransaction internalCreateSqlTransaction() { 392 static SqlTransaction internalCreateSqlTransaction() {
386 return new SqlTransaction._internalWrap(); 393 return new SqlTransaction._internalWrap();
387 } 394 }
388 395
389 factory SqlTransaction._internalWrap() { 396 factory SqlTransaction._internalWrap() {
390 return new SqlTransaction.internal_(); 397 return new SqlTransaction.internal_();
391 } 398 }
392 399
393 SqlTransaction.internal_() { } 400 SqlTransaction.internal_() { }
394 401
395 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other); 402 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
396 int get hashCode => unwrap_jso(this).hashCode; 403 int get hashCode => unwrap_jso(this).hashCode;
397 404
398 @DomName('SQLTransaction.executeSql') 405 @DomName('SQLTransaction.executeSql')
399 @DocsEditable() 406 @DocsEditable()
400 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall back callback, SqlStatementErrorCallback errorCallback]) => _blink.BlinkSQLTrans action.instance.executeSql_Callback_4_(unwrap_jso(this), sqlStatement, unwrap_js o(arguments), unwrap_jso((transaction, resultSet) => callback(wrap_jso(transacti on), wrap_jso(resultSet))), unwrap_jso((transaction, error) => errorCallback(wra p_jso(transaction), wrap_jso(error)))); 407 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall back callback, SqlStatementErrorCallback errorCallback]) => _blink.BlinkSQLTrans action.instance.executeSql_Callback_4_(unwrap_jso(this), sqlStatement, unwrap_js o(arguments), unwrap_jso((transaction, resultSet) => callback(wrap_jso(transacti on), wrap_jso(resultSet))), unwrap_jso((transaction, error) => errorCallback(wra p_jso(transaction), wrap_jso(error))));
401 408
402 } 409 }
OLDNEW
« no previous file with comments | « sdk/lib/web_gl/dartium/web_gl_dartium.dart ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698