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

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

Issue 10829357: Autogenerate typed array toDart methods. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/dom/scripts/systemnative.py
diff --git a/lib/dom/scripts/systemnative.py b/lib/dom/scripts/systemnative.py
index df28efcba4c71677a4ee44ef808e46bb8be883bd..fee48c11f700a527c6164b548f863377eb18dcd5 100644
--- a/lib/dom/scripts/systemnative.py
+++ b/lib/dom/scripts/systemnative.py
@@ -367,10 +367,13 @@ class NativeImplementationGenerator(systembase.BaseGenerator):
INTERFACE=self._interface.id)
to_dart_emitter = emitter.Emitter()
- if ('CustomToJS' in self._interface.ext_attrs or
- 'CustomToJSObject' in self._interface.ext_attrs or
- 'PureInterface' in self._interface.ext_attrs or
- 'CPPPureInterface' in self._interface.ext_attrs or
+
+ ext_attrs = self._interface.ext_attrs
+
+ if ('CustomToJS' in ext_attrs or
+ ('CustomToJSObject' in ext_attrs and 'TypedArray' not in ext_attrs) or
+ 'PureInterface' in ext_attrs or
+ 'CPPPureInterface' in ext_attrs or
self._interface_type_info.custom_to_dart()):
to_dart_emitter.Emit(
' static Dart_Handle toDart(NativeType* value);\n')
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698