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

Side by Side Diff: tools/dom/templates/html/impl/impl_Document.darttemplate

Issue 14941002: Aggregate CSS manipulation functions in html lib. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 /** 7 /**
8 * The base class for all documents. 8 * The base class for all documents.
9 * 9 *
10 * Each web page loaded in the browser has its own [Document] object, which is 10 * Each web page loaded in the browser has its own [Document] object, which is
(...skipping 14 matching lines...) Expand all
25 * Unless your webpage contains multiple documents, the top-level queryAll 25 * Unless your webpage contains multiple documents, the top-level queryAll
26 * method behaves the same as this method, so you should use it instead to 26 * method behaves the same as this method, so you should use it instead to
27 * save typing a few characters. 27 * save typing a few characters.
28 * 28 *
29 * [selectors] should be a string using CSS selector syntax. 29 * [selectors] should be a string using CSS selector syntax.
30 * var items = document.queryAll('.itemClassName'); 30 * var items = document.queryAll('.itemClassName');
31 * 31 *
32 * For details about CSS selector syntax, see the 32 * For details about CSS selector syntax, see the
33 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/). 33 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/).
34 */ 34 */
35 List<Element> queryAll(String selectors) { 35 HtmlList<Element> queryAll(String selectors) {
blois 2013/05/03 20:13:37 Can we make this ElementList<>?
36 return new _FrozenElementList._wrap($dom_querySelectorAll(selectors)); 36 return new HtmlList._wrap($dom_querySelectorAll(selectors));
37 } 37 }
38 } 38 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698