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

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

Issue 271543006: Fix DataTransfer object for Drag and Drop in Chrome 35. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 7 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 | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | no next file » | 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 50a31991de45214e561ab6c5d3acfb27dba03416..e5b419047eaf0b90f7473e9a22e0ea89603d1c3d 100644
--- a/tools/dom/scripts/generator.py
+++ b/tools/dom/scripts/generator.py
@@ -118,6 +118,8 @@ _dart2js_dom_custom_native_specs = monitored.Dict(
# IE Firefox
'CSSStyleDeclaration,MSStyleCSSProperties,CSS2Properties',
+ 'Clipboard': 'Clipboard,DataTransfer',
+
'ApplicationCache':
'ApplicationCache,DOMApplicationCache,OfflineResourceList',
@@ -422,7 +424,7 @@ class OperationInfo(object):
optional parameters
named is a boolean which is true if the optional parameters should
be named
- A parameter declaration is a tuple (dec, var) where var is the
+ A parameter declaration is a tuple (dec, var) where var is the
variable name, and dec is a string suitable for declaring the
variable in a parameter list. That is, dec + var is a valid
parameter declaration.
@@ -445,12 +447,12 @@ class OperationInfo(object):
def ParametersAsDecStringList(self, rename_type, force_optional=False):
"""Returns a list of strings where each string corresponds to a parameter
- declaration. All of the optional/named parameters if any will appear as
+ declaration. All of the optional/named parameters if any will appear as
a single entry at the end of the list.
"""
(required, optional, needs_named) = \
self.ParametersAsDecVarLists(rename_type, force_optional)
- def FormatParam(dec):
+ def FormatParam(dec):
return dec[0] + dec[1]
argtexts = map(FormatParam, required)
if optional:
« no previous file with comments | « sdk/lib/html/dart2js/html_dart2js.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698