Index: third_party/mojo/src/mojo/public/tools/bindings/generators/mojom_js_generator.py |
diff --git a/third_party/mojo/src/mojo/public/tools/bindings/generators/mojom_js_generator.py b/third_party/mojo/src/mojo/public/tools/bindings/generators/mojom_js_generator.py |
index 7aaeaa28f02e2a80965112184ee793feb438f88b..fd1407e6ee1b9d4cb98075d6b543a613c16d9c79 100644 |
--- a/third_party/mojo/src/mojo/public/tools/bindings/generators/mojom_js_generator.py |
+++ b/third_party/mojo/src/mojo/public/tools/bindings/generators/mojom_js_generator.py |
@@ -223,30 +223,30 @@ def JavaScriptValidateHandleParams(packed_field): |
return "%s, %s" % (field_offset, nullable) |
- |
- |
def JavaScriptProxyMethodParameterValue(parameter): |
name = parameter.name; |
if (IsInterfaceParameter(parameter)): |
type = JavaScriptType(parameter.kind) |
- return "core.isHandle(%s) ? %s : connection.bindProxyClient" \ |
- "(%s, %s, %s.client)" % (name, name, name, type, type) |
+ return "core.isHandle(%s) ? %s : connection.bindImpl" \ |
+ "(%s, %s)" % (name, name, name, type) |
if (IsInterfaceRequestParameter(parameter)): |
type = JavaScriptType(parameter.kind.kind) |
- return "core.isHandle(%s) ? %s : connection.bindProxyClient" \ |
- "(%s, %s.client, %s)" % (name, name, name, type, type) |
+ return "core.isHandle(%s) ? %s : connection.bindProxy" \ |
+ "(%s, %s)" % (name, name, name, type) |
return name; |
+ |
def JavaScriptStubMethodParameterValue(parameter): |
name = parameter.name; |
if (IsInterfaceParameter(parameter)): |
type = JavaScriptType(parameter.kind) |
- return "connection.bindProxyHandle(%s, %s.client, %s)" % (name, type, type) |
+ return "connection.bindHandleToProxy(%s, %s)" % (name, type) |
if (IsInterfaceRequestParameter(parameter)): |
type = JavaScriptType(parameter.kind.kind) |
- return "connection.bindProxyHandle(%s, %s, %s.client)" % (name, type, type) |
+ return "connection.bindHandleToStub(%s, %s)" % (name, type) |
return name; |
+ |
def TranslateConstants(token): |
if isinstance(token, (mojom.EnumValue, mojom.NamedValue)): |
# Both variable and enum constants are constructed like: |