| 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 _HTMLSelectElementWrappingImplementation extends _HTMLElementWrappingImple
mentation implements HTMLSelectElement { | 7 class _HTMLSelectElementWrappingImplementation extends _HTMLElementWrappingImple
mentation implements HTMLSelectElement { |
| 8 _HTMLSelectElementWrappingImplementation() : super() {} | 8 _HTMLSelectElementWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__HTMLSelectElementWrappingImplementation() native { | 10 static create__HTMLSelectElementWrappingImplementation() native { |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 Node item(int index) { | 100 Node item(int index) { |
| 101 return _item(this, index); | 101 return _item(this, index); |
| 102 } | 102 } |
| 103 static Node _item(receiver, index) native; | 103 static Node _item(receiver, index) native; |
| 104 | 104 |
| 105 Node namedItem(String name) { | 105 Node namedItem(String name) { |
| 106 return _namedItem(this, name); | 106 return _namedItem(this, name); |
| 107 } | 107 } |
| 108 static Node _namedItem(receiver, name) native; | 108 static Node _namedItem(receiver, name) native; |
| 109 | 109 |
| 110 void remove() { | 110 void remove(var index_OR_option) { |
| 111 _remove(this); | 111 if (index_OR_option is int) { |
| 112 return; | 112 _remove(this, index_OR_option); |
| 113 return; |
| 114 } else { |
| 115 if (index_OR_option is HTMLOptionElement) { |
| 116 _remove_2(this, index_OR_option); |
| 117 return; |
| 118 } |
| 119 } |
| 120 throw "Incorrect number or type of arguments"; |
| 113 } | 121 } |
| 114 static void _remove(receiver) native; | 122 static void _remove(receiver, index_OR_option) native; |
| 123 static void _remove_2(receiver, index_OR_option) native; |
| 115 | 124 |
| 116 void setCustomValidity(String error) { | 125 void setCustomValidity(String error) { |
| 117 _setCustomValidity(this, error); | 126 _setCustomValidity(this, error); |
| 118 return; | 127 return; |
| 119 } | 128 } |
| 120 static void _setCustomValidity(receiver, error) native; | 129 static void _setCustomValidity(receiver, error) native; |
| 121 | 130 |
| 122 String get typeName() { return "HTMLSelectElement"; } | 131 String get typeName() { return "HTMLSelectElement"; } |
| 123 } | 132 } |
| OLD | NEW |