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

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
« no previous file with comments | « tests/html/notifications_test.dart ('k') | tools/dom/scripts/htmlrenamer.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 ea779b1bb08f2de24b5b06d32ba09a84f915b0f1..970bb2816f62494934e8cf7711e6d0e952276700 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 = [
@@ -664,6 +670,7 @@ dart_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': [
@@ -679,21 +686,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)",
@@ -721,6 +720,7 @@ dart_annotations = {
],
'IDBFactory': _indexed_db_annotations,
'IDBDatabase': _indexed_db_annotations,
+ 'NotificationCenter': _webkit_experimental_annotations,
'Performance': _performance_annotations,
'ShadowRoot': [
"@SupportedBrowser(SupportedBrowser.CHROME, '25')",
« no previous file with comments | « tests/html/notifications_test.dart ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698