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

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

Issue 26135004: Adding ElementEventStream.capture (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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:
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 class _ChildrenElementList extends ListBase<Element> { 7 class _ChildrenElementList extends ListBase<Element> {
8 // Raw Element. 8 // Raw Element.
9 final Element _element; 9 final Element _element;
10 final HtmlCollection _childElements; 10 final HtmlCollection _childElements;
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
577 * group of selectors. 577 * group of selectors.
578 * 578 *
579 * [selectors] should be a string using CSS selector syntax. 579 * [selectors] should be a string using CSS selector syntax.
580 * 580 *
581 * var items = element.querySelectorAll('.itemClassName'); 581 * var items = element.querySelectorAll('.itemClassName');
582 */ 582 */
583 @DomName('Element.querySelectorAll') 583 @DomName('Element.querySelectorAll')
584 ElementList querySelectorAll(String selectors) => 584 ElementList querySelectorAll(String selectors) =>
585 new _FrozenElementList._wrap(_querySelectorAll(selectors)); 585 new _FrozenElementList._wrap(_querySelectorAll(selectors));
586 586
587 /** 587 /**
588 * Alias for [querySelector]. Note this function is deprecated because its 588 * Alias for [querySelector]. Note this function is deprecated because its
589 * semantics will be changing in the future. 589 * semantics will be changing in the future.
590 */ 590 */
591 @deprecated 591 @deprecated
592 @DomName('Element.querySelector') 592 @DomName('Element.querySelector')
593 @Experimental() 593 @Experimental()
594 Element query(String relativeSelectors) => querySelector(relativeSelectors); 594 Element query(String relativeSelectors) => querySelector(relativeSelectors);
595 595
596 /** 596 /**
597 * Alias for [querySelectorAll]. Note this function is deprecated because its 597 * Alias for [querySelectorAll]. Note this function is deprecated because its
598 * semantics will be changing in the future. 598 * semantics will be changing in the future.
599 */ 599 */
600 @deprecated 600 @deprecated
601 @DomName('Element.querySelectorAll') 601 @DomName('Element.querySelectorAll')
602 @Experimental() 602 @Experimental()
603 ElementList queryAll(String relativeSelectors) => 603 ElementList queryAll(String relativeSelectors) =>
604 querySelectorAll(relativeSelectors); 604 querySelectorAll(relativeSelectors);
605 605
606 /** 606 /**
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1373 1373
1374 /** 1374 /**
1375 * For use while transitioning to the safe [innerHtml] or [setInnerHtml]. 1375 * For use while transitioning to the safe [innerHtml] or [setInnerHtml].
1376 * Unsafe because it opens the app to cross-site scripting vulnerabilities. 1376 * Unsafe because it opens the app to cross-site scripting vulnerabilities.
1377 */ 1377 */
1378 @deprecated 1378 @deprecated
1379 void set unsafeInnerHtml(String html) { 1379 void set unsafeInnerHtml(String html) {
1380 _innerHtml = html; 1380 _innerHtml = html;
1381 } 1381 }
1382 1382
1383 /**
1384 * This is an ease-of-use accessor for event streams which should only be
1385 * used when an explicit accessor is not available.
1386 */
1387 ElementEvents get on => new ElementEvents(this);
1388
1383 $!MEMBERS 1389 $!MEMBERS
1384 } 1390 }
1385 1391
1386 1392
1387 class _ElementFactoryProvider { 1393 class _ElementFactoryProvider {
1388 1394
1389 @DomName('Document.createElement') 1395 @DomName('Document.createElement')
1390 $if DART2JS 1396 $if DART2JS
1391 // Optimization to improve performance until the dart2js compiler inlines this 1397 // Optimization to improve performance until the dart2js compiler inlines this
1392 // method. 1398 // method.
(...skipping 25 matching lines...) Expand all
1418 const ScrollAlignment._internal(this._value); 1424 const ScrollAlignment._internal(this._value);
1419 toString() => 'ScrollAlignment.$_value'; 1425 toString() => 'ScrollAlignment.$_value';
1420 1426
1421 /// Attempt to align the element to the top of the scrollable area. 1427 /// Attempt to align the element to the top of the scrollable area.
1422 static const TOP = const ScrollAlignment._internal('TOP'); 1428 static const TOP = const ScrollAlignment._internal('TOP');
1423 /// Attempt to center the element in the scrollable area. 1429 /// Attempt to center the element in the scrollable area.
1424 static const CENTER = const ScrollAlignment._internal('CENTER'); 1430 static const CENTER = const ScrollAlignment._internal('CENTER');
1425 /// Attempt to align the element to the bottom of the scrollable area. 1431 /// Attempt to align the element to the bottom of the scrollable area.
1426 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); 1432 static const BOTTOM = const ScrollAlignment._internal('BOTTOM');
1427 } 1433 }
OLDNEW
« no previous file with comments | « tools/dom/src/EventStreamProvider.dart ('k') | tools/dom/templates/html/impl/impl_EventTarget.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698