| 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 TouchListWrappingImplementation extends DOMWrapperBase implements TouchLis
t { | 7 class TouchListWrappingImplementation extends DOMWrapperBase implements TouchLis
t { |
| 8 TouchListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | 8 TouchListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} |
| 9 | 9 |
| 10 int get length() { return _ptr.length; } | 10 int get length() { return _ptr.length; } |
| 11 | 11 |
| 12 Touch operator[](int index) { | 12 Touch operator[](int index) { |
| 13 return item(index); | 13 return LevelDom.wrapTouch(_ptr[index]); |
| 14 } | 14 } |
| 15 | 15 |
| 16 void operator[]=(int index, Touch value) { | 16 void operator[]=(int index, Touch value) { |
| 17 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | 17 _ptr[index] = LevelDom.unwrap(value); |
| 18 } | 18 } |
| 19 | 19 |
| 20 void add(Touch value) { | 20 void add(Touch value) { |
| 21 throw new UnsupportedOperationException("Cannot add to immutable List."); | 21 throw new UnsupportedOperationException("Cannot add to immutable List."); |
| 22 } | 22 } |
| 23 | 23 |
| 24 void addLast(Touch value) { | 24 void addLast(Touch value) { |
| 25 throw new UnsupportedOperationException("Cannot add to immutable List."); | 25 throw new UnsupportedOperationException("Cannot add to immutable List."); |
| 26 } | 26 } |
| 27 | 27 |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 } | 95 } |
| 96 | 96 |
| 97 Iterator<Touch> iterator() { | 97 Iterator<Touch> iterator() { |
| 98 return new _FixedSizeListIterator<Touch>(this); | 98 return new _FixedSizeListIterator<Touch>(this); |
| 99 } | 99 } |
| 100 | 100 |
| 101 Touch item(int index) { | 101 Touch item(int index) { |
| 102 return LevelDom.wrapTouch(_ptr.item(index)); | 102 return LevelDom.wrapTouch(_ptr.item(index)); |
| 103 } | 103 } |
| 104 } | 104 } |
| OLD | NEW |