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

Side by Side Diff: tools/dom/templates/html/impl/impl_DocumentFragment.darttemplate

Issue 11962049: Revert "Fixing formatting of dart:html's dart2js annotations." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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
OLDNEW
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2011, 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 html; 5 part of html;
6 6
7 Future<CssStyleDeclaration> _emptyStyleFuture() { 7 Future<CssStyleDeclaration> _emptyStyleFuture() {
8 return _createMeasurementFuture(() => new Element.tag('div').style, 8 return _createMeasurementFuture(() => new Element.tag('div').style,
9 new Completer<CssStyleDeclaration>()); 9 new Completer<CssStyleDeclaration>());
10 } 10 }
11 11
12 class _FrozenCssClassSet extends CssClassSet { 12 class _FrozenCssClassSet extends CssClassSet {
13 void writeClasses(Set s) { 13 void writeClasses(Set s) {
14 throw new UnsupportedError( 14 throw new UnsupportedError(
15 'frozen class set cannot be modified'); 15 'frozen class set cannot be modified');
16 } 16 }
17 Set<String> readClasses() => new Set<String>(); 17 Set<String> readClasses() => new Set<String>();
18 18
19 bool get frozen => true; 19 bool get frozen => true;
20 } 20 }
21 21 $ANNOTATIONS
22 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { 22 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC {
23 factory $CLASSNAME() => _$(CLASSNAME)FactoryProvider.createDocumentFragment(); 23 factory $CLASSNAME() => _$(CLASSNAME)FactoryProvider.createDocumentFragment();
24 24
25 factory $CLASSNAME.html(String html) => 25 factory $CLASSNAME.html(String html) =>
26 _$(CLASSNAME)FactoryProvider.createDocumentFragment_html(html); 26 _$(CLASSNAME)FactoryProvider.createDocumentFragment_html(html);
27 27
28 factory $CLASSNAME.svg(String svgContent) => 28 factory $CLASSNAME.svg(String svgContent) =>
29 _$(CLASSNAME)FactoryProvider.createDocumentFragment_svg(svgContent); 29 _$(CLASSNAME)FactoryProvider.createDocumentFragment_svg(svgContent);
30 30
31 @deprecated 31 @deprecated
32 List<Element> get elements => this.children; 32 List<Element> get elements => this.children;
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 "WebKit drop zone can't be set for document fragments."); 262 "WebKit drop zone can't be set for document fragments.");
263 } 263 }
264 264
265 void set webkitRegionOverflow(String value) { 265 void set webkitRegionOverflow(String value) {
266 throw new UnsupportedError( 266 throw new UnsupportedError(
267 "WebKit region overflow can't be set for document fragments."); 267 "WebKit region overflow can't be set for document fragments.");
268 } 268 }
269 269
270 $!MEMBERS 270 $!MEMBERS
271 } 271 }
OLDNEW
« no previous file with comments | « tools/dom/templates/html/impl/impl_Document.darttemplate ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698