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

Side by Side Diff: client/dom/generated/src/frog/DOMSelection.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 _DOMSelectionJs extends _DOMTypeJs implements DOMSelection native "*DOMSel ection" { 2 class _DOMSelectionJs extends _DOMTypeJs implements DOMSelection native "*DOMSel ection" {
3 3
4 _NodeJs get anchorNode() native "return this.anchorNode;"; 4 final _NodeJs anchorNode;
5 5
6 int get anchorOffset() native "return this.anchorOffset;"; 6 final int anchorOffset;
7 7
8 _NodeJs get baseNode() native "return this.baseNode;"; 8 final _NodeJs baseNode;
9 9
10 int get baseOffset() native "return this.baseOffset;"; 10 final int baseOffset;
11 11
12 _NodeJs get extentNode() native "return this.extentNode;"; 12 final _NodeJs extentNode;
13 13
14 int get extentOffset() native "return this.extentOffset;"; 14 final int extentOffset;
15 15
16 _NodeJs get focusNode() native "return this.focusNode;"; 16 final _NodeJs focusNode;
17 17
18 int get focusOffset() native "return this.focusOffset;"; 18 final int focusOffset;
19 19
20 bool get isCollapsed() native "return this.isCollapsed;"; 20 final bool isCollapsed;
21 21
22 int get rangeCount() native "return this.rangeCount;"; 22 final int rangeCount;
23 23
24 String get type() native "return this.type;"; 24 final String type;
25 25
26 void addRange(_RangeJs range) native; 26 void addRange(_RangeJs range) native;
27 27
28 void collapse(_NodeJs node, int index) native; 28 void collapse(_NodeJs node, int index) native;
29 29
30 void collapseToEnd() native; 30 void collapseToEnd() native;
31 31
32 void collapseToStart() native; 32 void collapseToStart() native;
33 33
34 bool containsNode(_NodeJs node, bool allowPartial) native; 34 bool containsNode(_NodeJs node, bool allowPartial) native;
(...skipping 11 matching lines...) Expand all
46 void removeAllRanges() native; 46 void removeAllRanges() native;
47 47
48 void selectAllChildren(_NodeJs node) native; 48 void selectAllChildren(_NodeJs node) native;
49 49
50 void setBaseAndExtent(_NodeJs baseNode, int baseOffset, _NodeJs extentNode, in t extentOffset) native; 50 void setBaseAndExtent(_NodeJs baseNode, int baseOffset, _NodeJs extentNode, in t extentOffset) native;
51 51
52 void setPosition(_NodeJs node, int offset) native; 52 void setPosition(_NodeJs node, int offset) native;
53 53
54 String toString() native; 54 String toString() native;
55 } 55 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698