| OLD | NEW |
| 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 MediaListWrappingImplementation extends DOMWrapperBase implements MediaLis
t { | 7 class MediaListWrappingImplementation extends DOMWrapperBase implements MediaLis
t { |
| 8 MediaListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} | 8 MediaListWrappingImplementation._wrap(ptr) : super._wrap(ptr) {} |
| 9 | 9 |
| 10 int get length() { return _ptr.length; } | 10 int get length() { return _ptr.length; } |
| 11 | 11 |
| 12 String get mediaText() { return _ptr.mediaText; } | 12 String get mediaText() { return _ptr.mediaText; } |
| 13 | 13 |
| 14 void set mediaText(String value) { _ptr.mediaText = value; } | 14 void set mediaText(String value) { _ptr.mediaText = value; } |
| 15 | 15 |
| 16 String operator[](int index) { | 16 String operator[](int index) { |
| 17 return item(index); | 17 return _ptr[index]; |
| 18 } | 18 } |
| 19 | 19 |
| 20 void operator[]=(int index, String value) { | 20 void operator[]=(int index, String value) { |
| 21 throw new UnsupportedOperationException("Cannot assign element of immutable
List."); | 21 _ptr[index] = value; |
| 22 } | 22 } |
| 23 | 23 |
| 24 void add(String value) { | 24 void add(String value) { |
| 25 throw new UnsupportedOperationException("Cannot add to immutable List."); | 25 throw new UnsupportedOperationException("Cannot add to immutable List."); |
| 26 } | 26 } |
| 27 | 27 |
| 28 void addLast(String value) { | 28 void addLast(String value) { |
| 29 throw new UnsupportedOperationException("Cannot add to immutable List."); | 29 throw new UnsupportedOperationException("Cannot add to immutable List."); |
| 30 } | 30 } |
| 31 | 31 |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 | 109 |
| 110 void deleteMedium(String oldMedium) { | 110 void deleteMedium(String oldMedium) { |
| 111 _ptr.deleteMedium(oldMedium); | 111 _ptr.deleteMedium(oldMedium); |
| 112 return; | 112 return; |
| 113 } | 113 } |
| 114 | 114 |
| 115 String item(int index) { | 115 String item(int index) { |
| 116 return _ptr.item(index); | 116 return _ptr.item(index); |
| 117 } | 117 } |
| 118 } | 118 } |
| OLD | NEW |