2017-07-24 05:48:33 +00:00
|
|
|
/*
|
2017-08-15 04:43:09 +00:00
|
|
|
* Copyright (C) 2016-2017 Alex Yatskov <alex@foosoft.net>
|
2017-07-24 05:48:33 +00:00
|
|
|
* Author: Alex Yatskov <alex@foosoft.net>
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2019-09-07 19:06:15 +00:00
|
|
|
function apiOptionsGet(optionsContext) {
|
2019-12-10 02:05:15 +00:00
|
|
|
return utilBackend()._onApiOptionsGet({optionsContext});
|
2017-07-24 05:48:33 +00:00
|
|
|
}
|
|
|
|
|
2019-12-10 02:07:18 +00:00
|
|
|
function apiOptionsSet(changedOptions, optionsContext, source) {
|
|
|
|
return utilBackend()._onApiOptionsSet({changedOptions, optionsContext, source});
|
2019-10-27 18:11:23 +00:00
|
|
|
}
|
|
|
|
|
2019-09-08 17:16:05 +00:00
|
|
|
function apiOptionsGetFull() {
|
2019-12-10 02:08:11 +00:00
|
|
|
return utilBackend()._onApiOptionsGetFull();
|
2019-09-08 17:16:05 +00:00
|
|
|
}
|
|
|
|
|
2019-12-10 02:11:10 +00:00
|
|
|
function apiOptionsSave(source) {
|
|
|
|
return utilBackend()._onApiOptionsSave({source});
|
2019-09-07 20:15:18 +00:00
|
|
|
}
|
|
|
|
|
2019-12-10 02:15:37 +00:00
|
|
|
function apiTermsFind(text, details, optionsContext) {
|
|
|
|
return utilBackend()._onApiTermsFind({text, details, optionsContext});
|
2017-07-24 05:48:33 +00:00
|
|
|
}
|
|
|
|
|
2019-12-10 02:18:23 +00:00
|
|
|
function apiTextParse(text, optionsContext) {
|
|
|
|
return utilBackend()._onApiTextParse({text, optionsContext});
|
2019-10-30 01:58:24 +00:00
|
|
|
}
|
|
|
|
|
2019-12-10 02:21:17 +00:00
|
|
|
function apiTextParseMecab(text, optionsContext) {
|
|
|
|
return utilBackend()._onApiTextParseMecab({text, optionsContext});
|
2019-11-03 03:08:57 +00:00
|
|
|
}
|
|
|
|
|
2019-12-10 02:13:03 +00:00
|
|
|
function apiKanjiFind(text, optionsContext) {
|
|
|
|
return utilBackend()._onApiKanjiFind({text, optionsContext});
|
2017-07-24 05:48:33 +00:00
|
|
|
}
|
|
|
|
|
2019-12-10 02:25:34 +00:00
|
|
|
function apiDefinitionAdd(definition, mode, context, optionsContext) {
|
|
|
|
return utilBackend()._onApiDefinitionAdd({definition, mode, context, optionsContext});
|
2017-07-24 05:48:33 +00:00
|
|
|
}
|
|
|
|
|
2019-12-10 02:28:27 +00:00
|
|
|
function apiDefinitionsAddable(definitions, modes, optionsContext) {
|
|
|
|
return utilBackend()._onApiDefinitionsAddable({definitions, modes, optionsContext});
|
2017-07-24 05:48:33 +00:00
|
|
|
}
|
|
|
|
|
2019-12-10 02:29:48 +00:00
|
|
|
function apiNoteView(noteId) {
|
|
|
|
return utilBackend()._onApiNoteView({noteId});
|
2017-07-24 05:48:33 +00:00
|
|
|
}
|
|
|
|
|
2019-12-10 02:31:03 +00:00
|
|
|
function apiTemplateRender(template, data, dynamic) {
|
|
|
|
return utilBackend()._onApiTemplateRender({template, data, dynamic});
|
2017-09-06 03:35:39 +00:00
|
|
|
}
|
|
|
|
|
2019-12-10 02:41:24 +00:00
|
|
|
function apiCommandExec(command, params) {
|
|
|
|
return utilBackend()._onApiCommandExec({command, params});
|
2017-08-06 02:02:03 +00:00
|
|
|
}
|
|
|
|
|
2019-12-10 02:46:24 +00:00
|
|
|
function apiAudioGetUrl(definition, source, optionsContext) {
|
|
|
|
return utilBackend()._onApiAudioGetUrl({definition, source, optionsContext});
|
2017-08-16 04:36:30 +00:00
|
|
|
}
|
2019-08-15 23:39:58 +00:00
|
|
|
|
|
|
|
function apiScreenshotGet(options, sender) {
|
2019-12-10 02:54:03 +00:00
|
|
|
return utilBackend()._onApiScreenshotGet({options}, sender);
|
2019-08-15 23:39:58 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function apiForward(action, params, sender) {
|
2019-12-10 02:54:45 +00:00
|
|
|
return utilBackend()._onApiForward({action, params}, sender);
|
2019-08-15 23:39:58 +00:00
|
|
|
}
|
2019-08-19 00:51:19 +00:00
|
|
|
|
|
|
|
function apiFrameInformationGet(sender) {
|
2019-12-10 02:55:45 +00:00
|
|
|
return utilBackend()._onApiFrameInformationGet(null, sender);
|
2019-08-19 00:51:19 +00:00
|
|
|
}
|
2019-10-13 15:46:27 +00:00
|
|
|
|
|
|
|
function apiInjectStylesheet(css, sender) {
|
2019-12-10 02:56:47 +00:00
|
|
|
return utilBackend()._onApiInjectStylesheet({css}, sender);
|
2019-10-13 15:46:27 +00:00
|
|
|
}
|
2019-10-13 21:20:55 +00:00
|
|
|
|
2019-12-10 02:58:32 +00:00
|
|
|
function apiGetEnvironmentInfo() {
|
|
|
|
return utilBackend()._onApiGetEnvironmentInfo();
|
2019-10-13 21:20:55 +00:00
|
|
|
}
|
2019-10-20 02:28:23 +00:00
|
|
|
|
2019-12-10 02:59:18 +00:00
|
|
|
function apiClipboardGet() {
|
|
|
|
return utilBackend()._onApiClipboardGet();
|
2019-10-27 13:46:27 +00:00
|
|
|
}
|