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

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

Issue 25626002: Generate a library ID instead of a library name, so that the ID can be used (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 2 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/scripts/htmlrenamer.py ('k') | tools/dom/templates/html/dartium/cpp_header.template » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/scripts/systemnative.py
===================================================================
--- tools/dom/scripts/systemnative.py (revision 28179)
+++ tools/dom/scripts/systemnative.py (working copy)
@@ -364,7 +364,7 @@
WEBCORE_CLASS_NAME_ESCAPED=
self._interface_type_info.native_type().replace('<', '_').replace('>', '_'),
DART_IMPLEMENTATION_CLASS=self._interface_type_info.implementation_name(),
- DART_IMPLEMENTATION_LIBRARY='dart:%s' % self._renamer.GetLibraryName(self._interface))
+ DART_IMPLEMENTATION_LIBRARY_ID='Dart%sLibraryId' % self._renamer.GetLibraryId(self._interface))
def _GenerateCPPHeader(self):
to_native_emitter = emitter.Emitter()
@@ -449,7 +449,8 @@
to_dart_emitter.Emit(
' static Dart_Handle createWrapper(NativeType* value)\n'
' {\n'
- ' return DartDOMWrapper::createWrapper<Dart$(INTERFACE)>(value);\n'
+ ' DartDOMData* domData = DartDOMData::current();\n'
+ ' return DartDOMWrapper::createWrapper<Dart$(INTERFACE)>(domData, value);\n'
' }\n',
INTERFACE=self._interface.id)
« no previous file with comments | « tools/dom/scripts/htmlrenamer.py ('k') | tools/dom/templates/html/dartium/cpp_header.template » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698