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

Side by Side Diff: client/html/generated/src/wrapping/_MediaListWrappingImplementation.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 MediaListWrappingImplementation extends DOMWrapperBase implements MediaLis t {
8 MediaListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
9
10 int get length() { return _ptr.length; }
11
12 String get mediaText() { return _ptr.mediaText; }
13
14 void set mediaText(String value) { _ptr.mediaText = value; }
15
16 String operator[](int index) {
17 return _ptr[index];
18 }
19
20 void operator[]=(int index, String value) {
21 _ptr[index] = value;
22 }
23
24 void add(String value) {
25 throw new UnsupportedOperationException("Cannot add to immutable List.");
26 }
27
28 void addLast(String value) {
29 throw new UnsupportedOperationException("Cannot add to immutable List.");
30 }
31
32 void addAll(Collection<String> collection) {
33 throw new UnsupportedOperationException("Cannot add to immutable List.");
34 }
35
36 void sort(int compare(String a, String b)) {
37 throw new UnsupportedOperationException("Cannot sort immutable List.");
38 }
39
40 void copyFrom(List<Object> src, int srcStart, int dstStart, int count) {
41 throw new UnsupportedOperationException("This object is immutable.");
42 }
43
44 int indexOf(String element, [int start = 0]) {
45 return Lists.indexOf(this, element, start, this.length);
46 }
47
48 int lastIndexOf(String element, [int start = null]) {
49 if (start === null) start = length - 1;
50 return Lists.lastIndexOf(this, element, start);
51 }
52
53 int clear() {
54 throw new UnsupportedOperationException("Cannot clear immutable List.");
55 }
56
57 String removeLast() {
58 throw new UnsupportedOperationException("Cannot removeLast on immutable List .");
59 }
60
61 String last() {
62 return this[length - 1];
63 }
64
65 void forEach(void f(String element)) {
66 _Collections.forEach(this, f);
67 }
68
69 Collection map(f(String element)) {
70 return _Collections.map(this, [], f);
71 }
72
73 Collection<String> filter(bool f(String element)) {
74 return _Collections.filter(this, new List<String>(), f);
75 }
76
77 bool every(bool f(String element)) {
78 return _Collections.every(this, f);
79 }
80
81 bool some(bool f(String element)) {
82 return _Collections.some(this, f);
83 }
84
85 void setRange(int start, int length, List<String> from, [int startFrom]) {
86 throw new UnsupportedOperationException("Cannot setRange on immutable List." );
87 }
88
89 void removeRange(int start, int length) {
90 throw new UnsupportedOperationException("Cannot removeRange on immutable Lis t.");
91 }
92
93 void insertRange(int start, int length, [String initialValue]) {
94 throw new UnsupportedOperationException("Cannot insertRange on immutable Lis t.");
95 }
96
97 List<String> getRange(int start, int length) {
98 throw new NotImplementedException();
99 }
100
101 bool isEmpty() {
102 return length == 0;
103 }
104
105 Iterator<String> iterator() {
106 return new _FixedSizeListIterator<String>(this);
107 }
108
109 void appendMedium(String newMedium) {
110 _ptr.appendMedium(newMedium);
111 return;
112 }
113
114 void deleteMedium(String oldMedium) {
115 _ptr.deleteMedium(oldMedium);
116 return;
117 }
118
119 String item(int index) {
120 return _ptr.item(index);
121 }
122 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698