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

Unified Diff: client/dom/scripts/systemwrapping.py

Issue 9695015: Provide DartDomNameOfAttribute (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix native Created 8 years, 9 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: client/dom/scripts/systemwrapping.py
diff --git a/client/dom/scripts/systemwrapping.py b/client/dom/scripts/systemwrapping.py
index 3f112007c9a8baa248f105fb497abc9b9ef23a61..80f0df1b8682efb22328fa64d49ae3b0dbf6e2de 100644
--- a/client/dom/scripts/systemwrapping.py
+++ b/client/dom/scripts/systemwrapping.py
@@ -171,7 +171,9 @@ class WrappingInterfaceGenerator(object):
'\n'
' $TYPE get $NAME() { return $METHOD(this); }\n'
' static $TYPE $METHOD(var _this) native;\n',
- NAME=attr.id, TYPE=DartType(attr.type.id), METHOD=method_name)
+ NAME=DartDomNameOfAttribute(attr),
+ TYPE=DartType(attr.type.id),
+ METHOD=method_name)
def _AddSetter(self, attr):
# FIXME: See comment on getter.
@@ -180,7 +182,9 @@ class WrappingInterfaceGenerator(object):
'\n'
' void set $NAME($TYPE value) { $METHOD(this, value); }\n'
' static void $METHOD(var _this, $TYPE value) native;\n',
- NAME=attr.id, TYPE=DartType(attr.type.id), METHOD=method_name)
+ NAME=DartDomNameOfAttribute(attr),
+ TYPE=DartType(attr.type.id),
+ METHOD=method_name)
def AddSecondaryAttribute(self, interface, getter, setter):
self._SecondaryContext(interface)

Powered by Google App Engine
This is Rietveld 408576698