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

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

Issue 10010048: Remove unused tables from generator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/generator.py
diff --git a/lib/dom/scripts/generator.py b/lib/dom/scripts/generator.py
index 60406caa06fcfc4b9b2d481ca4fb175364cb9241..e5733dc33e8c99bbd2b1c034550f0033e89dc150 100644
--- a/lib/dom/scripts/generator.py
+++ b/lib/dom/scripts/generator.py
@@ -30,12 +30,6 @@ def IsPureInterface(interface_name):
return interface_name in _pure_interfaces
#
-# Identifiers that are used in the IDL than need to be treated specially because
-# *some* JavaScript processors forbid them as properties.
-#
-_javascript_keywords = ['delete', 'continue']
-
-#
# Renames for attributes that have names that are not legal Dart names.
#
_dart_attribute_renames = {
@@ -60,26 +54,6 @@ interface_factories = {
}
#
-# Custom methods that must be implemented by hand.
-#
-_custom_methods = set([
- ('DOMWindow', 'setInterval'),
- ('DOMWindow', 'setTimeout'),
- ('WorkerContext', 'setInterval'),
- ('WorkerContext', 'setTimeout'),
- ('CanvasRenderingContext2D', 'setFillStyle'),
- ('CanvasRenderingContext2D', 'setStrokeStyle'),
- ('CanvasRenderingContext2D', 'setFillStyle'),
- ])
-
-#
-# Custom getters that must be implemented by hand.
-#
-_custom_getters = set([
- ('DOMWindow', 'localStorage'),
- ])
-
-#
# Custom native specs for the Frog dom.
#
_frog_dom_custom_native_specs = {
@@ -92,18 +66,6 @@ _frog_dom_custom_native_specs = {
}
#
-# Simple method substitution when one method had different names on different
-# browsers, but are otherwise identical. The alternates are tried in order and
-# the first one defined is used.
-#
-# This can be probably be removed when Chrome renames initWebKitWheelEvent to
-# initWheelEvent.
-#
-_alternate_methods = {
- ('WheelEvent', 'initWheelEvent'): ['initWebKitWheelEvent', 'initWheelEvent']
-}
-
-#
# Custom native bodies for frog implementations of dom operations that appear in
# dart:dom and dart:html. This is used to work-around the lack of a 'rename'
# feature in the 'native' string - the correct name is available on the DartName
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698