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

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

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:
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 e7cff303889763283291445d1c77d1a197f3773b..bf0651aa168ec91be689d0f5cdcb982d161e202c 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)",
@@ -645,10 +650,14 @@ dart_annotations = {
'ArrayBuffer': _all_but_ie9_annotations,
'ArrayBufferView': _all_but_ie9_annotations,
'DOMWindow.indexedDB': _indexed_db_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': [
@@ -704,6 +713,11 @@ 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,
+
Emily Fortuna 2013/01/11 21:05:13 delete this line
blois 2013/01/11 21:24:09 Done.
}
def FindCommonAnnotations(interface_name, member_name=None):

Powered by Google App Engine
This is Rietveld 408576698