blob: 70d29a0ded9ef6bc6842efb7b999a5b7d2aae696 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict';
mojo.internal.exportModule('blink.mojom');
/** @export */
blink.mojom.StorageAreaObserverRequest = class {
/** @param {!MojoHandle} handle */
constructor(handle) {
/** @public {!MojoHandle} */
this.handle = handle;
}
};
/**
* @export
* @implements { blink.mojom.StorageAreaObserverInterface }
*/
blink.mojom.StorageAreaObserverProxy = class {
/** @param {MojoHandle=} opt_handle */
constructor(opt_handle) {
/**
* @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!blink.mojom.StorageAreaObserverRequest>}
*/
this.proxy =
new mojo.internal.interfaceSupport.InterfaceRemoteBase(
blink.mojom.StorageAreaObserverRequest,
opt_handle);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!blink.mojom.StorageAreaObserverRequest>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
}
/**
* @param { !Array<!number> } key
* @param { !Array<!number> } value
* @param { !string } source
*/
keyAdded(
key,
value,
source) {
this.proxy.sendMessage(
0,
blink.mojom.StorageAreaObserver_KeyAdded_ParamsSpec.$,
null,
[
key,
value,
source
]);
}
/**
* @param { !Array<!number> } key
* @param { !Array<!number> } newValue
* @param { !Array<!number> } oldValue
* @param { !string } source
*/
keyChanged(
key,
newValue,
oldValue,
source) {
this.proxy.sendMessage(
1,
blink.mojom.StorageAreaObserver_KeyChanged_ParamsSpec.$,
null,
[
key,
newValue,
oldValue,
source
]);
}
/**
* @param { !Array<!number> } key
* @param { !Array<!number> } oldValue
* @param { !string } source
*/
keyDeleted(
key,
oldValue,
source) {
this.proxy.sendMessage(
2,
blink.mojom.StorageAreaObserver_KeyDeleted_ParamsSpec.$,
null,
[
key,
oldValue,
source
]);
}
/**
* @param { !string } source
*/
allDeleted(
source) {
this.proxy.sendMessage(
3,
blink.mojom.StorageAreaObserver_AllDeleted_ParamsSpec.$,
null,
[
source
]);
}
/**
* @param { !boolean } value
*/
shouldSendOldValueOnMutations(
value) {
this.proxy.sendMessage(
4,
blink.mojom.StorageAreaObserver_ShouldSendOldValueOnMutations_ParamsSpec.$,
null,
[
value
]);
}
};
/**
* An object which receives request messages for the StorageAreaObserver
* mojom interface. Must be constructed over an object which implements that
* interface.
*
* @export
*/
blink.mojom.StorageAreaObserver = class {
/**
* @param {!blink.mojom.StorageAreaObserverInterface } impl
*/
constructor(impl) {
this.receiver_ = new mojo.internal.interfaceSupport.InterfaceReceiver;
this.receiver_.registerHandler(
0,
blink.mojom.StorageAreaObserver_KeyAdded_ParamsSpec.$,
null,
impl.keyAdded.bind(impl));
this.receiver_.registerHandler(
1,
blink.mojom.StorageAreaObserver_KeyChanged_ParamsSpec.$,
null,
impl.keyChanged.bind(impl));
this.receiver_.registerHandler(
2,
blink.mojom.StorageAreaObserver_KeyDeleted_ParamsSpec.$,
null,
impl.keyDeleted.bind(impl));
this.receiver_.registerHandler(
3,
blink.mojom.StorageAreaObserver_AllDeleted_ParamsSpec.$,
null,
impl.allDeleted.bind(impl));
this.receiver_.registerHandler(
4,
blink.mojom.StorageAreaObserver_ShouldSendOldValueOnMutations_ParamsSpec.$,
null,
impl.shouldSendOldValueOnMutations.bind(impl));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.receiver_.getConnectionErrorEventRouter();
}
/**
* Binds a new handle to this object. Messages which arrive on the handle will
* be read and dispatched to this object.
*
* @param {!MojoHandle} handle
* @export
*/
bindHandle(handle) {
this.receiver_.bindHandle(handle);
}
/**
* Closes all bindings bound to this target.
*
* @export
*/
closeBindings() {
this.receiver_.closeBindings();
}
/**
* Returns a proxy for this interface which sends messages to the browser.
* The browser must have an interface request binder registered for this
* interface and accessible to the calling document's frame.
*
* @return {!blink.mojom.StorageAreaObserverProxy}
* @export
*/
static getProxy() {
let proxy = new blink.mojom.StorageAreaObserverProxy;
Mojo.bindInterface('blink.mojom.StorageAreaObserver',
proxy.$.bindNewPipeAndPassReceiver().handle);
return proxy;
}
/**
* Returns a proxy for this interface which sends messages directly to this
* object. Any number of proxies may be created to the same object.
*
* @return {!blink.mojom.StorageAreaObserverProxy}
* @export
*/
createProxy() {
let proxy = new blink.mojom.StorageAreaObserverProxy;
this.receiver_.bindHandle(proxy.$.bindNewPipeAndPassReceiver().handle);
return proxy;
}
};
/**
* @const {string}
* @export
*/
blink.mojom.StorageAreaObserver.$interfaceName =
'blink.mojom.StorageAreaObserver';
/**
* An object which receives request messages for the StorageAreaObserver
* mojom interface and dispatches them as callbacks. One callback receiver exists
* on this object for each message defined in the mojom interface, and each
* receiver can have any number of listeners added to it.
*
* @export
*/
blink.mojom.StorageAreaObserverCallbackRouter = class {
constructor() {
this.receiver_ = new mojo.internal.interfaceSupport.InterfaceReceiver;
this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.keyAdded =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.receiver_.registerHandler(
0,
blink.mojom.StorageAreaObserver_KeyAdded_ParamsSpec.$,
null,
this.keyAdded.createReceiverHandler(false /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.keyChanged =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.receiver_.registerHandler(
1,
blink.mojom.StorageAreaObserver_KeyChanged_ParamsSpec.$,
null,
this.keyChanged.createReceiverHandler(false /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.keyDeleted =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.receiver_.registerHandler(
2,
blink.mojom.StorageAreaObserver_KeyDeleted_ParamsSpec.$,
null,
this.keyDeleted.createReceiverHandler(false /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.allDeleted =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.receiver_.registerHandler(
3,
blink.mojom.StorageAreaObserver_AllDeleted_ParamsSpec.$,
null,
this.allDeleted.createReceiverHandler(false /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.shouldSendOldValueOnMutations =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.receiver_.registerHandler(
4,
blink.mojom.StorageAreaObserver_ShouldSendOldValueOnMutations_ParamsSpec.$,
null,
this.shouldSendOldValueOnMutations.createReceiverHandler(false /* expectsResponse */));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.receiver_.getConnectionErrorEventRouter();
}
/**
* Binds a new handle to this object. Messages which arrive on the handle will
* be read and dispatched as callbacks on this object.
*
* @param {!MojoHandle} handle
* @export
*/
bindHandle(handle) {
this.receiver_.bindHandle(handle);
}
/**
* Closes all bindings bound to this receiver. The receiver will not receive any
* further message message events unless rebound to one or more handles.
*/
closeBindings() {
this.receiver_.closeBindings();
}
/**
* Returns a proxy for this interface which sends messages directly to this
* object. Any number of proxies may be created to the same object.
*
* @return {!blink.mojom.StorageAreaObserverProxy}
* @export
*/
createProxy() {
let proxy = new blink.mojom.StorageAreaObserverProxy;
this.receiver_.bindHandle(proxy.$.bindNewPipeAndPassReceiver().handle);
return proxy;
}
/**
* @param {number} id An ID returned by a prior call to addListener.
* @return {boolean} True iff the identified listener was found and removed.
* @export
*/
removeListener(id) {
return this.router_.removeListener(id);
}
};
/** @export */
blink.mojom.StorageAreaGetAllCallbackRequest = class {
/** @param {!MojoHandle} handle */
constructor(handle) {
/** @public {!MojoHandle} */
this.handle = handle;
}
};
/**
* @export
* @implements { blink.mojom.StorageAreaGetAllCallbackInterface }
*/
blink.mojom.StorageAreaGetAllCallbackProxy = class {
/** @param {MojoHandle=} opt_handle */
constructor(opt_handle) {
/**
* @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!blink.mojom.StorageAreaGetAllCallbackRequest>}
*/
this.proxy =
new mojo.internal.interfaceSupport.InterfaceRemoteBase(
blink.mojom.StorageAreaGetAllCallbackRequest,
opt_handle);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!blink.mojom.StorageAreaGetAllCallbackRequest>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
}
/**
* @param { !boolean } success
*/
complete(
success) {
this.proxy.sendMessage(
0,
blink.mojom.StorageAreaGetAllCallback_Complete_ParamsSpec.$,
null,
[
success
]);
}
};
/**
* An object which receives request messages for the StorageAreaGetAllCallback
* mojom interface. Must be constructed over an object which implements that
* interface.
*
* @export
*/
blink.mojom.StorageAreaGetAllCallback = class {
/**
* @param {!blink.mojom.StorageAreaGetAllCallbackInterface } impl
*/
constructor(impl) {
this.receiver_ = new mojo.internal.interfaceSupport.InterfaceReceiver;
this.receiver_.registerHandler(
0,
blink.mojom.StorageAreaGetAllCallback_Complete_ParamsSpec.$,
null,
impl.complete.bind(impl));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.receiver_.getConnectionErrorEventRouter();
}
/**
* Binds a new handle to this object. Messages which arrive on the handle will
* be read and dispatched to this object.
*
* @param {!MojoHandle} handle
* @export
*/
bindHandle(handle) {
this.receiver_.bindHandle(handle);
}
/**
* Closes all bindings bound to this target.
*
* @export
*/
closeBindings() {
this.receiver_.closeBindings();
}
/**
* Returns a proxy for this interface which sends messages to the browser.
* The browser must have an interface request binder registered for this
* interface and accessible to the calling document's frame.
*
* @return {!blink.mojom.StorageAreaGetAllCallbackProxy}
* @export
*/
static getProxy() {
let proxy = new blink.mojom.StorageAreaGetAllCallbackProxy;
Mojo.bindInterface('blink.mojom.StorageAreaGetAllCallback',
proxy.$.bindNewPipeAndPassReceiver().handle);
return proxy;
}
/**
* Returns a proxy for this interface which sends messages directly to this
* object. Any number of proxies may be created to the same object.
*
* @return {!blink.mojom.StorageAreaGetAllCallbackProxy}
* @export
*/
createProxy() {
let proxy = new blink.mojom.StorageAreaGetAllCallbackProxy;
this.receiver_.bindHandle(proxy.$.bindNewPipeAndPassReceiver().handle);
return proxy;
}
};
/**
* @const {string}
* @export
*/
blink.mojom.StorageAreaGetAllCallback.$interfaceName =
'blink.mojom.StorageAreaGetAllCallback';
/**
* An object which receives request messages for the StorageAreaGetAllCallback
* mojom interface and dispatches them as callbacks. One callback receiver exists
* on this object for each message defined in the mojom interface, and each
* receiver can have any number of listeners added to it.
*
* @export
*/
blink.mojom.StorageAreaGetAllCallbackCallbackRouter = class {
constructor() {
this.receiver_ = new mojo.internal.interfaceSupport.InterfaceReceiver;
this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.complete =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.receiver_.registerHandler(
0,
blink.mojom.StorageAreaGetAllCallback_Complete_ParamsSpec.$,
null,
this.complete.createReceiverHandler(false /* expectsResponse */));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.receiver_.getConnectionErrorEventRouter();
}
/**
* Binds a new handle to this object. Messages which arrive on the handle will
* be read and dispatched as callbacks on this object.
*
* @param {!MojoHandle} handle
* @export
*/
bindHandle(handle) {
this.receiver_.bindHandle(handle);
}
/**
* Closes all bindings bound to this receiver. The receiver will not receive any
* further message message events unless rebound to one or more handles.
*/
closeBindings() {
this.receiver_.closeBindings();
}
/**
* Returns a proxy for this interface which sends messages directly to this
* object. Any number of proxies may be created to the same object.
*
* @return {!blink.mojom.StorageAreaGetAllCallbackProxy}
* @export
*/
createProxy() {
let proxy = new blink.mojom.StorageAreaGetAllCallbackProxy;
this.receiver_.bindHandle(proxy.$.bindNewPipeAndPassReceiver().handle);
return proxy;
}
/**
* @param {number} id An ID returned by a prior call to addListener.
* @return {boolean} True iff the identified listener was found and removed.
* @export
*/
removeListener(id) {
return this.router_.removeListener(id);
}
};
/** @export */
blink.mojom.StorageAreaRequest = class {
/** @param {!MojoHandle} handle */
constructor(handle) {
/** @public {!MojoHandle} */
this.handle = handle;
}
};
/**
* @export
* @implements { blink.mojom.StorageAreaInterface }
*/
blink.mojom.StorageAreaProxy = class {
/** @param {MojoHandle=} opt_handle */
constructor(opt_handle) {
/**
* @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!blink.mojom.StorageAreaRequest>}
*/
this.proxy =
new mojo.internal.interfaceSupport.InterfaceRemoteBase(
blink.mojom.StorageAreaRequest,
opt_handle);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!blink.mojom.StorageAreaRequest>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
}
/**
* @param { !Object } observer
*/
addObserver(
observer) {
this.proxy.sendMessage(
0,
blink.mojom.StorageArea_AddObserver_ParamsSpec.$,
null,
[
observer
]);
}
/**
* @param { !Array<!number> } key
* @param { !Array<!number> } value
* @param { ?Array<!number> } clientOldValue
* @param { !string } source
* @return {Promise<{
success: !boolean,
* }>}
*/
put(
key,
value,
clientOldValue,
source) {
return this.proxy.sendMessage(
1,
blink.mojom.StorageArea_Put_ParamsSpec.$,
blink.mojom.StorageArea_Put_ResponseParamsSpec.$,
[
key,
value,
clientOldValue,
source
]);
}
/**
* @param { !Array<!number> } key
* @param { ?Array<!number> } clientOldValue
* @param { !string } source
* @return {Promise<{
success: !boolean,
* }>}
*/
delete(
key,
clientOldValue,
source) {
return this.proxy.sendMessage(
2,
blink.mojom.StorageArea_Delete_ParamsSpec.$,
blink.mojom.StorageArea_Delete_ResponseParamsSpec.$,
[
key,
clientOldValue,
source
]);
}
/**
* @param { !string } source
* @return {Promise<{
success: !boolean,
* }>}
*/
deleteAll(
source) {
return this.proxy.sendMessage(
3,
blink.mojom.StorageArea_DeleteAll_ParamsSpec.$,
blink.mojom.StorageArea_DeleteAll_ResponseParamsSpec.$,
[
source
]);
}
/**
* @param { !Array<!number> } key
* @return {Promise<{
success: !boolean,
value: !Array<!number>,
* }>}
*/
get(
key) {
return this.proxy.sendMessage(
4,
blink.mojom.StorageArea_Get_ParamsSpec.$,
blink.mojom.StorageArea_Get_ResponseParamsSpec.$,
[
key
]);
}
/**
* @param { !Object } completeCallback
* @return {Promise<{
success: !boolean,
data: !Array<!blink.mojom.KeyValue>,
* }>}
*/
getAll(
completeCallback) {
return this.proxy.sendMessage(
5,
blink.mojom.StorageArea_GetAll_ParamsSpec.$,
blink.mojom.StorageArea_GetAll_ResponseParamsSpec.$,
[
completeCallback
]);
}
};
/**
* An object which receives request messages for the StorageArea
* mojom interface. Must be constructed over an object which implements that
* interface.
*
* @export
*/
blink.mojom.StorageArea = class {
/**
* @param {!blink.mojom.StorageAreaInterface } impl
*/
constructor(impl) {
this.receiver_ = new mojo.internal.interfaceSupport.InterfaceReceiver;
this.receiver_.registerHandler(
0,
blink.mojom.StorageArea_AddObserver_ParamsSpec.$,
null,
impl.addObserver.bind(impl));
this.receiver_.registerHandler(
1,
blink.mojom.StorageArea_Put_ParamsSpec.$,
blink.mojom.StorageArea_Put_ResponseParamsSpec.$,
impl.put.bind(impl));
this.receiver_.registerHandler(
2,
blink.mojom.StorageArea_Delete_ParamsSpec.$,
blink.mojom.StorageArea_Delete_ResponseParamsSpec.$,
impl.delete.bind(impl));
this.receiver_.registerHandler(
3,
blink.mojom.StorageArea_DeleteAll_ParamsSpec.$,
blink.mojom.StorageArea_DeleteAll_ResponseParamsSpec.$,
impl.deleteAll.bind(impl));
this.receiver_.registerHandler(
4,
blink.mojom.StorageArea_Get_ParamsSpec.$,
blink.mojom.StorageArea_Get_ResponseParamsSpec.$,
impl.get.bind(impl));
this.receiver_.registerHandler(
5,
blink.mojom.StorageArea_GetAll_ParamsSpec.$,
blink.mojom.StorageArea_GetAll_ResponseParamsSpec.$,
impl.getAll.bind(impl));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.receiver_.getConnectionErrorEventRouter();
}
/**
* Binds a new handle to this object. Messages which arrive on the handle will
* be read and dispatched to this object.
*
* @param {!MojoHandle} handle
* @export
*/
bindHandle(handle) {
this.receiver_.bindHandle(handle);
}
/**
* Closes all bindings bound to this target.
*
* @export
*/
closeBindings() {
this.receiver_.closeBindings();
}
/**
* Returns a proxy for this interface which sends messages to the browser.
* The browser must have an interface request binder registered for this
* interface and accessible to the calling document's frame.
*
* @return {!blink.mojom.StorageAreaProxy}
* @export
*/
static getProxy() {
let proxy = new blink.mojom.StorageAreaProxy;
Mojo.bindInterface('blink.mojom.StorageArea',
proxy.$.bindNewPipeAndPassReceiver().handle);
return proxy;
}
/**
* Returns a proxy for this interface which sends messages directly to this
* object. Any number of proxies may be created to the same object.
*
* @return {!blink.mojom.StorageAreaProxy}
* @export
*/
createProxy() {
let proxy = new blink.mojom.StorageAreaProxy;
this.receiver_.bindHandle(proxy.$.bindNewPipeAndPassReceiver().handle);
return proxy;
}
};
/**
* @const {string}
* @export
*/
blink.mojom.StorageArea.$interfaceName =
'blink.mojom.StorageArea';
/**
* An object which receives request messages for the StorageArea
* mojom interface and dispatches them as callbacks. One callback receiver exists
* on this object for each message defined in the mojom interface, and each
* receiver can have any number of listeners added to it.
*
* @export
*/
blink.mojom.StorageAreaCallbackRouter = class {
constructor() {
this.receiver_ = new mojo.internal.interfaceSupport.InterfaceReceiver;
this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.addObserver =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.receiver_.registerHandler(
0,
blink.mojom.StorageArea_AddObserver_ParamsSpec.$,
null,
this.addObserver.createReceiverHandler(false /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.put =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.receiver_.registerHandler(
1,
blink.mojom.StorageArea_Put_ParamsSpec.$,
blink.mojom.StorageArea_Put_ResponseParamsSpec.$,
this.put.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.delete =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.receiver_.registerHandler(
2,
blink.mojom.StorageArea_Delete_ParamsSpec.$,
blink.mojom.StorageArea_Delete_ResponseParamsSpec.$,
this.delete.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.deleteAll =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.receiver_.registerHandler(
3,
blink.mojom.StorageArea_DeleteAll_ParamsSpec.$,
blink.mojom.StorageArea_DeleteAll_ResponseParamsSpec.$,
this.deleteAll.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.get =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.receiver_.registerHandler(
4,
blink.mojom.StorageArea_Get_ParamsSpec.$,
blink.mojom.StorageArea_Get_ResponseParamsSpec.$,
this.get.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.getAll =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.receiver_.registerHandler(
5,
blink.mojom.StorageArea_GetAll_ParamsSpec.$,
blink.mojom.StorageArea_GetAll_ResponseParamsSpec.$,
this.getAll.createReceiverHandler(true /* expectsResponse */));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.receiver_.getConnectionErrorEventRouter();
}
/**
* Binds a new handle to this object. Messages which arrive on the handle will
* be read and dispatched as callbacks on this object.
*
* @param {!MojoHandle} handle
* @export
*/
bindHandle(handle) {
this.receiver_.bindHandle(handle);
}
/**
* Closes all bindings bound to this receiver. The receiver will not receive any
* further message message events unless rebound to one or more handles.
*/
closeBindings() {
this.receiver_.closeBindings();
}
/**
* Returns a proxy for this interface which sends messages directly to this
* object. Any number of proxies may be created to the same object.
*
* @return {!blink.mojom.StorageAreaProxy}
* @export
*/
createProxy() {
let proxy = new blink.mojom.StorageAreaProxy;
this.receiver_.bindHandle(proxy.$.bindNewPipeAndPassReceiver().handle);
return proxy;
}
/**
* @param {number} id An ID returned by a prior call to addListener.
* @return {boolean} True iff the identified listener was found and removed.
* @export
*/
removeListener(id) {
return this.router_.removeListener(id);
}
};
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.KeyValueSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.StorageAreaObserver_KeyAdded_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.StorageAreaObserver_KeyChanged_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.StorageAreaObserver_KeyDeleted_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.StorageAreaObserver_AllDeleted_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.StorageAreaObserver_ShouldSendOldValueOnMutations_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.StorageAreaGetAllCallback_Complete_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.StorageArea_AddObserver_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.StorageArea_Put_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.StorageArea_Put_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.StorageArea_Delete_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.StorageArea_Delete_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.StorageArea_DeleteAll_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.StorageArea_DeleteAll_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.StorageArea_Get_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.StorageArea_Get_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.StorageArea_GetAll_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
blink.mojom.StorageArea_GetAll_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
mojo.internal.Struct(
blink.mojom.KeyValueSpec.$,
'KeyValue',
16,
[
mojo.internal.StructField(
'key', 0,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
false /* nullable */),
mojo.internal.StructField(
'value', 8,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
false /* nullable */),
]);
mojo.internal.Struct(
blink.mojom.StorageAreaObserver_KeyAdded_ParamsSpec.$,
'StorageAreaObserver_KeyAdded_Params',
24,
[
mojo.internal.StructField(
'key', 0,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
false /* nullable */),
mojo.internal.StructField(
'value', 8,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
false /* nullable */),
mojo.internal.StructField(
'source', 16,
0,
mojo.internal.String,
null,
false /* nullable */),
]);
mojo.internal.Struct(
blink.mojom.StorageAreaObserver_KeyChanged_ParamsSpec.$,
'StorageAreaObserver_KeyChanged_Params',
32,
[
mojo.internal.StructField(
'key', 0,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
false /* nullable */),
mojo.internal.StructField(
'newValue', 8,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
false /* nullable */),
mojo.internal.StructField(
'oldValue', 16,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
false /* nullable */),
mojo.internal.StructField(
'source', 24,
0,
mojo.internal.String,
null,
false /* nullable */),
]);
mojo.internal.Struct(
blink.mojom.StorageAreaObserver_KeyDeleted_ParamsSpec.$,
'StorageAreaObserver_KeyDeleted_Params',
24,
[
mojo.internal.StructField(
'key', 0,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
false /* nullable */),
mojo.internal.StructField(
'oldValue', 8,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
false /* nullable */),
mojo.internal.StructField(
'source', 16,
0,
mojo.internal.String,
null,
false /* nullable */),
]);
mojo.internal.Struct(
blink.mojom.StorageAreaObserver_AllDeleted_ParamsSpec.$,
'StorageAreaObserver_AllDeleted_Params',
8,
[
mojo.internal.StructField(
'source', 0,
0,
mojo.internal.String,
null,
false /* nullable */),
]);
mojo.internal.Struct(
blink.mojom.StorageAreaObserver_ShouldSendOldValueOnMutations_ParamsSpec.$,
'StorageAreaObserver_ShouldSendOldValueOnMutations_Params',
8,
[
mojo.internal.StructField(
'value', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
]);
mojo.internal.Struct(
blink.mojom.StorageAreaGetAllCallback_Complete_ParamsSpec.$,
'StorageAreaGetAllCallback_Complete_Params',
8,
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
]);
mojo.internal.Struct(
blink.mojom.StorageArea_AddObserver_ParamsSpec.$,
'StorageArea_AddObserver_Params',
8,
[
mojo.internal.StructField(
'observer', 0,
0,
mojo.internal.AssociatedInterfaceProxy(blink.mojom.StorageAreaObserverProxy),
null,
false /* nullable */),
]);
mojo.internal.Struct(
blink.mojom.StorageArea_Put_ParamsSpec.$,
'StorageArea_Put_Params',
32,
[
mojo.internal.StructField(
'key', 0,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
false /* nullable */),
mojo.internal.StructField(
'value', 8,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
false /* nullable */),
mojo.internal.StructField(
'clientOldValue', 16,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
true /* nullable */),
mojo.internal.StructField(
'source', 24,
0,
mojo.internal.String,
null,
false /* nullable */),
]);
mojo.internal.Struct(
blink.mojom.StorageArea_Put_ResponseParamsSpec.$,
'StorageArea_Put_ResponseParams',
8,
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
]);
mojo.internal.Struct(
blink.mojom.StorageArea_Delete_ParamsSpec.$,
'StorageArea_Delete_Params',
24,
[
mojo.internal.StructField(
'key', 0,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
false /* nullable */),
mojo.internal.StructField(
'clientOldValue', 8,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
true /* nullable */),
mojo.internal.StructField(
'source', 16,
0,
mojo.internal.String,
null,
false /* nullable */),
]);
mojo.internal.Struct(
blink.mojom.StorageArea_Delete_ResponseParamsSpec.$,
'StorageArea_Delete_ResponseParams',
8,
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
]);
mojo.internal.Struct(
blink.mojom.StorageArea_DeleteAll_ParamsSpec.$,
'StorageArea_DeleteAll_Params',
8,
[
mojo.internal.StructField(
'source', 0,
0,
mojo.internal.String,
null,
false /* nullable */),
]);
mojo.internal.Struct(
blink.mojom.StorageArea_DeleteAll_ResponseParamsSpec.$,
'StorageArea_DeleteAll_ResponseParams',
8,
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
]);
mojo.internal.Struct(
blink.mojom.StorageArea_Get_ParamsSpec.$,
'StorageArea_Get_Params',
8,
[
mojo.internal.StructField(
'key', 0,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
false /* nullable */),
]);
mojo.internal.Struct(
blink.mojom.StorageArea_Get_ResponseParamsSpec.$,
'StorageArea_Get_ResponseParams',
16,
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'value', 8,
0,
mojo.internal.Array(mojo.internal.Uint8, false),
null,
false /* nullable */),
]);
mojo.internal.Struct(
blink.mojom.StorageArea_GetAll_ParamsSpec.$,
'StorageArea_GetAll_Params',
8,
[
mojo.internal.StructField(
'completeCallback', 0,
0,
mojo.internal.AssociatedInterfaceProxy(blink.mojom.StorageAreaGetAllCallbackProxy),
null,
false /* nullable */),
]);
mojo.internal.Struct(
blink.mojom.StorageArea_GetAll_ResponseParamsSpec.$,
'StorageArea_GetAll_ResponseParams',
16,
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false /* nullable */),
mojo.internal.StructField(
'data', 8,
0,
mojo.internal.Array(blink.mojom.KeyValueSpec.$, false),
null,
false /* nullable */),
]);