| 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 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 }, 16 /* 16ms ~= 60fps */); | 154 }, 16 /* 16ms ~= 60fps */); |
| 155 }; | 155 }; |
| 156 $this.cancelAnimationFrame = function(id) { clearTimeout(id); } | 156 $this.cancelAnimationFrame = function(id) { clearTimeout(id); } |
| 157 })(#)""", | 157 })(#)""", |
| 158 this); | 158 this); |
| 159 } | 159 } |
| 160 | 160 |
| 161 /** | 161 /** |
| 162 * Gets an instance of the Indexed DB factory to being using Indexed DB. | 162 * Gets an instance of the Indexed DB factory to being using Indexed DB. |
| 163 * | 163 * |
| 164 * Use [IdbFactory.supported] to check if Indexed DB is supported on the | 164 * Use [indexed_db.IdbFactory.supported] to check if Indexed DB is supported o
n the |
| 165 * current platform. | 165 * current platform. |
| 166 */ | 166 */ |
| 167 @SupportedBrowser(SupportedBrowser.CHROME, '23.0') | 167 @SupportedBrowser(SupportedBrowser.CHROME, '23.0') |
| 168 @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0') | 168 @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0') |
| 169 @SupportedBrowser(SupportedBrowser.IE, '10.0') | 169 @SupportedBrowser(SupportedBrowser.IE, '10.0') |
| 170 @Experimental() | 170 @Experimental() |
| 171 IdbFactory get indexedDB => | 171 IdbFactory get indexedDB => |
| 172 JS('IdbFactory|Null', // If not supported, returns `null`. | 172 JS('IdbFactory|Null', // If not supported, returns `null`. |
| 173 '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB', | 173 '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB', |
| 174 this, this, this); | 174 this, this, this); |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 return controller.stream; | 303 return controller.stream; |
| 304 $else | 304 $else |
| 305 return stream; | 305 return stream; |
| 306 $endif | 306 $endif |
| 307 } | 307 } |
| 308 | 308 |
| 309 String getEventType(EventTarget target) { | 309 String getEventType(EventTarget target) { |
| 310 return _eventType; | 310 return _eventType; |
| 311 } | 311 } |
| 312 } | 312 } |
| OLD | NEW |