OLD | NEW |
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 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
6 | 6 |
7 class _CSSStyleDeclarationWrappingImplementation extends DOMWrapperBase implemen
ts CSSStyleDeclaration { | 7 class _CSSStyleDeclarationWrappingImplementation extends DOMWrapperBase implemen
ts CSSStyleDeclaration { |
8 _CSSStyleDeclarationWrappingImplementation() : super() {} | 8 _CSSStyleDeclarationWrappingImplementation() : super() {} |
9 | 9 |
10 static create__CSSStyleDeclarationWrappingImplementation() native { | 10 static create__CSSStyleDeclarationWrappingImplementation() native { |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 return _item(this, index); | 52 return _item(this, index); |
53 } | 53 } |
54 static String _item(receiver, index) native; | 54 static String _item(receiver, index) native; |
55 | 55 |
56 String removeProperty(String propertyName) { | 56 String removeProperty(String propertyName) { |
57 return _removeProperty(this, propertyName); | 57 return _removeProperty(this, propertyName); |
58 } | 58 } |
59 static String _removeProperty(receiver, propertyName) native; | 59 static String _removeProperty(receiver, propertyName) native; |
60 | 60 |
61 void setProperty(String propertyName, String value, [String priority = null])
{ | 61 void setProperty(String propertyName, String value, [String priority = null])
{ |
62 if (priority === null) { | 62 _setProperty(this, propertyName, value, priority); |
63 _setProperty(this, propertyName, value); | 63 return; |
64 return; | |
65 } else { | |
66 _setProperty_2(this, propertyName, value, priority); | |
67 return; | |
68 } | |
69 } | 64 } |
70 static void _setProperty(receiver, propertyName, value) native; | 65 static void _setProperty(receiver, propertyName, value, priority) native; |
71 static void _setProperty_2(receiver, propertyName, value, priority) native; | |
72 | 66 |
73 String get typeName() { return "CSSStyleDeclaration"; } | 67 String get typeName() { return "CSSStyleDeclaration"; } |
74 } | 68 } |
OLD | NEW |