| OLD | NEW |
| 1 #library('dom'); | 1 #library('dom'); |
| 2 | 2 |
| 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4 // for details. All rights reserved. Use of this source code is governed by a | 4 // for details. All rights reserved. Use of this source code is governed by a |
| 5 // BSD-style license that can be found in the LICENSE file. | 5 // BSD-style license that can be found in the LICENSE file. |
| 6 | 6 |
| 7 // DO NOT EDIT | 7 // DO NOT EDIT |
| 8 // Auto-generated Dart DOM library. | 8 // Auto-generated Dart DOM library. |
| 9 | 9 |
| 10 | 10 |
| (...skipping 9103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9114 void clear() native; | 9114 void clear() native; |
| 9115 | 9115 |
| 9116 String getItem(String key) native; | 9116 String getItem(String key) native; |
| 9117 | 9117 |
| 9118 String key(int index) native; | 9118 String key(int index) native; |
| 9119 | 9119 |
| 9120 void removeItem(String key) native; | 9120 void removeItem(String key) native; |
| 9121 | 9121 |
| 9122 void setItem(String key, String data) native; | 9122 void setItem(String key, String data) native; |
| 9123 | 9123 |
| 9124 var dartObjectLocalStorage; | 9124 var get dartObjectLocalStorage() native """ |
| 9125 |
| 9126 if (this === window.localStorage) |
| 9127 return window._dartLocalStorageLocalStorage; |
| 9128 else if (this === window.sessionStorage) |
| 9129 return window._dartSessionStorageLocalStorage; |
| 9130 else |
| 9131 throw new UnsupportedOperationException('Cannot dartObjectLocalStorage for
unknown Storage object.'); |
| 9132 |
| 9133 """ { |
| 9134 throw new UnsupportedOperationException(''); |
| 9135 } |
| 9136 |
| 9137 void set dartObjectLocalStorage(var value) native """ |
| 9138 |
| 9139 if (this === window.localStorage) |
| 9140 window._dartLocalStorageLocalStorage = value; |
| 9141 else if (this === window.sessionStorage) |
| 9142 window._dartSessionStorageLocalStorage = value; |
| 9143 else |
| 9144 throw new UnsupportedOperationException('Cannot dartObjectLocalStorage for
unknown Storage object.'); |
| 9145 |
| 9146 """ { |
| 9147 throw new UnsupportedOperationException(''); |
| 9148 } |
| 9125 | 9149 |
| 9126 String get typeName() native; | 9150 String get typeName() native; |
| 9127 } | 9151 } |
| 9128 | 9152 |
| 9129 class StorageEvent extends Event native "*StorageEvent" { | 9153 class StorageEvent extends Event native "*StorageEvent" { |
| 9130 | 9154 |
| 9131 String key; | 9155 String key; |
| 9132 | 9156 |
| 9133 String newValue; | 9157 String newValue; |
| 9134 | 9158 |
| (...skipping 2998 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12133 startIndex = a.length - 1; | 12157 startIndex = a.length - 1; |
| 12134 } | 12158 } |
| 12135 for (int i = startIndex; i >= 0; i--) { | 12159 for (int i = startIndex; i >= 0; i--) { |
| 12136 if (a[i] == element) { | 12160 if (a[i] == element) { |
| 12137 return i; | 12161 return i; |
| 12138 } | 12162 } |
| 12139 } | 12163 } |
| 12140 return -1; | 12164 return -1; |
| 12141 } | 12165 } |
| 12142 } | 12166 } |
| OLD | NEW |