Change log:95336cb92b..191d55580eFull diff:95336cb92b..191d55580eRoll chromium third_party 4e16929f46..3a8f2a9e1e Change log:4e16929f46..3a8f2a9e1eChanged dependencies: * src/tools:c44a3f5eca..f524a53b81DEPS diff:95336cb92b..191d55580e/DEPS No update to Clang. TBR=titovartem@google.com, BUG=None CQ_INCLUDE_TRYBOTS=master.internal.tryserver.corp.webrtc:linux_internal Change-Id: Ic9c4a62b050383646e9fcf5cc07a5653c14ac06e Reviewed-on: https://webrtc-review.googlesource.com/76120 Reviewed-by: Patrik Höglund <phoglund@webrtc.org> Reviewed-by: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Artem Titov <titovartem@webrtc.org> Commit-Queue: Artem Titov <titovartem@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23205}
108 lines
1.9 KiB
JavaScript
108 lines
1.9 KiB
JavaScript
/**
|
|
* @fileoverview Closure definitions of Mojo service objects.
|
|
*/
|
|
|
|
const Mojo = {};
|
|
|
|
/**
|
|
* @param {string} name
|
|
* @param {MojoHandle} handle
|
|
*/
|
|
Mojo.bindInterface = function(name, handle) {};
|
|
|
|
const MojoHandle = class {};
|
|
|
|
const mojo = {};
|
|
|
|
// Core Mojo.
|
|
|
|
mojo.Binding = class {
|
|
/**
|
|
* @param {!mojo.Interface} interfaceType
|
|
* @param {!Object} impl
|
|
* @param {mojo.InterfaceRequest=} request
|
|
*/
|
|
constructor(interfaceType, impl, request) {};
|
|
|
|
/**
|
|
* Closes the message pipe. The bound object will no longer receive messages.
|
|
*/
|
|
close() {}
|
|
|
|
/**
|
|
* Binds to the given request.
|
|
* @param {!mojo.InterfaceRequest} request
|
|
*/
|
|
bind(request) {}
|
|
|
|
/** @param {function()} callback */
|
|
setConnectionErrorHandler(callback) {}
|
|
|
|
/**
|
|
* Creates an interface ptr and bind it to this instance.
|
|
* @return {!mojo.InterfacePtr} The interface ptr.
|
|
*/
|
|
createInterfacePtrAndBind() {}
|
|
};
|
|
|
|
|
|
mojo.InterfaceRequest = class {
|
|
constructor() {
|
|
/** @type {MojoHandle} */
|
|
this.handle;
|
|
}
|
|
|
|
/**
|
|
* Closes the message pipe. The object can no longer be bound to an
|
|
* implementation.
|
|
*/
|
|
close() {}
|
|
};
|
|
|
|
|
|
/** @interface */
|
|
mojo.InterfacePtr = class {};
|
|
|
|
|
|
mojo.InterfacePtrController = class {
|
|
/**
|
|
* Closes the message pipe. Messages can no longer be sent with this object.
|
|
*/
|
|
reset() {}
|
|
|
|
/** @param {function()} callback */
|
|
setConnectionErrorHandler(callback) {}
|
|
};
|
|
|
|
|
|
mojo.Interface = class {
|
|
constructor() {
|
|
/** @type {string} */
|
|
this.name;
|
|
|
|
/** @type {number} */
|
|
this.kVersion;
|
|
|
|
/** @type {function()} */
|
|
this.ptrClass;
|
|
|
|
/** @type {function()} */
|
|
this.proxyClass;
|
|
|
|
/** @type {function()} */
|
|
this.stubClass;
|
|
|
|
/** @type {function()} */
|
|
this.validateRequest;
|
|
|
|
/** @type {function()} */
|
|
this.validateResponse;
|
|
}
|
|
}
|
|
|
|
/**
|
|
* @param {!mojo.InterfacePtr} interfacePtr
|
|
* @return {!mojo.InterfaceRequest}
|
|
*/
|
|
mojo.makeRequest = function(interfacePtr) {};
|