Lines Matching +full:function +full:- +full:bind
2 // Use of this source code is governed by a BSD-style license that can be
5 (function() {
8 // ---------------------------------------------------------------------------
12 function makeRequest(output) {
30 output.ptr.bind(new mojo.InterfacePtrInfo(pipe.handle0, 0));
34 // ---------------------------------------------------------------------------
38 // |ptrInfoOrHandle| could be omitted and passed into bind() later.
39 function InterfacePtrController(interfaceType, ptrInfoOrHandle) {
48 // |handle_| is valid between bind() and
53 this.bind(ptrInfoOrHandle);
56 InterfacePtrController.prototype.bind = function(ptrInfoOrHandle) { method in InterfacePtrController
67 InterfacePtrController.prototype.isBound = function() {
73 InterfacePtrController.prototype.reset = function() {
91 InterfacePtrController.prototype.resetWithReason = function(reason) {
100 InterfacePtrController.prototype.setConnectionErrorHandler = function(
109 InterfacePtrController.prototype.passInterface = function() {
126 InterfacePtrController.prototype.getProxy = function() {
131 InterfacePtrController.prototype.configureProxyIfNecessary_ = function() {
147 InterfacePtrController.prototype.queryVersion = function() {
148 function onQueryVersion(version) {
155 onQueryVersion.bind(this));
158 InterfacePtrController.prototype.requireVersion = function(version) {
168 // ---------------------------------------------------------------------------
170 // |request| could be omitted and passed into bind() later.
175 // function FooImpl() { ... }
176 // FooImpl.prototype.fooMethod1 = function() { ... }
177 // FooImpl.prototype.fooMethod2 = function() { ... }
183 function Binding(interfaceType, impl, requestOrHandle) {
191 this.bind(requestOrHandle);
194 Binding.prototype.isBound = function() {
198 Binding.prototype.createInterfacePtrAndBind = function() {
201 this.bind(makeRequest(ptr));
205 Binding.prototype.bind = function(requestOrHandle) { method in Binding
224 Binding.prototype.close = function() {
238 Binding.prototype.closeWithReason = function(reason) {
246 Binding.prototype.setConnectionErrorHandler = function(callback) {
253 Binding.prototype.unbind = function() {
263 // ---------------------------------------------------------------------------
265 function BindingSetEntry(bindingSet, interfaceType, bindingType, impl,
272 this.binding_.setConnectionErrorHandler(function(reason) {
274 }.bind(this));
277 BindingSetEntry.prototype.close = function() {
281 function BindingSet(interfaceType) {
289 BindingSet.prototype.isEmpty = function() {
293 BindingSet.prototype.addBinding = function(impl, requestOrHandle) {
301 BindingSet.prototype.closeAllBindings = function() {
307 BindingSet.prototype.setConnectionErrorHandler = function(callback) {
311 BindingSet.prototype.onConnectionError = function(bindingId, reason) {
318 // ---------------------------------------------------------------------------
322 // |associatedPtrInfo| could be omitted and passed into bind() later.
326 // function IntegerSenderImpl() { ... }
327 // IntegerSenderImpl.prototype.echo = function() { ... }
330 // function IntegerSenderConnectionImpl() {
333 // IntegerSenderConnectionImpl.prototype.getSender = function(
346 // // A locally-created associated interface pointer can only be used to
355 // // Create an associated interface and bind the associated handle.
357 // integerSender.ptr.bind(associatedInterfacePtrInfo);
360 function AssociatedInterfacePtrController(interfaceType, associatedPtrInfo) {
368 this.bind(associatedPtrInfo);
372 AssociatedInterfacePtrController.prototype.bind = function( method in AssociatedInterfacePtrController
386 AssociatedInterfacePtrController.prototype.isBound = function() {
390 AssociatedInterfacePtrController.prototype.reset = function() {
401 AssociatedInterfacePtrController.prototype.resetWithReason = function(
412 AssociatedInterfacePtrController.prototype.getEncounteredError = function() {
418 function(callback) {
426 AssociatedInterfacePtrController.prototype.passInterface = function() {
437 AssociatedInterfacePtrController.prototype.getProxy = function() {
441 AssociatedInterfacePtrController.prototype.queryVersion = function() {
442 function onQueryVersion(version) {
448 onQueryVersion.bind(this));
451 AssociatedInterfacePtrController.prototype.requireVersion = function(
460 // ---------------------------------------------------------------------------
462 // |associatedInterfaceRequest| could be omitted and passed into bind()
464 function AssociatedBinding(interfaceType, impl, associatedInterfaceRequest) {
471 this.bind(associatedInterfaceRequest);
475 AssociatedBinding.prototype.isBound = function() {
479 AssociatedBinding.prototype.bind = function(associatedInterfaceRequest) { method in AssociatedBinding
492 AssociatedBinding.prototype.close = function() {
505 AssociatedBinding.prototype.closeWithReason = function(reason) {
513 AssociatedBinding.prototype.setConnectionErrorHandler = function(callback) {
520 AssociatedBinding.prototype.unbind = function() {
531 // ---------------------------------------------------------------------------
533 function AssociatedBindingSet(interfaceType) {