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

Unified Diff: client/dom/scripts/systemfrog.py

Issue 9453030: Fix for issue 1814 for dart:dom (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: fix typo Created 8 years, 10 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 | « client/dom/scripts/generator.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/scripts/systemfrog.py
diff --git a/client/dom/scripts/systemfrog.py b/client/dom/scripts/systemfrog.py
index 89fabb858bd77eefe4227e057f310eba22a660cc..e3e231d6a469ee9a1e1840012297bea080b85aab 100644
--- a/client/dom/scripts/systemfrog.py
+++ b/client/dom/scripts/systemfrog.py
@@ -315,10 +315,18 @@ class FrogInterfaceGenerator(object):
info: An OperationInfo object.
"""
# TODO(vsm): Handle overloads.
+ params = info.ParametersImplementationDeclaration(
+ lambda type_name: self._NarrowInputType(type_name))
+
+ native_body = dom_frog_native_bodies.get(
+ self._interface.id + '.' + info.name, '')
+ if native_body:
+ native_body = " '''" + native_body + "'''"
+
self._members_emitter.Emit(
'\n'
- ' $TYPE $NAME($PARAMS) native;\n',
+ ' $TYPE $NAME($PARAMS) native$NATIVESTRING;\n',
TYPE=self._NarrowOutputType(info.type_name),
NAME=info.name,
- PARAMS=info.ParametersImplementationDeclaration(
- lambda type_name: self._NarrowInputType(type_name)))
+ PARAMS=params,
+ NATIVESTRING=native_body)
« no previous file with comments | « client/dom/scripts/generator.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698