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

Unified Diff: mojo/public/js/associated_bindings.js

Issue 2844133003: Add associated binding set. Add associated_binding.html layout test. (Closed)
Patch Set: Make bindingType private and passed it into BindingSetEntry Created 3 years, 8 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 | « no previous file | mojo/public/js/bindings.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/js/associated_bindings.js
diff --git a/mojo/public/js/associated_bindings.js b/mojo/public/js/associated_bindings.js
index 869eedb4536f73730cc05ec0db32defee932fe34..5fa9533cf96f356302de9df0e46ebda68aa51b5e 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;
@@ -237,12 +242,23 @@ define("mojo/public/js/associated_bindings", [
return result;
};
+ // ---------------------------------------------------------------------------
+
+ function AssociatedBindingSet(interfaceType) {
+ bindings.BindingSet.call(this, interfaceType);
+ this.bindingType_ = AssociatedBinding;
+ }
+
+ 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;
});
« no previous file with comments | « no previous file | mojo/public/js/bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698