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

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

Issue 443883002: Change void typed setters in html_dart2js not to return a value. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Change templates and regenerate files. Created 6 years, 4 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)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS { 7 $(ANNOTATIONS)$(NATIVESPEC)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS {
8 $!MEMBERS 8 $!MEMBERS
9 9
10 /** 10 /**
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 num get lineDashOffset => JS('num', 263 num get lineDashOffset => JS('num',
264 '#.lineDashOffset || #.webkitLineDashOffset', this, this); 264 '#.lineDashOffset || #.webkitLineDashOffset', this, this);
265 265
266 @SupportedBrowser(SupportedBrowser.CHROME) 266 @SupportedBrowser(SupportedBrowser.CHROME)
267 @SupportedBrowser(SupportedBrowser.SAFARI) 267 @SupportedBrowser(SupportedBrowser.SAFARI)
268 @SupportedBrowser(SupportedBrowser.IE, '11') 268 @SupportedBrowser(SupportedBrowser.IE, '11')
269 @Unstable() 269 @Unstable()
270 @DomName('CanvasRenderingContext2D.lineDashOffset') 270 @DomName('CanvasRenderingContext2D.lineDashOffset')
271 // TODO(14316): Firefox has this functionality with mozDashOffset, but it 271 // TODO(14316): Firefox has this functionality with mozDashOffset, but it
272 // needs to be polyfilled. 272 // needs to be polyfilled.
273 void set lineDashOffset(num value) => JS('void', 273 void set lineDashOffset(num value) {
274 'typeof #.lineDashOffset != "undefined" ? #.lineDashOffset = # : ' 274 JS('void',
275 '#.webkitLineDashOffset = #', this, this, value, this, value); 275 'typeof #.lineDashOffset != "undefined" ? #.lineDashOffset = # : '
276 '#.webkitLineDashOffset = #', this, this, value, this, value);
277 }
276 $else 278 $else
277 // TODO(amouravski): Add Dartium native methods for drawImage once we figure 279 // TODO(amouravski): Add Dartium native methods for drawImage once we figure
278 // out how to not break native bindings. 280 // out how to not break native bindings.
279 $endif 281 $endif
280 282
281 @SupportedBrowser(SupportedBrowser.CHROME) 283 @SupportedBrowser(SupportedBrowser.CHROME)
282 @SupportedBrowser(SupportedBrowser.SAFARI) 284 @SupportedBrowser(SupportedBrowser.SAFARI)
283 @SupportedBrowser(SupportedBrowser.IE, '11') 285 @SupportedBrowser(SupportedBrowser.IE, '11')
284 @Unstable() 286 @Unstable()
285 @DomName('CanvasRenderingContext2D.getLineDash') 287 @DomName('CanvasRenderingContext2D.getLineDash')
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 JS('void', '#.fill(#)', this, winding); 350 JS('void', '#.fill(#)', this, winding);
349 } 351 }
350 $endif 352 $endif
351 353
352 /** Deprecated always returns 1.0 */ 354 /** Deprecated always returns 1.0 */
353 @DomName('CanvasRenderingContext2D.webkitBackingStorePixelRation') 355 @DomName('CanvasRenderingContext2D.webkitBackingStorePixelRation')
354 @Experimental() 356 @Experimental()
355 @deprecated 357 @deprecated
356 double get backingStorePixelRatio => 1.0; 358 double get backingStorePixelRatio => 1.0;
357 } 359 }
OLDNEW
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tools/dom/templates/html/impl/impl_Element.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698