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

Unified Diff: tools/dom/scripts/generator.py

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:
View side-by-side diff with in-line comments
Download patch
Index: tools/dom/scripts/generator.py
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py
index d1d8cd9c011774286f00c63927c5c959468dc87d..ad36286c9028bb6613c1e0c623b24247c415f2de 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -628,6 +628,11 @@ _indexed_db_annotations = [
"@Experimental()",
]
+_file_system_annotations = [
+ "@SupportedBrowser(SupportedBrowser.CHROME)",
+ "@Experimental()",
+]
+
_all_but_ie9_annotations = [
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@SupportedBrowser(SupportedBrowser.FIREFOX)",
@@ -652,10 +657,14 @@ dart_annotations = {
'ArrayBufferView': _all_but_ie9_annotations,
'DOMWindow.indexedDB': _indexed_db_annotations,
'DOMWindow.performance': _performance_annotations,
+ 'DOMWindow.webkitRequestFileSystem': _file_system_annotations,
+ 'DOMWindow.webkitResolveLocalFileSystemURL': _file_system_annotations,
'Element.webkitCreateShadowRoot': [
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",
"@Experimental()",
],
+ 'FileSystem': _file_system_annotations,
+ 'FileSystemSync': _file_system_annotations,
'History.pushState': _history_annotations,
'History.replaceState': _history_annotations,
'HTMLContentElement': [
@@ -712,6 +721,10 @@ dart_annotations = {
],
'WebSocket': _all_but_ie9_annotations,
'WorkerContext.indexedDB': _indexed_db_annotations,
+ 'WorkerContext.webkitRequestFileSystem': _file_system_annotations,
+ 'WorkerContext.webkitRequestFileSystemSync': _file_system_annotations,
+ 'WorkerContext.webkitResolveLocalFileSystemSyncURL': _file_system_annotations,
+ 'WorkerContext.webkitResolveLocalFileSystemURL': _file_system_annotations,
}
def FindCommonAnnotations(interface_name, member_name=None):

Powered by Google App Engine
This is Rietveld 408576698