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

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

Issue 10584031: Proper support for IDL arrays in generators. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Next iteration Created 8 years, 6 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: lib/dom/scripts/systemnative.py
diff --git a/lib/dom/scripts/systemnative.py b/lib/dom/scripts/systemnative.py
index ca0598c60b2b2753d8f60a12a0640dbb5a219951..8bbf266cb1cbd3ff95a605c75d1022522f65c901 100644
--- a/lib/dom/scripts/systemnative.py
+++ b/lib/dom/scripts/systemnative.py
@@ -942,8 +942,7 @@ class NativeImplementationGenerator(systembase.BaseGenerator):
argument_name=None):
"""idl_node is IDLArgument or IDLAttribute."""
type_info = GetIDLTypeInfo(idl_node.type.id)
- if not IsPrimitiveType(idl_node.type.id):
- self._cpp_impl_includes.add('"Dart%s.h"' % type_info.idl_type())
+ self._cpp_impl_includes |= set(type_info.to_native_includes())
argument_name = argument_name or idl_node.id
handle = 'Dart_GetNativeArgument(args, %i)' % index
return type_info.emit_to_native(emitter, idl_node, argument_name, handle, self._interface.id)

Powered by Google App Engine
This is Rietveld 408576698