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

Unified Diff: client/html/src/Element.dart

Issue 9315061: Specify the types for Element.classes, Element.elements and Node.nodes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixed place where Collection<E> was treated as List<E> Created 8 years, 11 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
Index: client/html/src/Element.dart
diff --git a/client/html/src/Element.dart b/client/html/src/Element.dart
index 2a583f193a0a0baab271229bcddd6c9f1ba632ef..27145c8430134326cd4d678318bbf48846a65618 100644
--- a/client/html/src/Element.dart
+++ b/client/html/src/Element.dart
@@ -1,4 +1,4 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// 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.
@@ -88,13 +88,11 @@ interface Element extends Node /*, common.NodeSelector, common.ElementTraversal
ElementList get elements();
- // TODO: The type of value should be Collection<Element>. See http://b/5392897
- void set elements(value);
+ void set elements(Collection<Element> value);
Set<String> get classes();
- // TODO: The type of value should be Collection<String>. See http://b/5392897
- void set classes(value);
+ void set classes(Collection<String> value);
Map<String, String> get dataAttributes();
void set dataAttributes(Map<String, String> value);

Powered by Google App Engine
This is Rietveld 408576698