blob: 5a5091b8b1e5ed2f390d884ffdbcaca9d262e0d0 [file] [log] [blame]
// components/spellcheck/common/spellcheck.mojom-lite-for-compile.js is auto generated by mojom_bindings_generator.py, do not edit
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* @fileoverview
* @suppress {missingRequire}
*/
'use strict';
goog.require('mojo.internal');
goog.require('mojo.internal.interfaceSupport');
goog.require('mojoBase.mojom.ReadOnlyFile');
goog.require('mojoBase.mojom.String16');
goog.provide('spellcheck.mojom.Decoration');
goog.provide('spellcheck.mojom.DecorationSpec');
/**
* @const { {$: !mojo.internal.MojomType} }
* @export
*/
spellcheck.mojom.DecorationSpec = { $: mojo.internal.Enum() };
/**
* @enum {number}
* @export
*/
spellcheck.mojom.Decoration = {
kSpelling: 0,
kGrammar: 1,
MIN_VALUE: 0,
MAX_VALUE: 1,
};
goog.provide('spellcheck.mojom.SpellChecker');
goog.provide('spellcheck.mojom.SpellCheckerReceiver');
goog.provide('spellcheck.mojom.SpellCheckerCallbackRouter');
goog.provide('spellcheck.mojom.SpellCheckerInterface');
goog.provide('spellcheck.mojom.SpellCheckerRemote');
goog.provide('spellcheck.mojom.SpellCheckerPendingReceiver');
/**
* @implements {mojo.internal.interfaceSupport.PendingReceiver}
* @export
*/
spellcheck.mojom.SpellCheckerPendingReceiver = class {
/**
* @param {!MojoHandle|!mojo.internal.interfaceSupport.Endpoint} handle
*/
constructor(handle) {
/** @public {!mojo.internal.interfaceSupport.Endpoint} */
this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
}
/** @param {string=} scope */
bindInBrowser(scope = 'context') {
mojo.internal.interfaceSupport.bind(
this.handle,
spellcheck.mojom.SpellChecker.$interfaceName,
scope);
}
};
/** @interface */
spellcheck.mojom.SpellCheckerInterface = class {
/**
* @param { !Array<!spellcheck.mojom.SpellCheckBDictLanguage> } dictionaries
* @param { !Array<!string> } customWords
* @param { !boolean } enable
*/
initialize(dictionaries, customWords, enable) {}
/**
* @param { !Array<!string> } wordsAdded
* @param { !Array<!string> } wordsRemoved
*/
customDictionaryChanged(wordsAdded, wordsRemoved) {}
};
/**
* @export
* @implements { spellcheck.mojom.SpellCheckerInterface }
*/
spellcheck.mojom.SpellCheckerRemote = class {
/** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */
constructor(handle = undefined) {
/**
* @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!spellcheck.mojom.SpellCheckerPendingReceiver>}
*/
this.proxy =
new mojo.internal.interfaceSupport.InterfaceRemoteBase(
spellcheck.mojom.SpellCheckerPendingReceiver,
handle);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!spellcheck.mojom.SpellCheckerPendingReceiver>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
}
/**
* @param { !Array<!spellcheck.mojom.SpellCheckBDictLanguage> } dictionaries
* @param { !Array<!string> } customWords
* @param { !boolean } enable
*/
initialize(
dictionaries,
customWords,
enable) {
this.proxy.sendMessage(
0,
spellcheck.mojom.SpellChecker_Initialize_ParamsSpec.$,
null,
[
dictionaries,
customWords,
enable
]);
}
/**
* @param { !Array<!string> } wordsAdded
* @param { !Array<!string> } wordsRemoved
*/
customDictionaryChanged(
wordsAdded,
wordsRemoved) {
this.proxy.sendMessage(
1,
spellcheck.mojom.SpellChecker_CustomDictionaryChanged_ParamsSpec.$,
null,
[
wordsAdded,
wordsRemoved
]);
}
};
/**
* An object which receives request messages for the SpellChecker
* mojom interface. Must be constructed over an object which implements that
* interface.
*
* @export
*/
spellcheck.mojom.SpellCheckerReceiver = class {
/**
* @param {!spellcheck.mojom.SpellCheckerInterface } impl
*/
constructor(impl) {
/** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!spellcheck.mojom.SpellCheckerRemote>} */
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
spellcheck.mojom.SpellCheckerRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!spellcheck.mojom.SpellCheckerRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.helper_internal_.registerHandler(
0,
spellcheck.mojom.SpellChecker_Initialize_ParamsSpec.$,
null,
impl.initialize.bind(impl));
this.helper_internal_.registerHandler(
1,
spellcheck.mojom.SpellChecker_CustomDictionaryChanged_ParamsSpec.$,
null,
impl.customDictionaryChanged.bind(impl));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
};
/**
* @export
*/
spellcheck.mojom.SpellChecker = class {
/**
* @return {!string}
*/
static get $interfaceName() {
return "spellcheck.mojom.SpellChecker";
}
/**
* Returns a remote 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 {!spellcheck.mojom.SpellCheckerRemote}
* @export
*/
static getRemote() {
let remote = new spellcheck.mojom.SpellCheckerRemote;
remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
return remote;
}
};
/**
* An object which receives request messages for the SpellChecker
* 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
*/
spellcheck.mojom.SpellCheckerCallbackRouter = class {
constructor() {
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
spellcheck.mojom.SpellCheckerRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!spellcheck.mojom.SpellCheckerRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.initialize =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
0,
spellcheck.mojom.SpellChecker_Initialize_ParamsSpec.$,
null,
this.initialize.createReceiverHandler(false /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.customDictionaryChanged =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1,
spellcheck.mojom.SpellChecker_CustomDictionaryChanged_ParamsSpec.$,
null,
this.customDictionaryChanged.createReceiverHandler(false /* expectsResponse */));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
/**
* @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);
}
};
goog.provide('spellcheck.mojom.SpellCheckInitializationHost');
goog.provide('spellcheck.mojom.SpellCheckInitializationHostReceiver');
goog.provide('spellcheck.mojom.SpellCheckInitializationHostCallbackRouter');
goog.provide('spellcheck.mojom.SpellCheckInitializationHostInterface');
goog.provide('spellcheck.mojom.SpellCheckInitializationHostRemote');
goog.provide('spellcheck.mojom.SpellCheckInitializationHostPendingReceiver');
/**
* @implements {mojo.internal.interfaceSupport.PendingReceiver}
* @export
*/
spellcheck.mojom.SpellCheckInitializationHostPendingReceiver = class {
/**
* @param {!MojoHandle|!mojo.internal.interfaceSupport.Endpoint} handle
*/
constructor(handle) {
/** @public {!mojo.internal.interfaceSupport.Endpoint} */
this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
}
/** @param {string=} scope */
bindInBrowser(scope = 'context') {
mojo.internal.interfaceSupport.bind(
this.handle,
spellcheck.mojom.SpellCheckInitializationHost.$interfaceName,
scope);
}
};
/** @interface */
spellcheck.mojom.SpellCheckInitializationHostInterface = class {
/**
*/
requestDictionary() {}
};
/**
* @export
* @implements { spellcheck.mojom.SpellCheckInitializationHostInterface }
*/
spellcheck.mojom.SpellCheckInitializationHostRemote = class {
/** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */
constructor(handle = undefined) {
/**
* @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!spellcheck.mojom.SpellCheckInitializationHostPendingReceiver>}
*/
this.proxy =
new mojo.internal.interfaceSupport.InterfaceRemoteBase(
spellcheck.mojom.SpellCheckInitializationHostPendingReceiver,
handle);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!spellcheck.mojom.SpellCheckInitializationHostPendingReceiver>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
}
/**
*/
requestDictionary() {
this.proxy.sendMessage(
0,
spellcheck.mojom.SpellCheckInitializationHost_RequestDictionary_ParamsSpec.$,
null,
[
]);
}
};
/**
* An object which receives request messages for the SpellCheckInitializationHost
* mojom interface. Must be constructed over an object which implements that
* interface.
*
* @export
*/
spellcheck.mojom.SpellCheckInitializationHostReceiver = class {
/**
* @param {!spellcheck.mojom.SpellCheckInitializationHostInterface } impl
*/
constructor(impl) {
/** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!spellcheck.mojom.SpellCheckInitializationHostRemote>} */
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
spellcheck.mojom.SpellCheckInitializationHostRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!spellcheck.mojom.SpellCheckInitializationHostRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.helper_internal_.registerHandler(
0,
spellcheck.mojom.SpellCheckInitializationHost_RequestDictionary_ParamsSpec.$,
null,
impl.requestDictionary.bind(impl));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
};
/**
* @export
*/
spellcheck.mojom.SpellCheckInitializationHost = class {
/**
* @return {!string}
*/
static get $interfaceName() {
return "spellcheck.mojom.SpellCheckInitializationHost";
}
/**
* Returns a remote 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 {!spellcheck.mojom.SpellCheckInitializationHostRemote}
* @export
*/
static getRemote() {
let remote = new spellcheck.mojom.SpellCheckInitializationHostRemote;
remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
return remote;
}
};
/**
* An object which receives request messages for the SpellCheckInitializationHost
* 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
*/
spellcheck.mojom.SpellCheckInitializationHostCallbackRouter = class {
constructor() {
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
spellcheck.mojom.SpellCheckInitializationHostRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!spellcheck.mojom.SpellCheckInitializationHostRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.requestDictionary =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
0,
spellcheck.mojom.SpellCheckInitializationHost_RequestDictionary_ParamsSpec.$,
null,
this.requestDictionary.createReceiverHandler(false /* expectsResponse */));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
/**
* @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);
}
};
goog.provide('spellcheck.mojom.SpellCheckHost');
goog.provide('spellcheck.mojom.SpellCheckHostReceiver');
goog.provide('spellcheck.mojom.SpellCheckHostCallbackRouter');
goog.provide('spellcheck.mojom.SpellCheckHostInterface');
goog.provide('spellcheck.mojom.SpellCheckHostRemote');
goog.provide('spellcheck.mojom.SpellCheckHostPendingReceiver');
/**
* @implements {mojo.internal.interfaceSupport.PendingReceiver}
* @export
*/
spellcheck.mojom.SpellCheckHostPendingReceiver = class {
/**
* @param {!MojoHandle|!mojo.internal.interfaceSupport.Endpoint} handle
*/
constructor(handle) {
/** @public {!mojo.internal.interfaceSupport.Endpoint} */
this.handle = mojo.internal.interfaceSupport.getEndpointForReceiver(handle);
}
/** @param {string=} scope */
bindInBrowser(scope = 'context') {
mojo.internal.interfaceSupport.bind(
this.handle,
spellcheck.mojom.SpellCheckHost.$interfaceName,
scope);
}
};
/** @interface */
spellcheck.mojom.SpellCheckHostInterface = class {
/**
* @param { !mojoBase.mojom.String16 } word
* @param { !boolean } misspelled
*/
notifyChecked(word, misspelled) {}
/**
* @param { !mojoBase.mojom.String16 } text
* @return {!Promise<{
success: !boolean,
results: !Array<!spellcheck.mojom.SpellCheckResult>,
* }>}
*/
callSpellingService(text) {}
/**
* @param { !mojoBase.mojom.String16 } text
* @return {!Promise<{
results: !Array<!spellcheck.mojom.SpellCheckResult>,
* }>}
*/
requestTextCheck(text) {}
/**
* @param { !mojoBase.mojom.String16 } word
* @return {!Promise<{
correct: !boolean,
* }>}
*/
checkSpelling(word) {}
/**
* @param { !mojoBase.mojom.String16 } word
* @return {!Promise<{
suggestions: !Array<!mojoBase.mojom.String16>,
* }>}
*/
fillSuggestionList(word) {}
/**
* @return {!Promise<{
dictionaries: !Array<!spellcheck.mojom.SpellCheckBDictLanguage>,
customWords: !Array<!string>,
enable: !boolean,
* }>}
*/
initializeDictionaries() {}
};
/**
* @export
* @implements { spellcheck.mojom.SpellCheckHostInterface }
*/
spellcheck.mojom.SpellCheckHostRemote = class {
/** @param {MojoHandle|mojo.internal.interfaceSupport.Endpoint=} handle */
constructor(handle = undefined) {
/**
* @private {!mojo.internal.interfaceSupport.InterfaceRemoteBase<!spellcheck.mojom.SpellCheckHostPendingReceiver>}
*/
this.proxy =
new mojo.internal.interfaceSupport.InterfaceRemoteBase(
spellcheck.mojom.SpellCheckHostPendingReceiver,
handle);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper<!spellcheck.mojom.SpellCheckHostPendingReceiver>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceRemoteBaseWrapper(this.proxy);
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.proxy.getConnectionErrorEventRouter();
}
/**
* @param { !mojoBase.mojom.String16 } word
* @param { !boolean } misspelled
*/
notifyChecked(
word,
misspelled) {
this.proxy.sendMessage(
0,
spellcheck.mojom.SpellCheckHost_NotifyChecked_ParamsSpec.$,
null,
[
word,
misspelled
]);
}
/**
* @param { !mojoBase.mojom.String16 } text
* @return {!Promise<{
success: !boolean,
results: !Array<!spellcheck.mojom.SpellCheckResult>,
* }>}
*/
callSpellingService(
text) {
return this.proxy.sendMessage(
1,
spellcheck.mojom.SpellCheckHost_CallSpellingService_ParamsSpec.$,
spellcheck.mojom.SpellCheckHost_CallSpellingService_ResponseParamsSpec.$,
[
text
]);
}
/**
* @param { !mojoBase.mojom.String16 } text
* @return {!Promise<{
results: !Array<!spellcheck.mojom.SpellCheckResult>,
* }>}
*/
requestTextCheck(
text) {
return this.proxy.sendMessage(
2,
spellcheck.mojom.SpellCheckHost_RequestTextCheck_ParamsSpec.$,
spellcheck.mojom.SpellCheckHost_RequestTextCheck_ResponseParamsSpec.$,
[
text
]);
}
/**
* @param { !mojoBase.mojom.String16 } word
* @return {!Promise<{
correct: !boolean,
* }>}
*/
checkSpelling(
word) {
return this.proxy.sendMessage(
3,
spellcheck.mojom.SpellCheckHost_CheckSpelling_ParamsSpec.$,
spellcheck.mojom.SpellCheckHost_CheckSpelling_ResponseParamsSpec.$,
[
word
]);
}
/**
* @param { !mojoBase.mojom.String16 } word
* @return {!Promise<{
suggestions: !Array<!mojoBase.mojom.String16>,
* }>}
*/
fillSuggestionList(
word) {
return this.proxy.sendMessage(
4,
spellcheck.mojom.SpellCheckHost_FillSuggestionList_ParamsSpec.$,
spellcheck.mojom.SpellCheckHost_FillSuggestionList_ResponseParamsSpec.$,
[
word
]);
}
/**
* @return {!Promise<{
dictionaries: !Array<!spellcheck.mojom.SpellCheckBDictLanguage>,
customWords: !Array<!string>,
enable: !boolean,
* }>}
*/
initializeDictionaries() {
return this.proxy.sendMessage(
5,
spellcheck.mojom.SpellCheckHost_InitializeDictionaries_ParamsSpec.$,
spellcheck.mojom.SpellCheckHost_InitializeDictionaries_ResponseParamsSpec.$,
[
]);
}
};
/**
* An object which receives request messages for the SpellCheckHost
* mojom interface. Must be constructed over an object which implements that
* interface.
*
* @export
*/
spellcheck.mojom.SpellCheckHostReceiver = class {
/**
* @param {!spellcheck.mojom.SpellCheckHostInterface } impl
*/
constructor(impl) {
/** @private {!mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal<!spellcheck.mojom.SpellCheckHostRemote>} */
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
spellcheck.mojom.SpellCheckHostRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!spellcheck.mojom.SpellCheckHostRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.helper_internal_.registerHandler(
0,
spellcheck.mojom.SpellCheckHost_NotifyChecked_ParamsSpec.$,
null,
impl.notifyChecked.bind(impl));
this.helper_internal_.registerHandler(
1,
spellcheck.mojom.SpellCheckHost_CallSpellingService_ParamsSpec.$,
spellcheck.mojom.SpellCheckHost_CallSpellingService_ResponseParamsSpec.$,
impl.callSpellingService.bind(impl));
this.helper_internal_.registerHandler(
2,
spellcheck.mojom.SpellCheckHost_RequestTextCheck_ParamsSpec.$,
spellcheck.mojom.SpellCheckHost_RequestTextCheck_ResponseParamsSpec.$,
impl.requestTextCheck.bind(impl));
this.helper_internal_.registerHandler(
3,
spellcheck.mojom.SpellCheckHost_CheckSpelling_ParamsSpec.$,
spellcheck.mojom.SpellCheckHost_CheckSpelling_ResponseParamsSpec.$,
impl.checkSpelling.bind(impl));
this.helper_internal_.registerHandler(
4,
spellcheck.mojom.SpellCheckHost_FillSuggestionList_ParamsSpec.$,
spellcheck.mojom.SpellCheckHost_FillSuggestionList_ResponseParamsSpec.$,
impl.fillSuggestionList.bind(impl));
this.helper_internal_.registerHandler(
5,
spellcheck.mojom.SpellCheckHost_InitializeDictionaries_ParamsSpec.$,
spellcheck.mojom.SpellCheckHost_InitializeDictionaries_ResponseParamsSpec.$,
impl.initializeDictionaries.bind(impl));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
};
/**
* @export
*/
spellcheck.mojom.SpellCheckHost = class {
/**
* @return {!string}
*/
static get $interfaceName() {
return "spellcheck.mojom.SpellCheckHost";
}
/**
* Returns a remote 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 {!spellcheck.mojom.SpellCheckHostRemote}
* @export
*/
static getRemote() {
let remote = new spellcheck.mojom.SpellCheckHostRemote;
remote.$.bindNewPipeAndPassReceiver().bindInBrowser();
return remote;
}
};
/**
* An object which receives request messages for the SpellCheckHost
* 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
*/
spellcheck.mojom.SpellCheckHostCallbackRouter = class {
constructor() {
this.helper_internal_ = new mojo.internal.interfaceSupport.InterfaceReceiverHelperInternal(
spellcheck.mojom.SpellCheckHostRemote);
/**
* @public {!mojo.internal.interfaceSupport.InterfaceReceiverHelper<!spellcheck.mojom.SpellCheckHostRemote>}
*/
this.$ = new mojo.internal.interfaceSupport.InterfaceReceiverHelper(this.helper_internal_);
this.router_ = new mojo.internal.interfaceSupport.CallbackRouter;
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.notifyChecked =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
0,
spellcheck.mojom.SpellCheckHost_NotifyChecked_ParamsSpec.$,
null,
this.notifyChecked.createReceiverHandler(false /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.callSpellingService =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
1,
spellcheck.mojom.SpellCheckHost_CallSpellingService_ParamsSpec.$,
spellcheck.mojom.SpellCheckHost_CallSpellingService_ResponseParamsSpec.$,
this.callSpellingService.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.requestTextCheck =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
2,
spellcheck.mojom.SpellCheckHost_RequestTextCheck_ParamsSpec.$,
spellcheck.mojom.SpellCheckHost_RequestTextCheck_ResponseParamsSpec.$,
this.requestTextCheck.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.checkSpelling =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
3,
spellcheck.mojom.SpellCheckHost_CheckSpelling_ParamsSpec.$,
spellcheck.mojom.SpellCheckHost_CheckSpelling_ResponseParamsSpec.$,
this.checkSpelling.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.fillSuggestionList =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
4,
spellcheck.mojom.SpellCheckHost_FillSuggestionList_ParamsSpec.$,
spellcheck.mojom.SpellCheckHost_FillSuggestionList_ResponseParamsSpec.$,
this.fillSuggestionList.createReceiverHandler(true /* expectsResponse */));
/**
* @public {!mojo.internal.interfaceSupport.InterfaceCallbackReceiver}
*/
this.initializeDictionaries =
new mojo.internal.interfaceSupport.InterfaceCallbackReceiver(
this.router_);
this.helper_internal_.registerHandler(
5,
spellcheck.mojom.SpellCheckHost_InitializeDictionaries_ParamsSpec.$,
spellcheck.mojom.SpellCheckHost_InitializeDictionaries_ResponseParamsSpec.$,
this.initializeDictionaries.createReceiverHandler(true /* expectsResponse */));
/** @public {!mojo.internal.interfaceSupport.ConnectionErrorEventRouter} */
this.onConnectionError = this.helper_internal_.getConnectionErrorEventRouter();
}
/**
* @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);
}
};
goog.provide('spellcheck.mojom.SpellCheckBDictLanguageSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
spellcheck.mojom.SpellCheckBDictLanguageSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('spellcheck.mojom.SpellCheckResultSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
spellcheck.mojom.SpellCheckResultSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('spellcheck.mojom.SpellChecker_Initialize_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
spellcheck.mojom.SpellChecker_Initialize_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('spellcheck.mojom.SpellChecker_CustomDictionaryChanged_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
spellcheck.mojom.SpellChecker_CustomDictionaryChanged_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('spellcheck.mojom.SpellCheckInitializationHost_RequestDictionary_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
spellcheck.mojom.SpellCheckInitializationHost_RequestDictionary_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('spellcheck.mojom.SpellCheckHost_NotifyChecked_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
spellcheck.mojom.SpellCheckHost_NotifyChecked_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('spellcheck.mojom.SpellCheckHost_CallSpellingService_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
spellcheck.mojom.SpellCheckHost_CallSpellingService_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('spellcheck.mojom.SpellCheckHost_CallSpellingService_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
spellcheck.mojom.SpellCheckHost_CallSpellingService_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('spellcheck.mojom.SpellCheckHost_RequestTextCheck_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
spellcheck.mojom.SpellCheckHost_RequestTextCheck_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('spellcheck.mojom.SpellCheckHost_RequestTextCheck_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
spellcheck.mojom.SpellCheckHost_RequestTextCheck_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('spellcheck.mojom.SpellCheckHost_CheckSpelling_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
spellcheck.mojom.SpellCheckHost_CheckSpelling_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('spellcheck.mojom.SpellCheckHost_CheckSpelling_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
spellcheck.mojom.SpellCheckHost_CheckSpelling_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('spellcheck.mojom.SpellCheckHost_FillSuggestionList_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
spellcheck.mojom.SpellCheckHost_FillSuggestionList_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('spellcheck.mojom.SpellCheckHost_FillSuggestionList_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
spellcheck.mojom.SpellCheckHost_FillSuggestionList_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('spellcheck.mojom.SpellCheckHost_InitializeDictionaries_ParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
spellcheck.mojom.SpellCheckHost_InitializeDictionaries_ParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
goog.provide('spellcheck.mojom.SpellCheckHost_InitializeDictionaries_ResponseParamsSpec');
/**
* @const { {$:!mojo.internal.MojomType}}
* @export
*/
spellcheck.mojom.SpellCheckHost_InitializeDictionaries_ResponseParamsSpec =
{ $: /** @type {!mojo.internal.MojomType} */ ({}) };
mojo.internal.Struct(
spellcheck.mojom.SpellCheckBDictLanguageSpec.$,
'SpellCheckBDictLanguage',
[
mojo.internal.StructField(
'file', 0,
0,
mojoBase.mojom.ReadOnlyFileSpec.$,
null,
true, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'language', 8,
0,
mojo.internal.String,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('spellcheck.mojom.SpellCheckBDictLanguage');
/** @record */
spellcheck.mojom.SpellCheckBDictLanguage = class {
constructor() {
/** @export { (mojoBase.mojom.ReadOnlyFile|undefined) } */
this.file;
/** @export { !string } */
this.language;
}
};
mojo.internal.Struct(
spellcheck.mojom.SpellCheckResultSpec.$,
'SpellCheckResult',
[
mojo.internal.StructField(
'decoration', 0,
0,
spellcheck.mojom.DecorationSpec.$,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'location', 4,
0,
mojo.internal.Int32,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'length', 8,
0,
mojo.internal.Int32,
0,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'replacements', 16,
0,
mojo.internal.Array(mojoBase.mojom.String16Spec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 32],]);
goog.provide('spellcheck.mojom.SpellCheckResult');
/** @record */
spellcheck.mojom.SpellCheckResult = class {
constructor() {
/** @export { !spellcheck.mojom.Decoration } */
this.decoration;
/** @export { !number } */
this.location;
/** @export { !number } */
this.length;
/** @export { !Array<!mojoBase.mojom.String16> } */
this.replacements;
}
};
mojo.internal.Struct(
spellcheck.mojom.SpellChecker_Initialize_ParamsSpec.$,
'SpellChecker_Initialize_Params',
[
mojo.internal.StructField(
'dictionaries', 0,
0,
mojo.internal.Array(spellcheck.mojom.SpellCheckBDictLanguageSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'customWords', 8,
0,
mojo.internal.Array(mojo.internal.String, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'enable', 16,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 32],]);
goog.provide('spellcheck.mojom.SpellChecker_Initialize_Params');
/** @record */
spellcheck.mojom.SpellChecker_Initialize_Params = class {
constructor() {
/** @export { !Array<!spellcheck.mojom.SpellCheckBDictLanguage> } */
this.dictionaries;
/** @export { !Array<!string> } */
this.customWords;
/** @export { !boolean } */
this.enable;
}
};
mojo.internal.Struct(
spellcheck.mojom.SpellChecker_CustomDictionaryChanged_ParamsSpec.$,
'SpellChecker_CustomDictionaryChanged_Params',
[
mojo.internal.StructField(
'wordsAdded', 0,
0,
mojo.internal.Array(mojo.internal.String, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'wordsRemoved', 8,
0,
mojo.internal.Array(mojo.internal.String, false),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('spellcheck.mojom.SpellChecker_CustomDictionaryChanged_Params');
/** @record */
spellcheck.mojom.SpellChecker_CustomDictionaryChanged_Params = class {
constructor() {
/** @export { !Array<!string> } */
this.wordsAdded;
/** @export { !Array<!string> } */
this.wordsRemoved;
}
};
mojo.internal.Struct(
spellcheck.mojom.SpellCheckInitializationHost_RequestDictionary_ParamsSpec.$,
'SpellCheckInitializationHost_RequestDictionary_Params',
[
],
[[0, 8],]);
goog.provide('spellcheck.mojom.SpellCheckInitializationHost_RequestDictionary_Params');
/** @record */
spellcheck.mojom.SpellCheckInitializationHost_RequestDictionary_Params = class {
constructor() {
}
};
mojo.internal.Struct(
spellcheck.mojom.SpellCheckHost_NotifyChecked_ParamsSpec.$,
'SpellCheckHost_NotifyChecked_Params',
[
mojo.internal.StructField(
'word', 0,
0,
mojoBase.mojom.String16Spec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'misspelled', 8,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('spellcheck.mojom.SpellCheckHost_NotifyChecked_Params');
/** @record */
spellcheck.mojom.SpellCheckHost_NotifyChecked_Params = class {
constructor() {
/** @export { !mojoBase.mojom.String16 } */
this.word;
/** @export { !boolean } */
this.misspelled;
}
};
mojo.internal.Struct(
spellcheck.mojom.SpellCheckHost_CallSpellingService_ParamsSpec.$,
'SpellCheckHost_CallSpellingService_Params',
[
mojo.internal.StructField(
'text', 0,
0,
mojoBase.mojom.String16Spec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('spellcheck.mojom.SpellCheckHost_CallSpellingService_Params');
/** @record */
spellcheck.mojom.SpellCheckHost_CallSpellingService_Params = class {
constructor() {
/** @export { !mojoBase.mojom.String16 } */
this.text;
}
};
mojo.internal.Struct(
spellcheck.mojom.SpellCheckHost_CallSpellingService_ResponseParamsSpec.$,
'SpellCheckHost_CallSpellingService_ResponseParams',
[
mojo.internal.StructField(
'success', 0,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'results', 8,
0,
mojo.internal.Array(spellcheck.mojom.SpellCheckResultSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 24],]);
goog.provide('spellcheck.mojom.SpellCheckHost_CallSpellingService_ResponseParams');
/** @record */
spellcheck.mojom.SpellCheckHost_CallSpellingService_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.success;
/** @export { !Array<!spellcheck.mojom.SpellCheckResult> } */
this.results;
}
};
mojo.internal.Struct(
spellcheck.mojom.SpellCheckHost_RequestTextCheck_ParamsSpec.$,
'SpellCheckHost_RequestTextCheck_Params',
[
mojo.internal.StructField(
'text', 0,
0,
mojoBase.mojom.String16Spec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('spellcheck.mojom.SpellCheckHost_RequestTextCheck_Params');
/** @record */
spellcheck.mojom.SpellCheckHost_RequestTextCheck_Params = class {
constructor() {
/** @export { !mojoBase.mojom.String16 } */
this.text;
}
};
mojo.internal.Struct(
spellcheck.mojom.SpellCheckHost_RequestTextCheck_ResponseParamsSpec.$,
'SpellCheckHost_RequestTextCheck_ResponseParams',
[
mojo.internal.StructField(
'results', 0,
0,
mojo.internal.Array(spellcheck.mojom.SpellCheckResultSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('spellcheck.mojom.SpellCheckHost_RequestTextCheck_ResponseParams');
/** @record */
spellcheck.mojom.SpellCheckHost_RequestTextCheck_ResponseParams = class {
constructor() {
/** @export { !Array<!spellcheck.mojom.SpellCheckResult> } */
this.results;
}
};
mojo.internal.Struct(
spellcheck.mojom.SpellCheckHost_CheckSpelling_ParamsSpec.$,
'SpellCheckHost_CheckSpelling_Params',
[
mojo.internal.StructField(
'word', 0,
0,
mojoBase.mojom.String16Spec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('spellcheck.mojom.SpellCheckHost_CheckSpelling_Params');
/** @record */
spellcheck.mojom.SpellCheckHost_CheckSpelling_Params = class {
constructor() {
/** @export { !mojoBase.mojom.String16 } */
this.word;
}
};
mojo.internal.Struct(
spellcheck.mojom.SpellCheckHost_CheckSpelling_ResponseParamsSpec.$,
'SpellCheckHost_CheckSpelling_ResponseParams',
[
mojo.internal.StructField(
'correct', 0,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('spellcheck.mojom.SpellCheckHost_CheckSpelling_ResponseParams');
/** @record */
spellcheck.mojom.SpellCheckHost_CheckSpelling_ResponseParams = class {
constructor() {
/** @export { !boolean } */
this.correct;
}
};
mojo.internal.Struct(
spellcheck.mojom.SpellCheckHost_FillSuggestionList_ParamsSpec.$,
'SpellCheckHost_FillSuggestionList_Params',
[
mojo.internal.StructField(
'word', 0,
0,
mojoBase.mojom.String16Spec.$,
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('spellcheck.mojom.SpellCheckHost_FillSuggestionList_Params');
/** @record */
spellcheck.mojom.SpellCheckHost_FillSuggestionList_Params = class {
constructor() {
/** @export { !mojoBase.mojom.String16 } */
this.word;
}
};
mojo.internal.Struct(
spellcheck.mojom.SpellCheckHost_FillSuggestionList_ResponseParamsSpec.$,
'SpellCheckHost_FillSuggestionList_ResponseParams',
[
mojo.internal.StructField(
'suggestions', 0,
0,
mojo.internal.Array(mojoBase.mojom.String16Spec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 16],]);
goog.provide('spellcheck.mojom.SpellCheckHost_FillSuggestionList_ResponseParams');
/** @record */
spellcheck.mojom.SpellCheckHost_FillSuggestionList_ResponseParams = class {
constructor() {
/** @export { !Array<!mojoBase.mojom.String16> } */
this.suggestions;
}
};
mojo.internal.Struct(
spellcheck.mojom.SpellCheckHost_InitializeDictionaries_ParamsSpec.$,
'SpellCheckHost_InitializeDictionaries_Params',
[
],
[[0, 8],]);
goog.provide('spellcheck.mojom.SpellCheckHost_InitializeDictionaries_Params');
/** @record */
spellcheck.mojom.SpellCheckHost_InitializeDictionaries_Params = class {
constructor() {
}
};
mojo.internal.Struct(
spellcheck.mojom.SpellCheckHost_InitializeDictionaries_ResponseParamsSpec.$,
'SpellCheckHost_InitializeDictionaries_ResponseParams',
[
mojo.internal.StructField(
'dictionaries', 0,
0,
mojo.internal.Array(spellcheck.mojom.SpellCheckBDictLanguageSpec.$, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'customWords', 8,
0,
mojo.internal.Array(mojo.internal.String, false),
null,
false, /* nullable */
0 /* minVersion */,
),
mojo.internal.StructField(
'enable', 16,
0,
mojo.internal.Bool,
false,
false, /* nullable */
0 /* minVersion */,
),
],
[[0, 32],]);
goog.provide('spellcheck.mojom.SpellCheckHost_InitializeDictionaries_ResponseParams');
/** @record */
spellcheck.mojom.SpellCheckHost_InitializeDictionaries_ResponseParams = class {
constructor() {
/** @export { !Array<!spellcheck.mojom.SpellCheckBDictLanguage> } */
this.dictionaries;
/** @export { !Array<!string> } */
this.customWords;
/** @export { !boolean } */
this.enable;
}
};