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

Side by Side Diff: client/dom/generated/src/frog/CanvasPixelArray.dart

Issue 9312003: Use fields in hidden native DOM classes instead of getters/setters. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Also fix native Created 8 years, 10 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
1 1
2 class _CanvasPixelArrayJs extends _DOMTypeJs implements CanvasPixelArray native "*CanvasPixelArray" { 2 class _CanvasPixelArrayJs extends _DOMTypeJs implements CanvasPixelArray native "*CanvasPixelArray" {
3 3
4 int get length() native "return this.length;"; 4 final int length;
5 5
6 int operator[](int index) native "return this[index];"; 6 int operator[](int index) native "return this[index];";
7 7
8 void operator[]=(int index, int value) native "this[index] = value"; 8 void operator[]=(int index, int value) native "this[index] = value";
9 // -- start List<int> mixins. 9 // -- start List<int> mixins.
10 // int is the element type. 10 // int is the element type.
11 11
12 // From Iterable<int>: 12 // From Iterable<int>:
13 13
14 Iterator<int> iterator() { 14 Iterator<int> iterator() {
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t."); 67 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
68 } 68 }
69 void insertRange(int start, int length, [int initialValue]) { 69 void insertRange(int start, int length, [int initialValue]) {
70 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 70 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
71 } 71 }
72 List<int> getRange(int start, int length) => 72 List<int> getRange(int start, int length) =>
73 _Lists.getRange(this, start, length, <int>[]); 73 _Lists.getRange(this, start, length, <int>[]);
74 74
75 // -- end List<int> mixins. 75 // -- end List<int> mixins.
76 } 76 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698