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

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

Issue 14358016: Revert "Allow multiple tags in native clause." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 8 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 6a94fd860a2492d8eeb1c2e85a0eb97380915dc6..9499a087bdade2b3b3253d06dbc6d3c1b4972a6c 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -77,20 +77,12 @@ interface_factories = monitored.Dict('generator.interface_factories', {
#
_dart2js_dom_custom_native_specs = monitored.Dict(
'generator._dart2js_dom_custom_native_specs', {
+ # Decorate the singleton Console object, if present (workers do not have a
+ # console).
+ 'Console': "=(typeof console == 'undefined' ? {} : console)",
- # Nodes with different tags in different browsers can be listed as multiple
- # tags here provided there is not conflict in usage (e.g. browser X has tag
- # T and no other browser has tag T).
-
- 'DOMApplicationCache':
- 'ApplicationCache,DOMApplicationCache,OfflineResourceList',
-
- 'MutationObserver': 'MutationObserver,WebkitMutationObserver',
-
- 'TransitionEvent': 'TransitionEvent,WebkitTransitionEvent',
-
- 'WheelEvent': 'WheelEvent,MouseWheelEvent,MouseScrollEvent',
-
+ # DOMWindow aliased with global scope.
+ 'Window': '@*DOMWindow',
}, dart2jsOnly=True)
def IsRegisteredType(type_name):
@@ -102,7 +94,7 @@ def MakeNativeSpec(javascript_binding_name):
else:
# Make the class 'hidden' so it is dynamically patched at runtime. This
# is useful for browser compat.
- return javascript_binding_name
+ return '*' + javascript_binding_name
def MatchSourceFilter(thing):
« no previous file with comments | « sdk/lib/web_sql/dart2js/web_sql_dart2js.dart ('k') | tools/dom/templates/html/dart2js/html_dart2js.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698