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

Side by Side Diff: pkg/custom_element/lib/custom_element.dart

Issue 22261005: Add new method to Custom Element. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 /** 5 /**
6 * Custom Elements let authors define their own elements. Authors associate code 6 * Custom Elements let authors define their own elements. Authors associate code
7 * with custom tag names, and then use those custom tag names as they would any 7 * with custom tag names, and then use those custom tag names as they would any
8 * standard tag. See <www.polymer-project.org/platform/custom-elements.html> 8 * standard tag. See <www.polymer-project.org/platform/custom-elements.html>
9 * for more information. 9 * for more information.
10 */ 10 */
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 void scrollByPages(int pages) { 390 void scrollByPages(int pages) {
391 host.scrollByPages(pages); 391 host.scrollByPages(pages);
392 } 392 }
393 393
394 void scrollIntoView([ScrollAlignment alignment]) { 394 void scrollIntoView([ScrollAlignment alignment]) {
395 host.scrollIntoView(alignment); 395 host.scrollIntoView(alignment);
396 } 396 }
397 397
398 bool matches(String selectors) => host.matches(selectors); 398 bool matches(String selectors) => host.matches(selectors);
399 399
400 bool matchesWithAncestors(String selectors) => host.matches(selectors);
Jennifer Messerly 2013/08/09 20:56:17 => host.matchesWithAncestors(selectors)?
401
400 @deprecated 402 @deprecated
401 void requestFullScreen(int flags) { requestFullscreen(); } 403 void requestFullScreen(int flags) { requestFullscreen(); }
402 404
403 void requestFullscreen() { host.requestFullscreen(); } 405 void requestFullscreen() { host.requestFullscreen(); }
404 406
405 void requestPointerLock() { host.requestPointerLock(); } 407 void requestPointerLock() { host.requestPointerLock(); }
406 408
407 Element query(String selectors) => host.query(selectors); 409 Element query(String selectors) => host.query(selectors);
408 410
409 ElementList queryAll(String selectors) => host.queryAll(selectors); 411 ElementList queryAll(String selectors) => host.queryAll(selectors);
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after
656 for (var removed in record.removedNodes) { 658 for (var removed in record.removedNodes) {
657 if (identical(node, removed)) { 659 if (identical(node, removed)) {
658 observer.disconnect(); 660 observer.disconnect();
659 element.removed(); 661 element.removed();
660 return; 662 return;
661 } 663 }
662 } 664 }
663 } 665 }
664 }).observe(element.parentNode, childList: true); 666 }).observe(element.parentNode, childList: true);
665 } 667 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698