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

Unified Diff: sdk/lib/html/scripts/systemnative.py

Issue 11398002: Splitting SVG types out of dart:html. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Minifying. Created 8 years, 1 month 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 | « sdk/lib/html/scripts/systemhtml.py ('k') | sdk/lib/html/src/CssClassSet.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/scripts/systemnative.py
diff --git a/sdk/lib/html/scripts/systemnative.py b/sdk/lib/html/scripts/systemnative.py
index 089ab5aa86ba0fde50b9be7ace435dbf6822babb..09e02083d3abf6942e2def6bb66bb2a8cd9f0b33 100644
--- a/sdk/lib/html/scripts/systemnative.py
+++ b/sdk/lib/html/scripts/systemnative.py
@@ -231,7 +231,8 @@ class DartiumBackend(HtmlDartGenerator):
INCLUDES=self._GenerateCPPIncludes(self._cpp_impl_includes),
CALLBACKS=self._cpp_definitions_emitter.Fragments(),
RESOLVER=self._cpp_resolver_emitter.Fragments(),
- DART_IMPLEMENTATION_CLASS=self._interface_type_info.implementation_name())
+ DART_IMPLEMENTATION_CLASS=self._interface_type_info.implementation_name(),
+ DART_IMPLEMENTATION_LIBRARY='dart:%s' % self._renamer.GetLibraryName(self._interface))
def _GenerateCPPHeader(self):
to_native_emitter = emitter.Emitter()
@@ -385,7 +386,7 @@ class DartiumBackend(HtmlDartGenerator):
self._members_emitter.Emit(
'\n'
' $TYPE operator[](int index) native "$(INTERFACE)_item_Callback";\n',
- TYPE=self.SecureOutputType(element_type),
+ TYPE=self.SecureOutputType(element_type),
INTERFACE=self._interface.id)
if self._HasNativeIndexSetter():
@@ -515,7 +516,7 @@ class DartiumBackend(HtmlDartGenerator):
dart_declaration = '%s%s _%s(%s)' % (
'static ' if operation.is_static else '',
- self.SecureOutputType(operation.type.id),
+ self.SecureOutputType(operation.type.id),
overload_name, argument_list)
cpp_callback_name = self._GenerateNativeBinding(
overload_name, (0 if operation.is_static else 1) + argument_count,
« no previous file with comments | « sdk/lib/html/scripts/systemhtml.py ('k') | sdk/lib/html/src/CssClassSet.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698