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

Side by Side Diff: pkg/polymer/lib/src/instance.dart

Issue 34623011: Fixes needed for the deploy step. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 1 month 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) 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 part of polymer; 5 part of polymer;
6 6
7 /** 7 /**
8 * Use this annotation to publish a field as an attribute. For example: 8 * Use this annotation to publish a field as an attribute. For example:
9 * 9 *
10 * class MyPlaybackElement extends PolymerElement { 10 * class MyPlaybackElement extends PolymerElement {
(...skipping 21 matching lines...) Expand all
32 // src/instance/attributes.js 32 // src/instance/attributes.js
33 // src/instance/base.js 33 // src/instance/base.js
34 // src/instance/events.js 34 // src/instance/events.js
35 // src/instance/mdv.js 35 // src/instance/mdv.js
36 // src/instance/properties.js 36 // src/instance/properties.js
37 // src/instance/utils.js 37 // src/instance/utils.js
38 // 38 //
39 // Not yet ported: 39 // Not yet ported:
40 // src/instance/style.js -- blocked on ShadowCSS.shimPolyfillDirectives 40 // src/instance/style.js -- blocked on ShadowCSS.shimPolyfillDirectives
41 41
42 // Polymer elements are assumed to be observable. Due to langauge limitations,
43 // the [Polymer] mixin doesn't directly include [Observable], but this fields
44 // declares a dependency assumed in the rest of the code below.
45 Stream<List<ChangeRecord>> get changes;
Siggi Cherem (dart-lang) 2013/10/23 00:51:33 this helps get rid of warnings from dart2js
Jennifer Messerly 2013/10/23 00:56:33 nice. suggestion we chatted about: add "implements
Siggi Cherem (dart-lang) 2013/10/23 01:00:24 Done.
42 46
43 // TODO(jmesserly): should this really be public? 47 // TODO(jmesserly): should this really be public?
44 /** Regular expression that matches data-bindings. */ 48 /** Regular expression that matches data-bindings. */
45 static final bindPattern = new RegExp(r'\{\{([^{}]*)}}'); 49 static final bindPattern = new RegExp(r'\{\{([^{}]*)}}');
46 50
47 /** 51 /**
48 * Like [document.register] but for Polymer elements. 52 * Like [document.register] but for Polymer elements.
49 * 53 *
50 * Use the [name] to specify custom elment's tag name, for example: 54 * Use the [name] to specify custom elment's tag name, for example:
51 * "fancy-button" if the tag is used as `<fancy-button>`. 55 * "fancy-button" if the tag is used as `<fancy-button>`.
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 // add local events of interest... 247 // add local events of interest...
244 addInstanceListeners(root, template); 248 addInstanceListeners(root, template);
245 // TODO(jmesserly): port this 249 // TODO(jmesserly): port this
246 // set up pointer gestures 250 // set up pointer gestures
247 // PointerGestures.register(root); 251 // PointerGestures.register(root);
248 } 252 }
249 253
250 /** Locate nodes with id and store references to them in [$] hash. */ 254 /** Locate nodes with id and store references to them in [$] hash. */
251 void marshalNodeReferences(Node root) { 255 void marshalNodeReferences(Node root) {
252 if (root == null) return; 256 if (root == null) return;
253 for (var n in root.queryAll('[id]')) { 257 for (var n in (root as dynamic).queryAll('[id]')) {
Siggi Cherem (dart-lang) 2013/10/23 00:51:33 and this too (query is in Document, Element, and D
254 $[n.id] = n; 258 $[n.id] = n;
255 } 259 }
256 } 260 }
257 261
258 void attributeChanged(String name, String oldValue, String newValue) { 262 void attributeChanged(String name, String oldValue, String newValue) {
259 if (name != 'class' && name != 'style') { 263 if (name != 'class' && name != 'style') {
260 attributeToProperty(name, newValue); 264 attributeToProperty(name, newValue);
261 } 265 }
262 } 266 }
263 267
(...skipping 688 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 /** 956 /**
953 * Base class for PolymerElements deriving from HtmlElement. 957 * Base class for PolymerElements deriving from HtmlElement.
954 * 958 *
955 * See [Polymer]. 959 * See [Polymer].
956 */ 960 */
957 class PolymerElement extends HtmlElement with Polymer, Observable { 961 class PolymerElement extends HtmlElement with Polymer, Observable {
958 PolymerElement.created() : super.created() { 962 PolymerElement.created() : super.created() {
959 polymerCreated(); 963 polymerCreated();
960 } 964 }
961 } 965 }
OLDNEW
« pkg/custom_element/lib/polyfill.dart ('K') | « pkg/custom_element/lib/polyfill.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698