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

Unified Diff: sdk/lib/web_sql/dart2js/web_sql_dart2js.dart

Issue 2754013002: Format all dart: library files (Closed)
Patch Set: Format all dart: library files Created 3 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 side-by-side diff with in-line comments
Download patch
« 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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/web_sql/dart2js/web_sql_dart2js.dart
diff --git a/sdk/lib/web_sql/dart2js/web_sql_dart2js.dart b/sdk/lib/web_sql/dart2js/web_sql_dart2js.dart
index 6592ea87915f4b4bf0599fbe7780e6300cca6306..7de4bbc00f6cfed409cee3f70ec215114c510941 100644
--- a/sdk/lib/web_sql/dart2js/web_sql_dart2js.dart
+++ b/sdk/lib/web_sql/dart2js/web_sql_dart2js.dart
@@ -21,10 +21,13 @@ import 'dart:_interceptors' show Interceptor;
// https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
// Auto-generated dart:audio library.
-
-import 'dart:_js_helper' show convertDartClosureToJS, Creates, JSName, Native,
- JavaScriptIndexingBehavior;
-
+import 'dart:_js_helper'
+ show
+ convertDartClosureToJS,
+ Creates,
+ JSName,
+ Native,
+ JavaScriptIndexingBehavior;
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
@@ -32,29 +35,28 @@ import 'dart:_js_helper' show convertDartClosureToJS, Creates, JSName, Native,
// WARNING: Do not edit - generated code.
-
@DomName('SQLStatementCallback')
// http://www.w3.org/TR/webdatabase/#sqlstatementcallback
@Experimental() // deprecated
-typedef void SqlStatementCallback(SqlTransaction transaction, SqlResultSet resultSet);
+typedef void SqlStatementCallback(
+ SqlTransaction transaction, SqlResultSet resultSet);
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// WARNING: Do not edit - generated code.
-
@DomName('SQLStatementErrorCallback')
// http://www.w3.org/TR/webdatabase/#sqlstatementerrorcallback
@Experimental() // deprecated
-typedef void SqlStatementErrorCallback(SqlTransaction transaction, SqlError error);
+typedef void SqlStatementErrorCallback(
+ SqlTransaction transaction, SqlError error);
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
// WARNING: Do not edit - generated code.
-
@DomName('SQLTransactionCallback')
// http://www.w3.org/TR/webdatabase/#sqltransactioncallback
@Experimental() // deprecated
@@ -65,7 +67,6 @@ typedef void SqlTransactionCallback(SqlTransaction transaction);
// WARNING: Do not edit - generated code.
-
@DomName('SQLTransactionErrorCallback')
// http://www.w3.org/TR/webdatabase/#sqltransactionerrorcallback
@Experimental() // deprecated
@@ -74,7 +75,6 @@ typedef void SqlTransactionErrorCallback(SqlError error);
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('Database')
@SupportedBrowser(SupportedBrowser.CHROME)
@@ -85,7 +85,9 @@ typedef void SqlTransactionErrorCallback(SqlError error);
@Native("Database")
class SqlDatabase extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory SqlDatabase._() { throw new UnsupportedError("Not supported"); }
+ factory SqlDatabase._() {
+ throw new UnsupportedError("Not supported");
+ }
/// Checks if this type is supported on the current platform.
static bool get supported => JS('bool', '!!(window.openDatabase)');
@@ -110,21 +112,27 @@ class SqlDatabase extends Interceptor {
*/
@DomName('Database.changeVersion')
@DocsEditable()
- void changeVersion(String oldVersion, String newVersion, [SqlTransactionCallback callback, SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) native;
+ void changeVersion(String oldVersion, String newVersion,
+ [SqlTransactionCallback callback,
+ SqlTransactionErrorCallback errorCallback,
+ VoidCallback successCallback]) native ;
@DomName('Database.readTransaction')
@DocsEditable()
- void readTransaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) native;
+ void readTransaction(SqlTransactionCallback callback,
+ [SqlTransactionErrorCallback errorCallback,
+ VoidCallback successCallback]) native ;
@DomName('Database.transaction')
@DocsEditable()
- void transaction(SqlTransactionCallback callback, [SqlTransactionErrorCallback errorCallback, VoidCallback successCallback]) native;
+ void transaction(SqlTransactionCallback callback,
+ [SqlTransactionErrorCallback errorCallback,
+ VoidCallback successCallback]) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('SQLError')
// http://www.w3.org/TR/webdatabase/#sqlerror
@@ -132,7 +140,9 @@ class SqlDatabase extends Interceptor {
@Native("SQLError")
class SqlError extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory SqlError._() { throw new UnsupportedError("Not supported"); }
+ factory SqlError._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('SQLError.CONSTRAINT_ERR')
@DocsEditable()
@@ -178,7 +188,6 @@ class SqlError extends Interceptor {
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('SQLResultSet')
// http://www.w3.org/TR/webdatabase/#sqlresultset
@@ -186,7 +195,9 @@ class SqlError extends Interceptor {
@Native("SQLResultSet")
class SqlResultSet extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory SqlResultSet._() { throw new UnsupportedError("Not supported"); }
+ factory SqlResultSet._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('SQLResultSet.insertId')
@DocsEditable()
@@ -204,33 +215,35 @@ class SqlResultSet extends Interceptor {
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('SQLResultSetRowList')
// http://www.w3.org/TR/webdatabase/#sqlresultsetrowlist
@Experimental() // deprecated
@Native("SQLResultSetRowList")
-class SqlResultSetRowList extends Interceptor with ListMixin<Map>, ImmutableListMixin<Map> implements List<Map> {
+class SqlResultSetRowList extends Interceptor
+ with ListMixin<Map>, ImmutableListMixin<Map>
+ implements List<Map> {
// To suppress missing implicit constructor warnings.
- factory SqlResultSetRowList._() { throw new UnsupportedError("Not supported"); }
+ factory SqlResultSetRowList._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('SQLResultSetRowList.length')
@DocsEditable()
int get length => JS("int", "#.length", this);
- Map operator[](int index) {
- if (JS("bool", "# >>> 0 !== # || # >= #", index,
- index, index, length))
+ Map operator [](int index) {
+ if (JS("bool", "# >>> 0 !== # || # >= #", index, index, index, length))
throw new RangeError.index(index, this);
return this.item(index);
}
- void operator[]=(int index, Map value) {
+
+ void operator []=(int index, Map value) {
throw new UnsupportedError("Cannot assign element of immutable List.");
}
// -- start List<Map> mixins.
// Map is the element type.
-
set length(int value) {
throw new UnsupportedError("Cannot resize immutable List.");
}
@@ -267,16 +280,16 @@ class SqlResultSetRowList extends Interceptor with ListMixin<Map>, ImmutableList
Map item(int index) {
return convertNativeToDart_Dictionary(_item_1(index));
}
+
@JSName('item')
@DomName('SQLResultSetRowList.item')
@DocsEditable()
- _item_1(index) native;
+ _item_1(index) native ;
}
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-
@DocsEditable()
@DomName('SQLTransaction')
@SupportedBrowser(SupportedBrowser.CHROME)
@@ -287,9 +300,14 @@ class SqlResultSetRowList extends Interceptor with ListMixin<Map>, ImmutableList
@Native("SQLTransaction")
class SqlTransaction extends Interceptor {
// To suppress missing implicit constructor warnings.
- factory SqlTransaction._() { throw new UnsupportedError("Not supported"); }
+ factory SqlTransaction._() {
+ throw new UnsupportedError("Not supported");
+ }
@DomName('SQLTransaction.executeSql')
@DocsEditable()
- void executeSql(String sqlStatement, [List arguments, SqlStatementCallback callback, SqlStatementErrorCallback errorCallback]) native;
+ void executeSql(String sqlStatement,
+ [List arguments,
+ SqlStatementCallback callback,
+ SqlStatementErrorCallback errorCallback]) native ;
}
« 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