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

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

Issue 409053002: Use @Native annotation on dart2js DOM native classes (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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 | Annotate | Revision Log
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 part of $LIBRARYNAME; 5 part of $LIBRARYNAME;
6 6
7 $(ANNOTATIONS)$(CLASS_MODIFIERS) class $CLASSNAME $EXTENDS with 7 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS) class $CLASSNAME $EXTENDS with
8 $(CLASSNAME)Base $IMPLEMENTS$NATIVESPEC { 8 $(CLASSNAME)Base $IMPLEMENTS {
9 factory $CLASSNAME() => new CssStyleDeclaration.css(''); 9 factory $CLASSNAME() => new CssStyleDeclaration.css('');
10 10
11 factory $CLASSNAME.css(String css) { 11 factory $CLASSNAME.css(String css) {
12 final style = new Element.tag('div').style; 12 final style = new Element.tag('div').style;
13 style.cssText = css; 13 style.cssText = css;
14 return style; 14 return style;
15 } 15 }
16 16
17 String getPropertyValue(String propertyName) { 17 String getPropertyValue(String propertyName) {
18 var propValue = _getPropertyValue(propertyName); 18 var propValue = _getPropertyValue(propertyName);
(...skipping 3234 matching lines...) Expand 10 before | Expand all | Expand 10 after
3253 3253
3254 /** Gets the value of "zoom" */ 3254 /** Gets the value of "zoom" */
3255 String get zoom => 3255 String get zoom =>
3256 getPropertyValue('zoom'); 3256 getPropertyValue('zoom');
3257 3257
3258 /** Sets the value of "zoom" */ 3258 /** Sets the value of "zoom" */
3259 void set zoom(String value) { 3259 void set zoom(String value) {
3260 setProperty('zoom', value, ''); 3260 setProperty('zoom', value, '');
3261 } 3261 }
3262 } 3262 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698