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

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

Issue 100923004: Changes to generated code for templatized DartDOMWrapper::lookupWrapper. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: sync Created 7 years 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/dartium/html_dartium.dart ('k') | no next file » | 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 1edfed78fcd2d67a6c5afef7eccdef386036e452..6871269e00c908afe17a246e0737e168da2fbcc1 100644
--- a/tools/dom/scripts/systemnative.py
+++ b/tools/dom/scripts/systemnative.py
@@ -423,7 +423,7 @@ class DartiumBackend(HtmlDartGenerator):
' return Dart_Null();\n'
' DartDOMData* domData = DartDOMData::current();\n'
' Dart_WeakPersistentHandle result =\n'
- ' DartDOMWrapper::lookupWrapper(domData, isNode, value);\n'
+ ' DartDOMWrapper::lookupWrapper<Dart$(INTERFACE)>(domData, value);\n'
' if (result)\n'
' return Dart_HandleFromWeakPersistent(result);\n'
' return createWrapper(domData, value);\n'
@@ -435,14 +435,14 @@ class DartiumBackend(HtmlDartGenerator):
' DartDOMData* domData = static_cast<DartDOMData*>(\n'
' Dart_GetNativeIsolateData(args));\n'
' Dart_WeakPersistentHandle result =\n'
- ' DartDOMWrapper::lookupWrapper(domData, isNode, value);\n'
+ ' DartDOMWrapper::lookupWrapper<Dart$(INTERFACE)>(domData, value);\n'
' if (result)\n'
' Dart_SetWeakHandleReturnValue(args, result);\n'
' else\n'
' Dart_SetReturnValue(args, createWrapper(domData, value));\n'
' }\n'
' }\n',
- )
+ INTERFACE=self._interface.id)
if ('CustomToV8' in ext_attrs or
'PureInterface' in ext_attrs or
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698