Add API calls for optionsGetFull and optionsSave
This commit is contained in:
parent
4177b63726
commit
7addf5a2dd
@ -190,10 +190,18 @@ class Backend {
|
|||||||
return apiOptionsGet(optionsContext);
|
return apiOptionsGet(optionsContext);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_onApiOptionsGetFull() {
|
||||||
|
return apiOptionsGetFull();
|
||||||
|
}
|
||||||
|
|
||||||
_onApiOptionsSet({changedOptions, optionsContext, source}) {
|
_onApiOptionsSet({changedOptions, optionsContext, source}) {
|
||||||
return apiOptionsSet(changedOptions, optionsContext, source);
|
return apiOptionsSet(changedOptions, optionsContext, source);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
_onApiOptionsSave({source}) {
|
||||||
|
return apiOptionsSave(source);
|
||||||
|
}
|
||||||
|
|
||||||
_onApiKanjiFind({text, optionsContext}) {
|
_onApiKanjiFind({text, optionsContext}) {
|
||||||
return apiKanjiFind(text, optionsContext);
|
return apiKanjiFind(text, optionsContext);
|
||||||
}
|
}
|
||||||
@ -261,7 +269,9 @@ class Backend {
|
|||||||
|
|
||||||
Backend._messageHandlers = new Map([
|
Backend._messageHandlers = new Map([
|
||||||
['optionsGet', (self, ...args) => self._onApiOptionsGet(...args)],
|
['optionsGet', (self, ...args) => self._onApiOptionsGet(...args)],
|
||||||
|
['optionsGetFull', (self, ...args) => self._onApiOptionsGetFull(...args)],
|
||||||
['optionsSet', (self, ...args) => self._onApiOptionsSet(...args)],
|
['optionsSet', (self, ...args) => self._onApiOptionsSet(...args)],
|
||||||
|
['optionsSave', (self, ...args) => self._onApiOptionsSave(...args)],
|
||||||
['kanjiFind', (self, ...args) => self._onApiKanjiFind(...args)],
|
['kanjiFind', (self, ...args) => self._onApiKanjiFind(...args)],
|
||||||
['termsFind', (self, ...args) => self._onApiTermsFind(...args)],
|
['termsFind', (self, ...args) => self._onApiTermsFind(...args)],
|
||||||
['textParse', (self, ...args) => self._onApiTextParse(...args)],
|
['textParse', (self, ...args) => self._onApiTextParse(...args)],
|
||||||
|
@ -21,10 +21,18 @@ function apiOptionsGet(optionsContext) {
|
|||||||
return _apiInvoke('optionsGet', {optionsContext});
|
return _apiInvoke('optionsGet', {optionsContext});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function apiOptionsGetFull() {
|
||||||
|
return _apiInvoke('optionsGetFull');
|
||||||
|
}
|
||||||
|
|
||||||
function apiOptionsSet(changedOptions, optionsContext, source) {
|
function apiOptionsSet(changedOptions, optionsContext, source) {
|
||||||
return _apiInvoke('optionsSet', {changedOptions, optionsContext, source});
|
return _apiInvoke('optionsSet', {changedOptions, optionsContext, source});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function apiOptionsSave(source) {
|
||||||
|
return _apiInvoke('optionsSave', {source});
|
||||||
|
}
|
||||||
|
|
||||||
function apiTermsFind(text, details, optionsContext) {
|
function apiTermsFind(text, details, optionsContext) {
|
||||||
return _apiInvoke('termsFind', {text, details, optionsContext});
|
return _apiInvoke('termsFind', {text, details, optionsContext});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user