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

Side by Side Diff: dart/tools/dom/src/shared_html.dart

Issue 66253002: Version 0.8.10.9 (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 7 years, 1 month 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 dart.dom.html; 5 part of dart.dom.html;
6 6
7 _wrapZone(callback) { 7 _wrapZone(callback) {
8 // For performance reasons avoid wrapping if we are in the root zone. 8 // For performance reasons avoid wrapping if we are in the root zone.
9 if (Zone.current == Zone.ROOT) return callback; 9 if (Zone.current == Zone.ROOT) return callback;
10 return Zone.current.bindUnaryCallback(callback, runGuarded: true); 10 return Zone.current.bindUnaryCallback(callback, runGuarded: true);
(...skipping 12 matching lines...) Expand all
23 @Experimental() 23 @Experimental()
24 Element query(String relativeSelectors) => document.query(relativeSelectors); 24 Element query(String relativeSelectors) => document.query(relativeSelectors);
25 /** 25 /**
26 * Alias for [querySelectorAll]. Note this function is deprecated because its 26 * Alias for [querySelectorAll]. Note this function is deprecated because its
27 * semantics will be changing in the future. 27 * semantics will be changing in the future.
28 */ 28 */
29 @deprecated 29 @deprecated
30 @Experimental() 30 @Experimental()
31 ElementList queryAll(String relativeSelectors) => document.queryAll(relativeSele ctors); 31 ElementList queryAll(String relativeSelectors) => document.queryAll(relativeSele ctors);
32 32
33 Element querySelector(String selector) => document.querySelector(selector); 33 /**
34 ElementList querySelectorAll(String selector) => document.querySelectorAll(selec tor); 34 * Finds the first descendant element of this document that matches the
35 * specified group of selectors.
36 *
37 * Unless your webpage contains multiple documents, the top-level
38 * [querySelector]
39 * method behaves the same as this method, so you should use it instead to
40 * save typing a few characters.
41 *
42 * [selectors] should be a string using CSS selector syntax.
43 *
44 * var element1 = document.querySelector('.className');
45 * var element2 = document.querySelector('#id');
46 *
47 * For details about CSS selector syntax, see the
48 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/).
49 */
50 Element querySelector(String selectors) => document.querySelector(selectors);
51
52 /**
53 * Finds all descendant elements of this document that match the specified
54 * group of selectors.
55 *
56 * Unless your webpage contains multiple documents, the top-level
57 * [querySelectorAll]
58 * method behaves the same as this method, so you should use it instead to
59 * save typing a few characters.
60 *
61 * [selectors] should be a string using CSS selector syntax.
62 *
63 * var items = document.querySelectorAll('.itemClassName');
64 *
65 * For details about CSS selector syntax, see the
66 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/).
67 */
68 ElementList querySelectorAll(String selectors) => document.querySelectorAll(sele ctors);
OLDNEW
« no previous file with comments | « dart/tools/dom/docs/docs.json ('k') | dart/tools/dom/templates/html/impl/impl_Document.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698