| OLD | NEW |
| 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 String _cachedBrowserPrefix; | 5 String _cachedBrowserPrefix; |
| 6 | 6 |
| 7 String get _browserPrefix() { | 7 String get _browserPrefix() { |
| 8 if (_cachedBrowserPrefix === null) { | 8 if (_cachedBrowserPrefix === null) { |
| 9 if (_Device.isFirefox) { | 9 if (_Device.isFirefox) { |
| 10 _cachedBrowserPrefix = '-moz-'; | 10 _cachedBrowserPrefix = '-moz-'; |
| 11 } else if (_Device.isIE) { |
| 12 _cachedBrowserPrefix = '-ms-'; |
| 13 } else if (_Device.isOpera) { |
| 14 _cachedBrowserPrefix = '-o-'; |
| 11 } else { | 15 } else { |
| 12 _cachedBrowserPrefix = '-webkit-'; | 16 _cachedBrowserPrefix = '-webkit-'; |
| 13 } | 17 } |
| 14 // TODO(jacobr): support IE 9.0 and Opera as well. | |
| 15 } | 18 } |
| 16 return _cachedBrowserPrefix; | 19 return _cachedBrowserPrefix; |
| 17 } | 20 } |
| 18 | 21 |
| 19 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 22 class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| 20 | 23 |
| 21 $!MEMBERS | 24 $!MEMBERS |
| 22 | 25 |
| 23 // TODO(jacobr): generate this list of properties using the existing script. | 26 // TODO(jacobr): generate this list of properties using the existing script. |
| 24 /** Gets the value of "animation" */ | 27 /** Gets the value of "animation" */ |
| (...skipping 2752 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2777 | 2780 |
| 2778 /** Gets the value of "zoom" */ | 2781 /** Gets the value of "zoom" */ |
| 2779 String get zoom() => | 2782 String get zoom() => |
| 2780 getPropertyValue('zoom'); | 2783 getPropertyValue('zoom'); |
| 2781 | 2784 |
| 2782 /** Sets the value of "zoom" */ | 2785 /** Sets the value of "zoom" */ |
| 2783 void set zoom(var value) { | 2786 void set zoom(var value) { |
| 2784 setProperty('zoom', value, ''); | 2787 setProperty('zoom', value, ''); |
| 2785 } | 2788 } |
| 2786 } | 2789 } |
| OLD | NEW |