Chromium Code Reviews| Index: mojo/public/js/associated_bindings.js |
| diff --git a/mojo/public/js/associated_bindings.js b/mojo/public/js/associated_bindings.js |
| index 18ac452daf599c11d1a3e8db0ed0e78a90a0a7ac..fff47f4519fa8ab58f83872cfdf63e64bd9fb6f0 100644 |
| --- a/mojo/public/js/associated_bindings.js |
| +++ b/mojo/public/js/associated_bindings.js |
| @@ -3,11 +3,16 @@ |
| // found in the LICENSE file. |
| define("mojo/public/js/associated_bindings", [ |
| + "mojo/public/js/bindings", |
| "mojo/public/js/core", |
| "mojo/public/js/interface_types", |
| "mojo/public/js/lib/interface_endpoint_client", |
| "mojo/public/js/lib/interface_endpoint_handle", |
| -], function(core, types, interfaceEndpointClient, interfaceEndpointHandle) { |
| +], function(bindings, |
| + core, |
| + types, |
| + interfaceEndpointClient, |
| + interfaceEndpointHandle) { |
| var InterfaceEndpointClient = interfaceEndpointClient.InterfaceEndpointClient; |
| @@ -230,12 +235,23 @@ define("mojo/public/js/associated_bindings", [ |
| return result; |
| }; |
| + // --------------------------------------------------------------------------- |
| + |
| + function AssociatedBindingSet(interfaceType) { |
| + bindings.BindingSet.call(this, interfaceType); |
| + this.bindingType = AssociatedBinding; |
|
yzshen1
2017/04/27 23:46:00
Please make this a private member.
wangjimmy
2017/04/28 03:02:07
Done.
|
| + } |
| + |
| + AssociatedBindingSet.prototype = Object.create(bindings.BindingSet.prototype); |
| + AssociatedBindingSet.prototype.constructor = AssociatedBindingSet; |
| + |
| var exports = {}; |
| exports.AssociatedInterfacePtrInfo = types.AssociatedInterfacePtrInfo; |
| exports.AssociatedInterfaceRequest = types.AssociatedInterfaceRequest; |
| exports.makeRequest = makeRequest; |
| exports.AssociatedInterfacePtrController = AssociatedInterfacePtrController; |
| exports.AssociatedBinding = AssociatedBinding; |
| + exports.AssociatedBindingSet = AssociatedBindingSet; |
| return exports; |
| }); |