Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(472)

Unified Diff: sdk/lib/html/dartium/html_dartium.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 11888013: Adding support checks for FileSystem APIs and making APIs not webkit-specific. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixing test. Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
Download patch
Index: sdk/lib/html/dartium/html_dartium.dart
diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
index 85f5683ef36546d80a606f219d69663fbbaf16b0..8754c55e0a1c703c19d92edfcc2cc61de2a432ae 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -11259,6 +11259,9 @@ class FileReaderSync extends NativeFieldWrapperClass1 {
class FileSystem extends NativeFieldWrapperClass1 {
FileSystem.internal();
+ /// Checks if this type is supported on the current platform.
+ static bool get supported => true;
+
/** @domName DOMFileSystem.name */
String get name native "DOMFileSystem_name_Getter";
@@ -27098,11 +27101,15 @@ class Window extends EventTarget implements WindowBase {
/** @domName DOMWindow.webkitRequestFileSystem */
- void webkitRequestFileSystem(int type, int size, FileSystemCallback successCallback, [ErrorCallback errorCallback]) native "DOMWindow_webkitRequestFileSystem_Callback";
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @Experimental()
+ void requestFileSystem(int type, int size, FileSystemCallback successCallback, [ErrorCallback errorCallback]) native "DOMWindow_webkitRequestFileSystem_Callback";
/** @domName DOMWindow.webkitResolveLocalFileSystemURL */
- void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback, [ErrorCallback errorCallback]) native "DOMWindow_webkitResolveLocalFileSystemURL_Callback";
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @Experimental()
+ void resolveLocalFileSystemUrl(String url, EntryCallback successCallback, [ErrorCallback errorCallback]) native "DOMWindow_webkitResolveLocalFileSystemURL_Callback";
Stream<Event> get onContentLoaded => contentLoadedEvent.forTarget(this);
@@ -27613,19 +27620,27 @@ class WorkerContext extends EventTarget {
/** @domName WorkerContext.webkitRequestFileSystem */
- void webkitRequestFileSystem(int type, int size, [FileSystemCallback successCallback, ErrorCallback errorCallback]) native "WorkerContext_webkitRequestFileSystem_Callback";
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @Experimental()
+ void requestFileSystem(int type, int size, [FileSystemCallback successCallback, ErrorCallback errorCallback]) native "WorkerContext_webkitRequestFileSystem_Callback";
/** @domName WorkerContext.webkitRequestFileSystemSync */
- FileSystemSync webkitRequestFileSystemSync(int type, int size) native "WorkerContext_webkitRequestFileSystemSync_Callback";
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @Experimental()
+ FileSystemSync requestFileSystemSync(int type, int size) native "WorkerContext_webkitRequestFileSystemSync_Callback";
/** @domName WorkerContext.webkitResolveLocalFileSystemSyncURL */
- EntrySync webkitResolveLocalFileSystemSyncUrl(String url) native "WorkerContext_webkitResolveLocalFileSystemSyncURL_Callback";
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @Experimental()
+ EntrySync resolveLocalFileSystemSyncUrl(String url) native "WorkerContext_webkitResolveLocalFileSystemSyncURL_Callback";
/** @domName WorkerContext.webkitResolveLocalFileSystemURL */
- void webkitResolveLocalFileSystemUrl(String url, EntryCallback successCallback, [ErrorCallback errorCallback]) native "WorkerContext_webkitResolveLocalFileSystemURL_Callback";
+ @SupportedBrowser(SupportedBrowser.CHROME)
+ @Experimental()
+ void resolveLocalFileSystemUrl(String url, EntryCallback successCallback, [ErrorCallback errorCallback]) native "WorkerContext_webkitResolveLocalFileSystemURL_Callback";
Stream<Event> get onError => errorEvent.forTarget(this);

Powered by Google App Engine
This is Rietveld 408576698