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

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

Issue 1257733003: Change _internal from private so we work across library boundaries (Closed) Base URL: git@github.com:dart-lang/sdk.git@integration
Patch Set: Created 5 years, 5 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
« 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 */
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 // To suppress missing implicit constructor warnings. 105 // To suppress missing implicit constructor warnings.
106 factory SqlDatabase._() { throw new UnsupportedError("Not supported"); } 106 factory SqlDatabase._() { throw new UnsupportedError("Not supported"); }
107 107
108 static SqlDatabase internalCreateSqlDatabase() { 108 static SqlDatabase internalCreateSqlDatabase() {
109 return new SqlDatabase._internalWrap(); 109 return new SqlDatabase._internalWrap();
110 } 110 }
111 111
112 JsObject blink_jsObject = null; 112 JsObject blink_jsObject = null;
113 113
114 factory SqlDatabase._internalWrap() { 114 factory SqlDatabase._internalWrap() {
115 return new SqlDatabase._internal(); 115 return new SqlDatabase.internal_();
116 } 116 }
117 117
118 SqlDatabase._internal() { } 118 SqlDatabase.internal_() { }
119 119
120 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other); 120 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
121 121
122 /// Checks if this type is supported on the current platform. 122 /// Checks if this type is supported on the current platform.
123 static bool get supported => true; 123 static bool get supported => true;
124 124
125 @DomName('Database.version') 125 @DomName('Database.version')
126 @DocsEditable() 126 @DocsEditable()
127 String get version => _blink.BlinkDatabase.instance.version_Getter_(unwrap_jso (this)); 127 String get version => _blink.BlinkDatabase.instance.version_Getter_(unwrap_jso (this));
128 128
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // To suppress missing implicit constructor warnings. 185 // To suppress missing implicit constructor warnings.
186 factory SqlError._() { throw new UnsupportedError("Not supported"); } 186 factory SqlError._() { throw new UnsupportedError("Not supported"); }
187 187
188 static SqlError internalCreateSqlError() { 188 static SqlError internalCreateSqlError() {
189 return new SqlError._internalWrap(); 189 return new SqlError._internalWrap();
190 } 190 }
191 191
192 JsObject blink_jsObject = null; 192 JsObject blink_jsObject = null;
193 193
194 factory SqlError._internalWrap() { 194 factory SqlError._internalWrap() {
195 return new SqlError._internal(); 195 return new SqlError.internal_();
196 } 196 }
197 197
198 SqlError._internal() { } 198 SqlError.internal_() { }
199 199
200 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other); 200 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
201 201
202 @DomName('SQLError.CONSTRAINT_ERR') 202 @DomName('SQLError.CONSTRAINT_ERR')
203 @DocsEditable() 203 @DocsEditable()
204 static const int CONSTRAINT_ERR = 6; 204 static const int CONSTRAINT_ERR = 6;
205 205
206 @DomName('SQLError.DATABASE_ERR') 206 @DomName('SQLError.DATABASE_ERR')
207 @DocsEditable() 207 @DocsEditable()
208 static const int DATABASE_ERR = 1; 208 static const int DATABASE_ERR = 1;
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 // To suppress missing implicit constructor warnings. 255 // To suppress missing implicit constructor warnings.
256 factory SqlResultSet._() { throw new UnsupportedError("Not supported"); } 256 factory SqlResultSet._() { throw new UnsupportedError("Not supported"); }
257 257
258 static SqlResultSet internalCreateSqlResultSet() { 258 static SqlResultSet internalCreateSqlResultSet() {
259 return new SqlResultSet._internalWrap(); 259 return new SqlResultSet._internalWrap();
260 } 260 }
261 261
262 JsObject blink_jsObject = null; 262 JsObject blink_jsObject = null;
263 263
264 factory SqlResultSet._internalWrap() { 264 factory SqlResultSet._internalWrap() {
265 return new SqlResultSet._internal(); 265 return new SqlResultSet.internal_();
266 } 266 }
267 267
268 SqlResultSet._internal() { } 268 SqlResultSet.internal_() { }
269 269
270 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other); 270 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
271 271
272 @DomName('SQLResultSet.insertId') 272 @DomName('SQLResultSet.insertId')
273 @DocsEditable() 273 @DocsEditable()
274 int get insertId => _blink.BlinkSQLResultSet.instance.insertId_Getter_(unwrap_ jso(this)); 274 int get insertId => _blink.BlinkSQLResultSet.instance.insertId_Getter_(unwrap_ jso(this));
275 275
276 @DomName('SQLResultSet.rows') 276 @DomName('SQLResultSet.rows')
277 @DocsEditable() 277 @DocsEditable()
278 SqlResultSetRowList get rows => wrap_jso(_blink.BlinkSQLResultSet.instance.row s_Getter_(unwrap_jso(this))); 278 SqlResultSetRowList get rows => wrap_jso(_blink.BlinkSQLResultSet.instance.row s_Getter_(unwrap_jso(this)));
(...skipping 18 matching lines...) Expand all
297 // To suppress missing implicit constructor warnings. 297 // To suppress missing implicit constructor warnings.
298 factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); } 298 factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); }
299 299
300 static SqlResultSetRowList internalCreateSqlResultSetRowList() { 300 static SqlResultSetRowList internalCreateSqlResultSetRowList() {
301 return new SqlResultSetRowList._internalWrap(); 301 return new SqlResultSetRowList._internalWrap();
302 } 302 }
303 303
304 JsObject blink_jsObject = null; 304 JsObject blink_jsObject = null;
305 305
306 factory SqlResultSetRowList._internalWrap() { 306 factory SqlResultSetRowList._internalWrap() {
307 return new SqlResultSetRowList._internal(); 307 return new SqlResultSetRowList.internal_();
308 } 308 }
309 309
310 SqlResultSetRowList._internal() { } 310 SqlResultSetRowList.internal_() { }
311 311
312 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other); 312 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
313 313
314 @DomName('SQLResultSetRowList.length') 314 @DomName('SQLResultSetRowList.length')
315 @DocsEditable() 315 @DocsEditable()
316 int get length => _blink.BlinkSQLResultSetRowList.instance.length_Getter_(unwr ap_jso(this)); 316 int get length => _blink.BlinkSQLResultSetRowList.instance.length_Getter_(unwr ap_jso(this));
317 317
318 Map operator[](int index) { 318 Map operator[](int index) {
319 if (index < 0 || index >= length) 319 if (index < 0 || index >= length)
320 throw new RangeError.index(index, this); 320 throw new RangeError.index(index, this);
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
384 // To suppress missing implicit constructor warnings. 384 // To suppress missing implicit constructor warnings.
385 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); } 385 factory SqlTransaction._() { throw new UnsupportedError("Not supported"); }
386 386
387 static SqlTransaction internalCreateSqlTransaction() { 387 static SqlTransaction internalCreateSqlTransaction() {
388 return new SqlTransaction._internalWrap(); 388 return new SqlTransaction._internalWrap();
389 } 389 }
390 390
391 JsObject blink_jsObject = null; 391 JsObject blink_jsObject = null;
392 392
393 factory SqlTransaction._internalWrap() { 393 factory SqlTransaction._internalWrap() {
394 return new SqlTransaction._internal(); 394 return new SqlTransaction.internal_();
395 } 395 }
396 396
397 SqlTransaction._internal() { } 397 SqlTransaction.internal_() { }
398 398
399 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other); 399 bool operator ==(other) => unwrap_jso(other) == unwrap_jso(this) || identical( this, other);
400 400
401 @DomName('SQLTransaction.executeSql') 401 @DomName('SQLTransaction.executeSql')
402 @DocsEditable() 402 @DocsEditable()
403 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall back callback, SqlStatementErrorCallback errorCallback]) => _blink.BlinkSQLTrans action.instance.executeSql_Callback_4_(unwrap_jso(this), sqlStatement, arguments , unwrap_jso(callback), unwrap_jso(errorCallback)); 403 void executeSql(String sqlStatement, List<Object> arguments, [SqlStatementCall back callback, SqlStatementErrorCallback errorCallback]) => _blink.BlinkSQLTrans action.instance.executeSql_Callback_4_(unwrap_jso(this), sqlStatement, arguments , unwrap_jso(callback), unwrap_jso(errorCallback));
404 404
405 } 405 }
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