| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 part of $LIBRARYNAME; | 5 part of $LIBRARYNAME; |
| 6 | 6 |
| 7 $if DART2JS | 7 $if DART2JS |
| 8 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "Window,DOMWindow" { | 8 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "Window,DOMWindow" { |
| 9 $else | 9 $else |
| 10 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { | 10 $(ANNOTATIONS)class $CLASSNAME$EXTENDS$IMPLEMENTS$NATIVESPEC { |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 * Gets an instance of the Indexed DB factory to being using Indexed DB. | 193 * Gets an instance of the Indexed DB factory to being using Indexed DB. |
| 194 * | 194 * |
| 195 * Use [IdbFactory.supported] to check if Indexed DB is supported on the | 195 * Use [IdbFactory.supported] to check if Indexed DB is supported on the |
| 196 * current platform. | 196 * current platform. |
| 197 */ | 197 */ |
| 198 @SupportedBrowser(SupportedBrowser.CHROME, '23.0') | 198 @SupportedBrowser(SupportedBrowser.CHROME, '23.0') |
| 199 @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0') | 199 @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0') |
| 200 @SupportedBrowser(SupportedBrowser.IE, '10.0') | 200 @SupportedBrowser(SupportedBrowser.IE, '10.0') |
| 201 @Experimental | 201 @Experimental |
| 202 IdbFactory get indexedDB => | 202 IdbFactory get indexedDB => |
| 203 JS('IdbFactory', | 203 JS('IdbFactory|Null', // If not supported, returns `null`. |
| 204 '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB', | 204 '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB', |
| 205 this, this, this); | 205 this, this, this); |
| 206 | 206 |
| 207 @DomName('Window.console') | 207 @DomName('Window.console') |
| 208 Console get console => Console.safeConsole; | 208 Console get console => Console.safeConsole; |
| 209 | 209 |
| 210 /// Checks if _setImmediate is supported. | 210 /// Checks if _setImmediate is supported. |
| 211 static bool get _supportsSetImmediate => | 211 static bool get _supportsSetImmediate => |
| 212 JS('bool', '!!(window.setImmediate)'); | 212 JS('bool', '!!(window.setImmediate)'); |
| 213 | 213 |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 323 return wrapped.returnValue; | 323 return wrapped.returnValue; |
| 324 }); | 324 }); |
| 325 | 325 |
| 326 return controller.stream; | 326 return controller.stream; |
| 327 } | 327 } |
| 328 | 328 |
| 329 String getEventType(EventTarget target) { | 329 String getEventType(EventTarget target) { |
| 330 return _eventType; | 330 return _eventType; |
| 331 } | 331 } |
| 332 } | 332 } |
| OLD | NEW |