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

Side by Side Diff: lib/web_ui.dart

Issue 16677004: Fixes in WebComponent to match the latest dart:html in 0.5.14.3 (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years, 6 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
« no previous file with comments | « no previous file | pubspec.yaml » ('j') | 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) 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 /** 5 /**
6 * This library exports all of the commonly used functions and types for 6 * This library exports all of the commonly used functions and types for
7 * building UI's. It is equivalent to the following imports: 7 * building UI's. It is equivalent to the following imports:
8 * 8 *
9 * import 'package:web_ui/observe.dart'; 9 * import 'package:web_ui/observe.dart';
10 * import 'package:web_ui/safe_html.dart'; 10 * import 'package:web_ui/safe_html.dart';
(...skipping 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 Node get parentNode => host.parentNode; 396 Node get parentNode => host.parentNode;
397 397
398 String get nodeValue => host.nodeValue; 398 String get nodeValue => host.nodeValue;
399 399
400 @deprecated 400 @deprecated
401 // TODO(sigmund): restore the old return type and call host.on when 401 // TODO(sigmund): restore the old return type and call host.on when
402 // dartbug.com/8131 is fixed. 402 // dartbug.com/8131 is fixed.
403 dynamic get on { throw new UnsupportedError('on is deprecated'); } 403 dynamic get on { throw new UnsupportedError('on is deprecated'); }
404 404
405 String get contentEditable => host.contentEditable; 405 String get contentEditable => host.contentEditable;
406 set contentEditable(String v) { host.contentEditable = v; }
406 407
407 String get dir => host.dir; 408 String get dir => host.dir;
409 set dir(String v) { host.dir = v; }
408 410
409 bool get draggable => host.draggable; 411 bool get draggable => host.draggable;
412 set draggable(bool v) { host.draggable = v; }
410 413
411 bool get hidden => host.hidden; 414 bool get hidden => host.hidden;
415 set hidden(bool v) { host.hidden = v; }
412 416
413 String get id => host.id; 417 String get id => host.id;
418 set id(String v) { host.id = v; }
414 419
415 String get innerHTML => host.innerHtml; 420 String get innerHTML => host.innerHtml;
416 421
417 void set innerHTML(String v) { 422 void set innerHTML(String v) {
418 host.innerHtml = v; 423 host.innerHtml = v;
419 } 424 }
420 425
421 String get innerHtml => host.innerHtml; 426 String get innerHtml => host.innerHtml;
422 void set innerHtml(String v) { 427 void set innerHtml(String v) {
423 host.innerHtml = v; 428 host.innerHtml = v;
424 } 429 }
425 430
426 bool get isContentEditable => host.isContentEditable; 431 bool get isContentEditable => host.isContentEditable;
427 432
428 String get lang => host.lang; 433 String get lang => host.lang;
434 set lang(String v) { host.lang = v; }
429 435
430 String get outerHtml => host.outerHtml; 436 String get outerHtml => host.outerHtml;
431 437
432 bool get spellcheck => host.spellcheck; 438 bool get spellcheck => host.spellcheck;
439 set spellcheck(bool v) { host.spellcheck = v; }
433 440
434 int get tabIndex => host.tabIndex; 441 int get tabIndex => host.tabIndex;
442 set tabIndex(int i) { host.tabIndex = i; }
435 443
436 String get title => host.title; 444 String get title => host.title;
437 445
438 set title(String value) { host.title = value; } 446 set title(String value) { host.title = value; }
439 447
440 bool get translate => host.translate; 448 bool get translate => host.translate;
449 set translate(bool v) { host.translate = v; }
441 450
442 String get dropzone => host.dropzone; 451 String get dropzone => host.dropzone;
452 set dropzone(String v) { host.dropzone = v; }
443 453
444 void click() { host.click(); } 454 void click() { host.click(); }
445 455
456 InputMethodContext getInputContext() => host.getInputContext();
457
446 Element insertAdjacentElement(String where, Element element) => 458 Element insertAdjacentElement(String where, Element element) =>
447 host.insertAdjacentElement(where, element); 459 host.insertAdjacentElement(where, element);
448 460
449 void insertAdjacentHtml(String where, String html) { 461 void insertAdjacentHtml(String where, String html) {
450 host.insertAdjacentHtml(where, html); 462 host.insertAdjacentHtml(where, html);
451 } 463 }
452 464
453 void insertAdjacentText(String where, String text) { 465 void insertAdjacentText(String where, String text) {
454 host.insertAdjacentText(where, text); 466 host.insertAdjacentText(where, text);
455 } 467 }
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
603 615
604 get $dom_attributes => host.$dom_attributes; 616 get $dom_attributes => host.$dom_attributes;
605 617
606 List<Node> get $dom_childNodes => host.$dom_childNodes; 618 List<Node> get $dom_childNodes => host.$dom_childNodes;
607 619
608 Node get $dom_firstChild => host.$dom_firstChild; 620 Node get $dom_firstChild => host.$dom_firstChild;
609 621
610 Node get $dom_lastChild => host.$dom_lastChild; 622 Node get $dom_lastChild => host.$dom_lastChild;
611 623
612 String get localName => host.localName; 624 String get localName => host.localName;
625 String get $dom_localName => host.$dom_localName;
613 626
627 String get namespaceUri => host.namespaceUri;
614 String get $dom_namespaceUri => host.$dom_namespaceUri; 628 String get $dom_namespaceUri => host.$dom_namespaceUri;
615 629
616 int get nodeType => host.nodeType; 630 int get nodeType => host.nodeType;
617 631
618 void $dom_addEventListener(String type, EventListener listener, 632 void $dom_addEventListener(String type, EventListener listener,
619 [bool useCapture]) { 633 [bool useCapture]) {
620 host.$dom_addEventListener(type, listener, useCapture); 634 host.$dom_addEventListener(type, listener, useCapture);
621 } 635 }
622 636
623 bool dispatchEvent(Event event) => host.dispatchEvent(event); 637 bool dispatchEvent(Event event) => host.dispatchEvent(event);
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 } 760 }
747 761
748 /** 762 /**
749 * Set this to true to use native Shadow DOM if it is supported. 763 * Set this to true to use native Shadow DOM if it is supported.
750 * Note that this will change behavior of [WebComponent] APIs for tree 764 * Note that this will change behavior of [WebComponent] APIs for tree
751 * traversal. 765 * traversal.
752 */ 766 */
753 bool useShadowDom = false; 767 bool useShadowDom = false;
754 768
755 bool get _realShadowRoot => useShadowDom && ShadowRoot.supported; 769 bool get _realShadowRoot => useShadowDom && ShadowRoot.supported;
OLDNEW
« no previous file with comments | « no previous file | pubspec.yaml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698