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

Side by Side Diff: client/dom/generated/src/frog/StyleSheetList.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 _StyleSheetListJs extends _DOMTypeJs implements StyleSheetList native "*St yleSheetList" { 2 class _StyleSheetListJs extends _DOMTypeJs implements StyleSheetList native "*St yleSheetList" {
3 3
4 int get length() native "return this.length;"; 4 final int length;
5 5
6 _StyleSheetJs operator[](int index) native "return this[index];"; 6 _StyleSheetJs operator[](int index) native "return this[index];";
7 7
8 void operator[]=(int index, _StyleSheetJs value) { 8 void operator[]=(int index, _StyleSheetJs value) {
9 throw new UnsupportedOperationException("Cannot assign element of immutable List."); 9 throw new UnsupportedOperationException("Cannot assign element of immutable List.");
10 } 10 }
11 // -- start List<StyleSheet> mixins. 11 // -- start List<StyleSheet> mixins.
12 // StyleSheet is the element type. 12 // StyleSheet is the element type.
13 13
14 // From Iterable<StyleSheet>: 14 // From Iterable<StyleSheet>:
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 void insertRange(int start, int length, [StyleSheet initialValue]) { 71 void insertRange(int start, int length, [StyleSheet initialValue]) {
72 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t."); 72 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
73 } 73 }
74 List<StyleSheet> getRange(int start, int length) => 74 List<StyleSheet> getRange(int start, int length) =>
75 _Lists.getRange(this, start, length, <StyleSheet>[]); 75 _Lists.getRange(this, start, length, <StyleSheet>[]);
76 76
77 // -- end List<StyleSheet> mixins. 77 // -- end List<StyleSheet> mixins.
78 78
79 _StyleSheetJs item(int index) native; 79 _StyleSheetJs item(int index) native;
80 } 80 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698