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

Unified Diff: lib/html/dart2js/html_dart2js.dart

Issue 11140043: Replace DOMStringList with List<String>. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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:
Download patch
« no previous file with comments | « no previous file | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/dart2js/html_dart2js.dart
===================================================================
--- lib/html/dart2js/html_dart2js.dart (revision 13673)
+++ lib/html/dart2js/html_dart2js.dart (working copy)
@@ -9169,27 +9169,9 @@
String value;
}
-// 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.
+class _DOMStringListImpl implements List<String>, JavaScriptIndexingBehavior native "*DOMStringList" {
-/// @domName DOMStringList
-abstract class DOMStringList implements List<String> {
-
- /** @domName DOMStringList.length */
- abstract int get length;
-
- /** @domName DOMStringList.contains */
- bool contains(String string);
-
- /** @domName DOMStringList.item */
- String item(int index);
-}
-
-class _DOMStringListImpl implements DOMStringList, JavaScriptIndexingBehavior native "*DOMStringList" {
-
final int length;
String operator[](int index) native "return this[index];";
@@ -15543,8 +15525,8 @@
throw new ArgumentError(mode);
}
- // TODO(sra): Ensure storeName_OR_storeNames is a string, List<String> or
- // DOMStringList, and copy to JavaScript array if necessary.
+ // TODO(sra): Ensure storeName_OR_storeNames is a string or List<String>,
+ // and copy to JavaScript array if necessary.
if (_transaction_fn != null) {
return _transaction_fn(this, storeName_OR_storeNames, mode);
@@ -15584,7 +15566,7 @@
final String name;
- final List<String> objectStoreNames;
+ final _DOMStringListImpl objectStoreNames;
final Dynamic version;
@@ -16051,7 +16033,7 @@
final bool autoIncrement;
- final List<String> indexNames;
+ final _DOMStringListImpl indexNames;
final Dynamic keyPath;
@@ -17930,7 +17912,7 @@
class _LocalLocationImpl implements LocalLocation native "*Location" {
- final List<String> ancestorOrigins;
+ final _DOMStringListImpl ancestorOrigins;
String hash;
« no previous file with comments | « no previous file | lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698