| OLD | NEW |
| 1 library html; | 1 library html; |
| 2 | 2 |
| 3 import 'dart:async'; | 3 import 'dart:async'; |
| 4 import 'dart:collection'; | 4 import 'dart:collection'; |
| 5 import 'dart:html_common'; | 5 import 'dart:html_common'; |
| 6 import 'dart:indexed_db'; | 6 import 'dart:indexed_db'; |
| 7 import 'dart:isolate'; | 7 import 'dart:isolate'; |
| 8 import 'dart:json' as json; | 8 import 'dart:json' as json; |
| 9 import 'dart:math'; | 9 import 'dart:math'; |
| 10 import 'dart:svg' as svg; | 10 import 'dart:svg' as svg; |
| (...skipping 9327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9338 String readAsText(Blob blob, [String encoding]) native; | 9338 String readAsText(Blob blob, [String encoding]) native; |
| 9339 } | 9339 } |
| 9340 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9340 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9341 // for details. All rights reserved. Use of this source code is governed by a | 9341 // for details. All rights reserved. Use of this source code is governed by a |
| 9342 // BSD-style license that can be found in the LICENSE file. | 9342 // BSD-style license that can be found in the LICENSE file. |
| 9343 | 9343 |
| 9344 | 9344 |
| 9345 /// @domName DOMFileSystem; @docsEditable true | 9345 /// @domName DOMFileSystem; @docsEditable true |
| 9346 class FileSystem native "*DOMFileSystem" { | 9346 class FileSystem native "*DOMFileSystem" { |
| 9347 | 9347 |
| 9348 /** |
| 9349 * Checks if this type is supported on the current platform |
| 9350 */ |
| 9351 static bool get supported => JS('bool', '!!(window.webkitRequestFileSystem)'); |
| 9352 |
| 9348 /// @domName DOMFileSystem.name; @docsEditable true | 9353 /// @domName DOMFileSystem.name; @docsEditable true |
| 9349 final String name; | 9354 final String name; |
| 9350 | 9355 |
| 9351 /// @domName DOMFileSystem.root; @docsEditable true | 9356 /// @domName DOMFileSystem.root; @docsEditable true |
| 9352 final DirectoryEntry root; | 9357 final DirectoryEntry root; |
| 9353 } | 9358 } |
| 9354 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9359 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9355 // for details. All rights reserved. Use of this source code is governed by a | 9360 // for details. All rights reserved. Use of this source code is governed by a |
| 9356 // BSD-style license that can be found in the LICENSE file. | 9361 // BSD-style license that can be found in the LICENSE file. |
| 9357 | 9362 |
| (...skipping 12352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21710 /// @domName Window.stop; @docsEditable true | 21715 /// @domName Window.stop; @docsEditable true |
| 21711 void stop() native; | 21716 void stop() native; |
| 21712 | 21717 |
| 21713 /// @domName Window.webkitConvertPointFromNodeToPage; @docsEditable true | 21718 /// @domName Window.webkitConvertPointFromNodeToPage; @docsEditable true |
| 21714 Point webkitConvertPointFromNodeToPage(Node node, Point p) native; | 21719 Point webkitConvertPointFromNodeToPage(Node node, Point p) native; |
| 21715 | 21720 |
| 21716 /// @domName Window.webkitConvertPointFromPageToNode; @docsEditable true | 21721 /// @domName Window.webkitConvertPointFromPageToNode; @docsEditable true |
| 21717 Point webkitConvertPointFromPageToNode(Node node, Point p) native; | 21722 Point webkitConvertPointFromPageToNode(Node node, Point p) native; |
| 21718 | 21723 |
| 21719 /// @domName DOMWindow.webkitRequestFileSystem; @docsEditable true | 21724 /// @domName DOMWindow.webkitRequestFileSystem; @docsEditable true |
| 21720 void webkitRequestFileSystem(int type, int size, FileSystemCallback successCal
lback, [ErrorCallback errorCallback]) native; | 21725 @JSName('webkitRequestFileSystem') |
| 21726 @SupportedBrowser(SupportedBrowser.CHROME) @Experimental() |
| 21727 void requestFileSystem(int type, int size, FileSystemCallback successCallback,
[ErrorCallback errorCallback]) native; |
| 21721 | 21728 |
| 21722 /// @domName DOMWindow.webkitResolveLocalFileSystemURL; @docsEditable true | 21729 /// @domName DOMWindow.webkitResolveLocalFileSystemURL; @docsEditable true |
| 21723 @JSName('webkitResolveLocalFileSystemURL') | 21730 @JSName('webkitResolveLocalFileSystemURL') |
| 21724 void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback
, [ErrorCallback errorCallback]) native; | 21731 @SupportedBrowser(SupportedBrowser.CHROME) @Experimental() |
| 21732 void resolveLocalFileSystemUrl(String url, EntryCallback successCallback, [Err
orCallback errorCallback]) native; |
| 21725 | 21733 |
| 21726 } | 21734 } |
| 21727 | 21735 |
| 21728 /// @docsEditable true | 21736 /// @docsEditable true |
| 21729 class WindowEvents extends Events { | 21737 class WindowEvents extends Events { |
| 21730 /// @docsEditable true | 21738 /// @docsEditable true |
| 21731 WindowEvents(EventTarget _ptr) : super(_ptr); | 21739 WindowEvents(EventTarget _ptr) : super(_ptr); |
| 21732 | 21740 |
| 21733 /// @docsEditable true | 21741 /// @docsEditable true |
| 21734 EventListenerList get contentLoaded => this['DOMContentLoaded']; | 21742 EventListenerList get contentLoaded => this['DOMContentLoaded']; |
| (...skipping 319 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 22054 @JSName('removeEventListener') | 22062 @JSName('removeEventListener') |
| 22055 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 22063 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 22056 | 22064 |
| 22057 /// @domName WorkerContext.setInterval; @docsEditable true | 22065 /// @domName WorkerContext.setInterval; @docsEditable true |
| 22058 int setInterval(TimeoutHandler handler, int timeout) native; | 22066 int setInterval(TimeoutHandler handler, int timeout) native; |
| 22059 | 22067 |
| 22060 /// @domName WorkerContext.setTimeout; @docsEditable true | 22068 /// @domName WorkerContext.setTimeout; @docsEditable true |
| 22061 int setTimeout(TimeoutHandler handler, int timeout) native; | 22069 int setTimeout(TimeoutHandler handler, int timeout) native; |
| 22062 | 22070 |
| 22063 /// @domName WorkerContext.webkitRequestFileSystem; @docsEditable true | 22071 /// @domName WorkerContext.webkitRequestFileSystem; @docsEditable true |
| 22064 void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCa
llback, ErrorCallback errorCallback]) native; | 22072 @JSName('webkitRequestFileSystem') |
| 22073 @SupportedBrowser(SupportedBrowser.CHROME) @Experimental() |
| 22074 void requestFileSystem(int type, int size, [FileSystemCallback successCallback
, ErrorCallback errorCallback]) native; |
| 22065 | 22075 |
| 22066 /// @domName WorkerContext.webkitRequestFileSystemSync; @docsEditable true | 22076 /// @domName WorkerContext.webkitRequestFileSystemSync; @docsEditable true |
| 22067 FileSystemSync webkitRequestFileSystemSync(int type, int size) native; | 22077 @JSName('webkitRequestFileSystemSync') |
| 22078 @SupportedBrowser(SupportedBrowser.CHROME) @Experimental() |
| 22079 FileSystemSync requestFileSystemSync(int type, int size) native; |
| 22068 | 22080 |
| 22069 /// @domName WorkerContext.webkitResolveLocalFileSystemSyncURL; @docsEditable
true | 22081 /// @domName WorkerContext.webkitResolveLocalFileSystemSyncURL; @docsEditable
true |
| 22070 @JSName('webkitResolveLocalFileSystemSyncURL') | 22082 @JSName('webkitResolveLocalFileSystemSyncURL') |
| 22071 EntrySync webkitResolveLocalFileSystemSyncUrl(String url) native; | 22083 @SupportedBrowser(SupportedBrowser.CHROME) @Experimental() |
| 22084 EntrySync resolveLocalFileSystemSyncUrl(String url) native; |
| 22072 | 22085 |
| 22073 /// @domName WorkerContext.webkitResolveLocalFileSystemURL; @docsEditable true | 22086 /// @domName WorkerContext.webkitResolveLocalFileSystemURL; @docsEditable true |
| 22074 @JSName('webkitResolveLocalFileSystemURL') | 22087 @JSName('webkitResolveLocalFileSystemURL') |
| 22075 void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback
, [ErrorCallback errorCallback]) native; | 22088 @SupportedBrowser(SupportedBrowser.CHROME) @Experimental() |
| 22089 void resolveLocalFileSystemUrl(String url, EntryCallback successCallback, [Err
orCallback errorCallback]) native; |
| 22076 | 22090 |
| 22077 | 22091 |
| 22078 /** | 22092 /** |
| 22079 * Gets an instance of the Indexed DB factory to being using Indexed DB. | 22093 * Gets an instance of the Indexed DB factory to being using Indexed DB. |
| 22080 * | 22094 * |
| 22081 * Use [IdbFactory.supported] to check if Indexed DB is supported on the | 22095 * Use [IdbFactory.supported] to check if Indexed DB is supported on the |
| 22082 * current platform. | 22096 * current platform. |
| 22083 */ | 22097 */ |
| 22084 @SupportedBrowser(SupportedBrowser.CHROME, '23.0') | 22098 @SupportedBrowser(SupportedBrowser.CHROME, '23.0') |
| 22085 @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0') | 22099 @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0') |
| (...skipping 4905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26991 _position = nextPosition; | 27005 _position = nextPosition; |
| 26992 return true; | 27006 return true; |
| 26993 } | 27007 } |
| 26994 _current = null; | 27008 _current = null; |
| 26995 _position = _array.length; | 27009 _position = _array.length; |
| 26996 return false; | 27010 return false; |
| 26997 } | 27011 } |
| 26998 | 27012 |
| 26999 T get current => _current; | 27013 T get current => _current; |
| 27000 } | 27014 } |
| OLD | NEW |