| 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 _CanvasPixelArrayWrappingImplementation extends DOMWrapperBase implements
CanvasPixelArray { | 7 class _CanvasPixelArrayWrappingImplementation extends DOMWrapperBase implements
CanvasPixelArray { |
| 8 _CanvasPixelArrayWrappingImplementation() : super() {} | 8 _CanvasPixelArrayWrappingImplementation() : super() {} |
| 9 | 9 |
| 10 static create__CanvasPixelArrayWrappingImplementation() native { | 10 static create__CanvasPixelArrayWrappingImplementation() native { |
| 11 return new _CanvasPixelArrayWrappingImplementation(); | 11 return new _CanvasPixelArrayWrappingImplementation(); |
| 12 } | 12 } |
| 13 | 13 |
| 14 int get length() { return _get_length(this); } | 14 int get length() { return _get_length(this); } |
| 15 static int _get_length(var _this) native; | 15 static int _get_length(var _this) native; |
| 16 | 16 |
| 17 int operator[](int index) { | 17 int operator[](int index) { return _index(this, index); } |
| 18 return item(index); | 18 static int _index(var _this, int index) native; |
| 19 } | |
| 20 | 19 |
| 21 void operator[]=(int index, int value) { | 20 void operator[]=(int index, int value) { |
| 22 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | 21 return _set_index(this, index, value); |
| 23 } | 22 } |
| 23 static _set_index(_this, index, value) native; |
| 24 | 24 |
| 25 void add(int value) { | 25 void add(int value) { |
| 26 throw new UnsupportedOperationException("Cannot add to immutable List."); | 26 throw new UnsupportedOperationException("Cannot add to immutable List."); |
| 27 } | 27 } |
| 28 | 28 |
| 29 void addLast(int value) { | 29 void addLast(int value) { |
| 30 throw new UnsupportedOperationException("Cannot add to immutable List."); | 30 throw new UnsupportedOperationException("Cannot add to immutable List."); |
| 31 } | 31 } |
| 32 | 32 |
| 33 void addAll(Collection<int> collection) { | 33 void addAll(Collection<int> collection) { |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 } | 96 } |
| 97 | 97 |
| 98 bool isEmpty() { | 98 bool isEmpty() { |
| 99 return length == 0; | 99 return length == 0; |
| 100 } | 100 } |
| 101 | 101 |
| 102 Iterator<int> iterator() { | 102 Iterator<int> iterator() { |
| 103 return new _FixedSizeListIterator<int>(this); | 103 return new _FixedSizeListIterator<int>(this); |
| 104 } | 104 } |
| 105 | 105 |
| 106 int item(int index) { | |
| 107 return _item(this, index); | |
| 108 } | |
| 109 static int _item(receiver, index) native; | |
| 110 | |
| 111 String get typeName() { return "CanvasPixelArray"; } | 106 String get typeName() { return "CanvasPixelArray"; } |
| 112 } | 107 } |
| OLD | NEW |