| 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 @DocsEditable() | 7 @DocsEditable() |
| 8 $if DART2JS | 8 $if DART2JS |
| 9 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "Wind
ow,DOMWindow" { | 9 $(ANNOTATIONS)$(CLASS_MODIFIERS)class $CLASSNAME$EXTENDS$IMPLEMENTS native "Wind
ow,DOMWindow" { |
| 10 $else | 10 $else |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 * Gets an instance of the Indexed DB factory to being using Indexed DB. | 171 * Gets an instance of the Indexed DB factory to being using Indexed DB. |
| 172 * | 172 * |
| 173 * Use [indexed_db.IdbFactory.supported] to check if Indexed DB is supported o
n the | 173 * Use [indexed_db.IdbFactory.supported] to check if Indexed DB is supported o
n the |
| 174 * current platform. | 174 * current platform. |
| 175 */ | 175 */ |
| 176 @SupportedBrowser(SupportedBrowser.CHROME, '23.0') | 176 @SupportedBrowser(SupportedBrowser.CHROME, '23.0') |
| 177 @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0') | 177 @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0') |
| 178 @SupportedBrowser(SupportedBrowser.IE, '10.0') | 178 @SupportedBrowser(SupportedBrowser.IE, '10.0') |
| 179 @Experimental() | 179 @Experimental() |
| 180 IdbFactory get indexedDB => | 180 IdbFactory get indexedDB => |
| 181 JS('IdbFactory|Null', // If not supported, returns `null`. | 181 JS('IdbFactory|Null', // If not supported, returns null. |
| 182 '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB', | 182 '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB', |
| 183 this, this, this); | 183 this, this, this); |
| 184 | 184 |
| 185 /// The debugging console for this window. | 185 /// The debugging console for this window. |
| 186 @DomName('Window.console') | 186 @DomName('Window.console') |
| 187 Console get console => Console._safeConsole; | 187 Console get console => Console._safeConsole; |
| 188 | 188 |
| 189 $else | 189 $else |
| 190 /** | 190 /** |
| 191 * Called to draw an animation frame and then request the window to repaint | 191 * Called to draw an animation frame and then request the window to repaint |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 313 return controller.stream; | 313 return controller.stream; |
| 314 $else | 314 $else |
| 315 return stream; | 315 return stream; |
| 316 $endif | 316 $endif |
| 317 } | 317 } |
| 318 | 318 |
| 319 String getEventType(EventTarget target) { | 319 String getEventType(EventTarget target) { |
| 320 return _eventType; | 320 return _eventType; |
| 321 } | 321 } |
| 322 } | 322 } |
| OLD | NEW |