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

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

Issue 24168006: Fixing issues from lifecycle events CL (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
« no previous file with comments | « no previous file | tests/html/html.status » ('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) 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 getShadowRoot(String componentName) => _generatedRoots[componentName]; 167 getShadowRoot(String componentName) => _generatedRoots[componentName];
168 168
169 /** 169 /**
170 * Invoked when this component gets created. 170 * Invoked when this component gets created.
171 * Note that [root] will be a [ShadowRoot] if the browser supports Shadow DOM. 171 * Note that [root] will be a [ShadowRoot] if the browser supports Shadow DOM.
172 */ 172 */
173 void created() {} 173 void created() {}
174 174
175 /** Invoked when this component gets inserted in the DOM tree. */ 175 /** Invoked when this component gets inserted in the DOM tree. */
176 void inserted() {} 176 void inserted() {}
177 @deprecated
178 void enteredView() {}
177 179
178 /** Invoked when this component is removed from the DOM tree. */ 180 /** Invoked when this component is removed from the DOM tree. */
179 void removed() {} 181 void removed() {}
182 @deprecated
183 void leftView() {}
180 184
181 // TODO(jmesserly): how do we implement this efficiently? 185 // TODO(jmesserly): how do we implement this efficiently?
182 // See https://github.com/dart-lang/web-ui/issues/37 186 // See https://github.com/dart-lang/web-ui/issues/37
183 /** Invoked when any attribute of the component is modified. */ 187 /** Invoked when any attribute of the component is modified. */
184 void attributeChanged(String name, String oldValue, String newValue) {} 188 void attributeChanged(String name, String oldValue, String newValue) {}
185 189
186 get model => host.model; 190 get model => host.model;
187 191
188 void set model(newModel) { 192 void set model(newModel) {
189 host.model = newModel; 193 host.model = newModel;
(...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 for (var removed in record.removedNodes) { 643 for (var removed in record.removedNodes) {
640 if (identical(node, removed)) { 644 if (identical(node, removed)) {
641 observer.disconnect(); 645 observer.disconnect();
642 element.removed(); 646 element.removed();
643 return; 647 return;
644 } 648 }
645 } 649 }
646 } 650 }
647 }).observe(element.parentNode, childList: true); 651 }).observe(element.parentNode, childList: true);
648 } 652 }
OLDNEW
« no previous file with comments | « no previous file | tests/html/html.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698