Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(801)

Side by Side Diff: client/html/generated/src/wrapping/_CanvasPixelArrayWrappingImplementation.dart

Issue 9537001: Generate dart:html bindings for Dartium as well as Frog. All unittests now pass (or are disabled fo… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4
5 // WARNING: Do not edit - generated code.
6
7 class CanvasPixelArrayWrappingImplementation extends DOMWrapperBase implements C anvasPixelArray {
8 CanvasPixelArrayWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
9
10 int get length() { return _ptr.length; }
11
12 int operator[](int index) {
13 return _ptr[index];
14 }
15
16 void operator[]=(int index, int value) {
17 _ptr[index] = value;
18 }
19
20 void add(int value) {
21 throw new UnsupportedOperationException("Cannot add to immutable List.");
22 }
23
24 void addLast(int value) {
25 throw new UnsupportedOperationException("Cannot add to immutable List.");
26 }
27
28 void addAll(Collection<int> collection) {
29 throw new UnsupportedOperationException("Cannot add to immutable List.");
30 }
31
32 void sort(int compare(int a, int b)) {
33 throw new UnsupportedOperationException("Cannot sort immutable List.");
34 }
35
36 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) {
37 throw new UnsupportedOperationException("This object is immutable.");
38 }
39
40 int indexOf(int element, [int start = 0]) {
41 return Lists.indexOf(this, element, start, this.length);
42 }
43
44 int lastIndexOf(int element, [int start = null]) {
45 if (start === null) start = length - 1;
46 return Lists.lastIndexOf(this, element, start);
47 }
48
49 int clear() {
50 throw new UnsupportedOperationException("Cannot clear immutable List.");
51 }
52
53 int removeLast() {
54 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
55 }
56
57 int last() {
58 return this[length - 1];
59 }
60
61 void forEach(void f(int element)) {
62 _Collections.forEach(this, f);
63 }
64
65 Collection map(f(int element)) {
66 return _Collections.map(this, [], f);
67 }
68
69 Collection<int> filter(bool f(int element)) {
70 return _Collections.filter(this, new List<int>(), f);
71 }
72
73 bool every(bool f(int element)) {
74 return _Collections.every(this, f);
75 }
76
77 bool some(bool f(int element)) {
78 return _Collections.some(this, f);
79 }
80
81 void setRange(int start, int length, List<int> from, [int startFrom]) {
82 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
83 }
84
85 void removeRange(int start, int length) {
86 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
87 }
88
89 void insertRange(int start, int length, [int initialValue]) {
90 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
91 }
92
93 List<int> getRange(int start, int length) {
94 throw new NotImplementedException();
95 }
96
97 bool isEmpty() {
98 return length == 0;
99 }
100
101 Iterator<int> iterator() {
102 return new _FixedSizeListIterator<int>(this);
103 }
104 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698