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

Side by Side Diff: lib/web_ui.dart

Issue 18399006: Fixes in webui for sdk 0.6.3 (Closed) Base URL: git@github.com:dart-lang/web-ui.git@master
Patch Set: Created 7 years, 5 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 get model => host.model; 127 get model => host.model;
128 128
129 void set model(newModel) { 129 void set model(newModel) {
130 host.model = newModel; 130 host.model = newModel;
131 } 131 }
132 132
133 get templateInstance => host.templateInstance; 133 get templateInstance => host.templateInstance;
134 get isTemplate => host.isTemplate; 134 get isTemplate => host.isTemplate;
135 get ref => host.ref; 135 get ref => host.ref;
136 get content => host.content; 136 get content => host.content;
137 DocumentFragment createInstance() => host.createInstance(); 137 DocumentFragment createInstance(model, String syntax) =>
138 host.createInstance(model, syntax);
138 void bind(String name, model, String path) => host.bind(name, model, path); 139 void bind(String name, model, String path) => host.bind(name, model, path);
139 void unbind(String name) => host.unbind(name); 140 void unbind(String name) => host.unbind(name);
140 void unbindAll() => host.unbindAll(); 141 void unbindAll() => host.unbindAll();
141 142
142 143
143 /** 144 /**
144 * **Note**: This is an implementation helper and should not need to be called 145 * **Note**: This is an implementation helper and should not need to be called
145 * from your code. 146 * from your code.
146 * 147 *
147 * If [ShadowRoot.supported] or [useShadowDom] is false, this distributes 148 * If [ShadowRoot.supported] or [useShadowDom] is false, this distributes
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 } 759 }
759 760
760 /** 761 /**
761 * Set this to true to use native Shadow DOM if it is supported. 762 * Set this to true to use native Shadow DOM if it is supported.
762 * Note that this will change behavior of [WebComponent] APIs for tree 763 * Note that this will change behavior of [WebComponent] APIs for tree
763 * traversal. 764 * traversal.
764 */ 765 */
765 bool useShadowDom = false; 766 bool useShadowDom = false;
766 767
767 bool get _realShadowRoot => useShadowDom && ShadowRoot.supported; 768 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