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

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

Issue 8835006: New version of dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typos Created 9 years 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 // 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 TouchListWrappingImplementation extends DOMWrapperBase implements TouchLis t { 7 class TouchListWrappingImplementation extends DOMWrapperBase implements TouchLis t {
8 TouchListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} 8 TouchListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
9 9
10 int get length() { return _ptr.length; } 10 int get length() { return _ptr.length; }
11 11
12 Touch operator[](int index) { 12 Touch operator[](int index) {
13 return item(index); 13 return LevelDom.wrapTouch(_ptr[index]);
14 } 14 }
15 15
16 void operator[]=(int index, Touch value) { 16 void operator[]=(int index, Touch value) {
17 throw new UnsupportedOperationException("Cannot assign element of immutable List."); 17 _ptr[index] = LevelDom.unwrap(value);
18 } 18 }
19 19
20 void add(Touch value) { 20 void add(Touch value) {
21 throw new UnsupportedOperationException("Cannot add to immutable List."); 21 throw new UnsupportedOperationException("Cannot add to immutable List.");
22 } 22 }
23 23
24 void addLast(Touch value) { 24 void addLast(Touch value) {
25 throw new UnsupportedOperationException("Cannot add to immutable List."); 25 throw new UnsupportedOperationException("Cannot add to immutable List.");
26 } 26 }
27 27
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 } 95 }
96 96
97 Iterator<Touch> iterator() { 97 Iterator<Touch> iterator() {
98 return new _FixedSizeListIterator<Touch>(this); 98 return new _FixedSizeListIterator<Touch>(this);
99 } 99 }
100 100
101 Touch item(int index) { 101 Touch item(int index) {
102 return LevelDom.wrapTouch(_ptr.item(index)); 102 return LevelDom.wrapTouch(_ptr.item(index));
103 } 103 }
104 } 104 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698