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

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

Issue 12036013: Initial work on ImageData.data. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/systemnative.py
diff --git a/tools/dom/scripts/systemnative.py b/tools/dom/scripts/systemnative.py
index 4ef1c98b0b2b1778f8a30f7c900dde1d1c496146..fd419baa1030801a7610cecbecb31c825643a6e2 100644
--- a/tools/dom/scripts/systemnative.py
+++ b/tools/dom/scripts/systemnative.py
@@ -280,6 +280,8 @@ class DartiumBackend(HtmlDartGenerator):
self._AddSetter(attribute, html_name)
def _AddGetter(self, attr, html_name):
+ if self._interface.id == 'ImageData' and html_name == 'data':
blois 2013/01/22 17:10:44 Add a comment for this?
Anton Muhin 2013/01/23 08:38:21 Done.
+ html_name = '_data'
type_info = self._TypeInfo(attr.type.id)
dart_declaration = '%s get %s' % (
self.SecureOutputType(attr.type.id), html_name)

Powered by Google App Engine
This is Rietveld 408576698