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

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

Issue 12050005: Adding supported checks to websql. (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
« no previous file with comments | « tests/html/websql_test.dart ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/generator.py
diff --git a/tools/dom/scripts/generator.py b/tools/dom/scripts/generator.py
index bc65b11abe8e776891844c9003363c58baea4559..93d11c5d000c993e15b6189c2c63bac6de9380e5 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -704,6 +704,12 @@ _speech_recognition_annotations = [
"@Experimental",
]
+_web_sql_annotations = [
+ "@SupportedBrowser(SupportedBrowser.CHROME)",
+ "@SupportedBrowser(SupportedBrowser.SAFARI)",
+ "@Experimental",
+]
+
# Annotations to be placed on generated members.
# The table is indexed as:
# INTERFACE: annotations to be added to the interface declaration
@@ -711,6 +717,8 @@ _speech_recognition_annotations = [
dart_annotations = {
'ArrayBuffer': _all_but_ie9_annotations,
'ArrayBufferView': _all_but_ie9_annotations,
+ 'Database': _web_sql_annotations,
+ 'DatabaseSync': _web_sql_annotations,
'DOMApplicationCache': [
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@SupportedBrowser(SupportedBrowser.FIREFOX)",
@@ -719,6 +727,7 @@ dart_annotations = {
"@SupportedBrowser(SupportedBrowser.SAFARI)",
],
'DOMWindow.indexedDB': _indexed_db_annotations,
+ 'DOMWindow.openDatabase': _web_sql_annotations,
'DOMWindow.performance': _performance_annotations,
'DOMWindow.webkitNotifications': _webkit_experimental_annotations,
'DOMWindow.webkitRequestFileSystem': _file_system_annotations,
@@ -793,8 +802,12 @@ dart_annotations = {
'SpeechRecognitionError': _speech_recognition_annotations,
'SpeechRecognitionEvent': _speech_recognition_annotations,
'SpeechRecognitionResult': _speech_recognition_annotations,
+ 'SQLTransaction': _web_sql_annotations,
+ 'SQLTransactionSync': _web_sql_annotations,
'WebSocket': _all_but_ie9_annotations,
'WorkerContext.indexedDB': _indexed_db_annotations,
+ 'WorkerContext.openDatabase': _web_sql_annotations,
+ 'WorkerContext.openDatabaseSync': _web_sql_annotations,
'WorkerContext.webkitRequestFileSystem': _file_system_annotations,
'WorkerContext.webkitRequestFileSystemSync': _file_system_annotations,
'WorkerContext.webkitResolveLocalFileSystemSyncURL': _file_system_annotations,
« no previous file with comments | « tests/html/websql_test.dart ('k') | tools/dom/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698