| OLD | NEW |
| 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 DOM elements. | 6 * Custom DOM elements. |
| 7 * | 7 * |
| 8 * This library provides access to the Polymer project's | 8 * This library provides access to the Polymer project's |
| 9 * [Custom Elements] | 9 * [Custom Elements] |
| 10 * (http://www.polymer-project.org/platform/custom-elements.html) | 10 * (http://www.polymer-project.org/platform/custom-elements.html) |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 103 void enteredView() {} | 103 void enteredView() {} |
| 104 | 104 |
| 105 /** Invoked when this component is removed from the DOM tree. */ | 105 /** Invoked when this component is removed from the DOM tree. */ |
| 106 void removed() {} | 106 void removed() {} |
| 107 @deprecated | 107 @deprecated |
| 108 void leftView() {} | 108 void leftView() {} |
| 109 | 109 |
| 110 /** Invoked when any attribute of the component is modified. */ | 110 /** Invoked when any attribute of the component is modified. */ |
| 111 void attributeChanged(String name, String oldValue) {} | 111 void attributeChanged(String name, String oldValue) {} |
| 112 | 112 |
| 113 get model => host.model; | |
| 114 | |
| 115 void set model(newModel) { | |
| 116 host.model = newModel; | |
| 117 } | |
| 118 | |
| 119 get templateInstance => host.templateInstance; | |
| 120 get isTemplate => host.isTemplate; | |
| 121 get ref => host.ref; | |
| 122 get content => host.content; | |
| 123 DocumentFragment createInstance(model, [BindingDelegate delegate]) => | |
| 124 host.createInstance(model, delegate); | |
| 125 createBinding(String name, model, String path) => | |
| 126 host.createBinding(name, model, path); | |
| 127 bind(String name, model, String path) => host.bind(name, model, path); | |
| 128 void unbind(String name) => host.unbind(name); | |
| 129 void unbindAll() => host.unbindAll(); | |
| 130 get bindings => host.bindings; | |
| 131 BindingDelegate get bindingDelegate => host.bindingDelegate; | |
| 132 set bindingDelegate(BindingDelegate value) { host.bindingDelegate = value; } | |
| 133 | |
| 134 // TODO(efortuna): Update these when we decide what to do with these | 113 // TODO(efortuna): Update these when we decide what to do with these |
| 135 // properties. | 114 // properties. |
| 136 @deprecated | 115 @deprecated |
| 137 String getAttribute(String name) => | 116 String getAttribute(String name) => |
| 138 host.getAttribute(name); | 117 host.getAttribute(name); |
| 139 | 118 |
| 140 @deprecated | 119 @deprecated |
| 141 String getAttributeNS(String namespaceUri, String localName) => | 120 String getAttributeNS(String namespaceUri, String localName) => |
| 142 host.getAttributeNS(namespaceUri, localName); | 121 host.getAttributeNS(namespaceUri, localName); |
| 143 | 122 |
| (...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 522 Stream<TouchEvent> get onTouchLeave => host.onTouchLeave; | 501 Stream<TouchEvent> get onTouchLeave => host.onTouchLeave; |
| 523 Stream<TouchEvent> get onTouchMove => host.onTouchMove; | 502 Stream<TouchEvent> get onTouchMove => host.onTouchMove; |
| 524 Stream<TouchEvent> get onTouchStart => host.onTouchStart; | 503 Stream<TouchEvent> get onTouchStart => host.onTouchStart; |
| 525 Stream<TransitionEvent> get onTransitionEnd => host.onTransitionEnd; | 504 Stream<TransitionEvent> get onTransitionEnd => host.onTransitionEnd; |
| 526 | 505 |
| 527 // TODO(sigmund): do the normal forwarding when dartbug.com/7919 is fixed. | 506 // TODO(sigmund): do the normal forwarding when dartbug.com/7919 is fixed. |
| 528 Stream<WheelEvent> get onMouseWheel { | 507 Stream<WheelEvent> get onMouseWheel { |
| 529 throw new UnsupportedError('onMouseWheel is not supported'); | 508 throw new UnsupportedError('onMouseWheel is not supported'); |
| 530 } | 509 } |
| 531 } | 510 } |
| OLD | NEW |