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

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
« no previous file with comments | « tools/dom/idl/dart/dart.idl ('k') | tools/dom/templates/html/impl/impl_ImageData.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/systemnative.py
diff --git a/tools/dom/scripts/systemnative.py b/tools/dom/scripts/systemnative.py
index 81023b6e9e6f869aaf5fe9a42cdac6c3ac2ccbe0..6e5e01bfd6d7b34385e62ce0a3a634d676f3a32c 100644
--- a/tools/dom/scripts/systemnative.py
+++ b/tools/dom/scripts/systemnative.py
@@ -280,6 +280,10 @@ class DartiumBackend(HtmlDartGenerator):
self._AddSetter(attribute, html_name)
def _AddGetter(self, attr, html_name):
+ # Temporary hack to force dart:scalarlist clamped array for ImageData.data.
+ # TODO(antonm): solve in principled way.
+ if self._interface.id == 'ImageData' and html_name == 'data':
+ html_name = '_data'
type_info = self._TypeInfo(attr.type.id)
dart_declaration = '%s get %s' % (
self.SecureOutputType(attr.type.id), html_name)
« no previous file with comments | « tools/dom/idl/dart/dart.idl ('k') | tools/dom/templates/html/impl/impl_ImageData.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698