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

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

Issue 11856014: 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: 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
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tests/html/fileapi_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1951b7c419a3d30da65aacfd46adb5faa25c6b25..e8b394ed442ce42a5cca9b959749cccd72b6f16c 100644
--- a/sdk/lib/html/dartium/html_dartium.dart
+++ b/sdk/lib/html/dartium/html_dartium.dart
@@ -10737,6 +10737,11 @@ 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";
@@ -26029,11 +26034,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";
}
@@ -26390,19 +26399,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";
}
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | tests/html/fileapi_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698