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

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

Issue 11883025: Detect if webkitNotifications is available and remove webkit prefix (replaced (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 ad36286c9028bb6613c1e0c623b24247c415f2de..ca5510c9990fd9c201d17f32a0c2b9907e1c5f42 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -640,6 +640,12 @@ _all_but_ie9_annotations = [
"@SupportedBrowser(SupportedBrowser.SAFARI)",
]
+_webkit_experimental_annotations = [
+ "@SupportedBrowser(SupportedBrowser.CHROME)",
+ "@SupportedBrowser(SupportedBrowser.SAFARI)",
+ "@Experimental()",
+]
+
_history_annotations = _all_but_ie9_annotations
_performance_annotations = [
@@ -657,6 +663,7 @@ dart_annotations = {
'ArrayBufferView': _all_but_ie9_annotations,
'DOMWindow.indexedDB': _indexed_db_annotations,
'DOMWindow.performance': _performance_annotations,
+ 'DOMWindow.webkitNotifications': _webkit_experimental_annotations,
'DOMWindow.webkitRequestFileSystem': _file_system_annotations,
'DOMWindow.webkitResolveLocalFileSystemURL': _file_system_annotations,
'Element.webkitCreateShadowRoot': [
@@ -672,21 +679,13 @@ dart_annotations = {
"@Experimental()",
],
'HTMLDataListElement': _all_but_ie9_annotations,
- 'HTMLDetailsElement': [
- "@SupportedBrowser(SupportedBrowser.CHROME)",
- "@SupportedBrowser(SupportedBrowser.SAFARI)",
- "@Experimental()",
- ],
+ 'HTMLDetailsElement': _webkit_experimental_annotations,
'HTMLEmbedElement': [
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@SupportedBrowser(SupportedBrowser.IE)",
"@SupportedBrowser(SupportedBrowser.SAFARI)",
],
- 'HTMLKeygenElement': [
- "@SupportedBrowser(SupportedBrowser.CHROME)",
- "@SupportedBrowser(SupportedBrowser.SAFARI)",
- "@Experimental()",
- ],
+ 'HTMLKeygenElement': _webkit_experimental_annotations,
'HTMLMeterElement': [
"@SupportedBrowser(SupportedBrowser.CHROME)",
"@SupportedBrowser(SupportedBrowser.FIREFOX)",
@@ -714,6 +713,7 @@ dart_annotations = {
],
'IDBFactory': _indexed_db_annotations,
'IDBDatabase': _indexed_db_annotations,
+ 'NotificationCenter': _webkit_experimental_annotations,
'Performance': _performance_annotations,
'ShadowRoot': [
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",

Powered by Google App Engine
This is Rietveld 408576698