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

Unified Diff: lib/html/scripts/htmlrenamer.py

Issue 11047021: New cross frame base types (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regen dart:html Created 8 years, 2 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 | « lib/html/dartium/html_dartium.dart ('k') | lib/html/scripts/systemhtml.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/html/scripts/htmlrenamer.py
diff --git a/lib/html/scripts/htmlrenamer.py b/lib/html/scripts/htmlrenamer.py
index 10a231c105f3cce451696ee9f0675dcde50f514c..58ace7b6321dbcdae2b3d44ac4bff993ff712c01 100644
--- a/lib/html/scripts/htmlrenamer.py
+++ b/lib/html/scripts/htmlrenamer.py
@@ -5,7 +5,9 @@
html_interface_renames = {
'DOMFormData': 'FormData',
- 'DOMWindow': 'Window',
+ 'DOMWindow': 'LocalWindow',
+ 'History': 'LocalHistory',
+ 'Location': 'LocalLocation',
'WebKitAnimation': 'Animation',
'WebKitAnimationEvent': 'AnimationEvent',
'WebKitAnimationList': 'AnimationList',
@@ -91,7 +93,7 @@ _private_html_members = set([
'Storage.key',
'Storage.removeItem',
'Storage.setItem',
- 'Window.getComputedStyle',
+ 'LocalWindow.getComputedStyle',
])
# Members from the standard dom that exist in the dart:html library with
@@ -109,9 +111,9 @@ _renamed_html_members = {
'SVGElement.className': '$dom_svgClassName',
'SVGAnimatedString.className': '$dom_svgClassName',
'SVGStylable.className': '$dom_svgClassName',
- 'Window.webkitCancelAnimationFrame': 'cancelAnimationFrame',
- 'Window.webkitCancelRequestAnimationFrame': 'cancelRequestAnimationFrame',
- 'Window.webkitRequestAnimationFrame': 'requestAnimationFrame',
+ 'LocalWindow.webkitCancelAnimationFrame': 'cancelAnimationFrame',
+ 'LocalWindow.webkitCancelRequestAnimationFrame': 'cancelRequestAnimationFrame',
+ 'LocalWindow.webkitRequestAnimationFrame': 'requestAnimationFrame',
}
# Members and classes from the dom that should be removed completely from
@@ -277,8 +279,8 @@ _removed_html_members = set([
"WheelEvent.wheelDelta",
"WheelEvent.wheelDeltaX",
"WheelEvent.wheelDeltaY",
- "Window.get:frameElement",
- "Window.webkitCancelRequestAnimationFrame",
+ "LocalWindow.get:frameElement",
+ "LocalWindow.webkitCancelRequestAnimationFrame",
])
class HtmlRenamer(object):
« no previous file with comments | « lib/html/dartium/html_dartium.dart ('k') | lib/html/scripts/systemhtml.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698