fix:inputmethod capi review

Signed-off-by: 吴成文 <wuchengwen4@huawei.com>
This commit is contained in:
吴成文 2024-08-24 11:16:51 +08:00
parent 0f52c34c6b
commit 5f2616c449
11 changed files with 339 additions and 107 deletions

View File

@ -20,15 +20,15 @@ ohos_ndk_library("libohinputmethod") {
min_compact_version = "12"
system_capability = "SystemCapability.MiscServices.InputMethodFramework"
system_capability_headers = [
"./include/inputmethod_controller_capi.h",
"./include/inputmethod_attach_options_capi.h",
"./include/inputmethod_cursor_info_capi.h",
"./include/inputmethod_inputmethod_proxy_capi.h",
"./include/inputmethod_private_command_capi.h",
"./include/inputmethod_text_avoid_info_capi.h",
"./include/inputmethod_text_config_capi.h",
"./include/inputmethod_text_editor_proxy_capi.h",
"./include/inputmethod_types_capi.h",
"./inputmethod/inputmethod_controller_capi.h",
"./inputmethod/inputmethod_attach_options_capi.h",
"./inputmethod/inputmethod_cursor_info_capi.h",
"./inputmethod/inputmethod_inputmethod_proxy_capi.h",
"./inputmethod/inputmethod_private_command_capi.h",
"./inputmethod/inputmethod_text_avoid_info_capi.h",
"./inputmethod/inputmethod_text_config_capi.h",
"./inputmethod/inputmethod_text_editor_proxy_capi.h",
"./inputmethod/inputmethod_types_capi.h",
]
}

View File

@ -12,8 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef OHOS_INPUTMETHOD_ATTACH_OPTIONS_CAPI_H
#define OHOS_INPUTMETHOD_ATTACH_OPTIONS_CAPI_H
/**
* @addtogroup InputMethod
* @{
@ -34,6 +32,8 @@
* @since 12
* @version 1.0
*/
#ifndef OHOS_INPUTMETHOD_ATTACH_OPTIONS_CAPI_H
#define OHOS_INPUTMETHOD_ATTACH_OPTIONS_CAPI_H
#include "inputmethod_types_capi.h"
#ifdef __cplusplus
extern "C" {

View File

@ -12,9 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef OHOS_INPUTMETHOD_CONTROLLER_CAPI_H
#define OHOS_INPUTMETHOD_CONTROLLER_CAPI_H
/**
* @addtogroup InputMethod
* @{
@ -35,7 +32,8 @@
* @since 12
* @version 1.0
*/
#ifndef OHOS_INPUTMETHOD_CONTROLLER_CAPI_H
#define OHOS_INPUTMETHOD_CONTROLLER_CAPI_H
#include <stdint.h>
#include <stdlib.h>

View File

@ -12,8 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef OHOS_INPUTMETHOD_CURSOR_INFO_CAPI_H
#define OHOS_INPUTMETHOD_CURSOR_INFO_CAPI_H
/**
* @addtogroup InputMethod
* @{
@ -34,6 +32,8 @@
* @since 12
* @version 1.0
*/
#ifndef OHOS_INPUTMETHOD_CURSOR_INFO_CAPI_H
#define OHOS_INPUTMETHOD_CURSOR_INFO_CAPI_H
#include "inputmethod_types_capi.h"
#ifdef __cplusplus
extern "C"{

View File

@ -12,8 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef OHOS_INPUTMETHOD_INPUTMETHOD_PROXY_CAPI_H
#define OHOS_INPUTMETHOD_INPUTMETHOD_PROXY_CAPI_H
/**
* @addtogroup InputMethod
* @{
@ -34,6 +32,8 @@
* @since 12
* @version 1.0
*/
#ifndef OHOS_INPUTMETHOD_INPUTMETHOD_PROXY_CAPI_H
#define OHOS_INPUTMETHOD_INPUTMETHOD_PROXY_CAPI_H
#include <stddef.h>
#include "inputmethod_types_capi.h"

View File

@ -12,8 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef OHOS_INPUTMETHOD_PRIVATE_COMMAND_CAPI_H
#define OHOS_INPUTMETHOD_PRIVATE_COMMAND_CAPI_H
/**
* @addtogroup InputMethod
* @{
@ -34,6 +32,8 @@
* @since 12
* @version 1.0
*/
#ifndef OHOS_INPUTMETHOD_PRIVATE_COMMAND_CAPI_H
#define OHOS_INPUTMETHOD_PRIVATE_COMMAND_CAPI_H
#include <stddef.h>
#include <stdint.h>

View File

@ -12,8 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef OHOS_INPUTMETHOD_TEXT_AVOID_INFO_CAPI_H
#define OHOS_INPUTMETHOD_TEXT_AVOID_INFO_CAPI_H
/**
* @addtogroup InputMethod
* @{
@ -34,6 +32,8 @@
* @since 12
* @version 1.0
*/
#ifndef OHOS_INPUTMETHOD_TEXT_AVOID_INFO_CAPI_H
#define OHOS_INPUTMETHOD_TEXT_AVOID_INFO_CAPI_H
#include "inputmethod_types_capi.h"
#ifdef __cplusplus
extern "C" {

View File

@ -12,8 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef OHOS_INPUTMETHOD_TEXT_CONFIG_CAPI_H
#define OHOS_INPUTMETHOD_TEXT_CONFIG_CAPI_H
/**
* @addtogroup InputMethod
* @{
@ -34,6 +32,8 @@
* @since 12
* @version 1.0
*/
#ifndef OHOS_INPUTMETHOD_TEXT_CONFIG_CAPI_H
#define OHOS_INPUTMETHOD_TEXT_CONFIG_CAPI_H
#include <stdint.h>
#include "inputmethod_cursor_info_capi.h"

View File

@ -12,8 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef OHOS_INPUTMETHOD_TEXT_EDITOR_PROXY_CAPI_H
#define OHOS_INPUTMETHOD_TEXT_EDITOR_PROXY_CAPI_H
/**
* @addtogroup InputMethod
* @{
@ -34,6 +32,8 @@
* @since 12
* @version 1.0
*/
#ifndef OHOS_INPUTMETHOD_TEXT_EDITOR_PROXY_CAPI_H
#define OHOS_INPUTMETHOD_TEXT_EDITOR_PROXY_CAPI_H
#include <stddef.h>
#include "inputmethod_private_command_capi.h"

View File

@ -12,8 +12,6 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef OHOS_INPUTMETHOD_TYPES_CAPI_H
#define OHOS_INPUTMETHOD_TYPES_CAPI_H
/**
* @addtogroup InputMethod
* @{
@ -34,6 +32,8 @@
* @since 12
* @version 1.0
*/
#ifndef OHOS_INPUTMETHOD_TYPES_CAPI_H
#define OHOS_INPUTMETHOD_TYPES_CAPI_H
#ifdef __cplusplus
extern "C"{
#endif /* __cplusplus */

View File

@ -1,80 +1,314 @@
[
{ "name": "OH_InputMethodController_Attach" },
{ "name": "OH_InputMethodController_Detach" },
{ "name": "OH_InputMethodProxy_ShowKeyboard" },
{ "name": "OH_InputMethodProxy_HideKeyboard" },
{ "name": "OH_InputMethodProxy_NotifySelectionChange" },
{ "name": "OH_InputMethodProxy_NotifyConfigurationChange" },
{ "name": "OH_InputMethodProxy_NotifyCursorUpdate" },
{ "name": "OH_InputMethodProxy_SendPrivateCommand" },
{ "name": "OH_CursorInfo_Create" },
{ "name": "OH_CursorInfo_Destroy" },
{ "name": "OH_CursorInfo_SetRect" },
{ "name": "OH_CursorInfo_GetRect" },
{ "name": "OH_TextConfig_Create" },
{ "name": "OH_TextConfig_Destroy" },
{ "name": "OH_TextConfig_SetInputType" },
{ "name": "OH_TextConfig_SetEnterKeyType" },
{ "name": "OH_TextConfig_SetPreviewTextSupport" },
{ "name": "OH_TextConfig_SetSelection" },
{ "name": "OH_TextConfig_SetWindowId" },
{ "name": "OH_TextConfig_GetInputType" },
{ "name": "OH_TextConfig_GetEnterKeyType" },
{ "name": "OH_TextConfig_IsPreviewTextSupported" },
{ "name": "OH_TextConfig_GetCursorInfo" },
{ "name": "OH_TextConfig_GetTextAvoidInfo" },
{ "name": "OH_TextConfig_GetSelection" },
{ "name": "OH_TextConfig_GetWindowId" },
{ "name": "OH_TextEditorProxy_Create" },
{ "name": "OH_TextEditorProxy_Destroy" },
{ "name": "OH_TextEditorProxy_SetGetTextConfigFunc" },
{ "name": "OH_TextEditorProxy_SetInsertTextFunc" },
{ "name": "OH_TextEditorProxy_SetDeleteForwardFunc" },
{ "name": "OH_TextEditorProxy_SetDeleteBackwardFunc" },
{ "name": "OH_TextEditorProxy_SetSendKeyboardStatusFunc" },
{ "name": "OH_TextEditorProxy_SetSendEnterKeyFunc" },
{ "name": "OH_TextEditorProxy_SetMoveCursorFunc" },
{ "name": "OH_TextEditorProxy_SetHandleSetSelectionFunc" },
{ "name": "OH_TextEditorProxy_SetHandleExtendActionFunc" },
{ "name": "OH_TextEditorProxy_SetGetLeftTextOfCursorFunc" },
{ "name": "OH_TextEditorProxy_SetGetRightTextOfCursorFunc" },
{ "name": "OH_TextEditorProxy_SetGetTextIndexAtCursorFunc" },
{ "name": "OH_TextEditorProxy_SetReceivePrivateCommandFunc" },
{ "name": "OH_TextEditorProxy_SetSetPreviewTextFunc" },
{ "name": "OH_TextEditorProxy_SetFinishTextPreviewFunc" },
{ "name": "OH_TextEditorProxy_GetGetTextConfigFunc" },
{ "name": "OH_TextEditorProxy_GetInsertTextFunc" },
{ "name": "OH_TextEditorProxy_GetDeleteForwardFunc" },
{ "name": "OH_TextEditorProxy_GetDeleteBackwardFunc" },
{ "name": "OH_TextEditorProxy_GetSendKeyboardStatusFunc" },
{ "name": "OH_TextEditorProxy_GetSendEnterKeyFunc" },
{ "name": "OH_TextEditorProxy_GetMoveCursorFunc" },
{ "name": "OH_TextEditorProxy_GetHandleSetSelectionFunc" },
{ "name": "OH_TextEditorProxy_GetHandleExtendActionFunc" },
{ "name": "OH_TextEditorProxy_GetGetLeftTextOfCursorFunc" },
{ "name": "OH_TextEditorProxy_GetGetRightTextOfCursorFunc" },
{ "name": "OH_TextEditorProxy_GetGetTextIndexAtCursorFunc" },
{ "name": "OH_TextEditorProxy_GetReceivePrivateCommandFunc" },
{ "name": "OH_TextEditorProxy_GetSetPreviewTextFunc" },
{ "name": "OH_TextEditorProxy_GetFinishTextPreviewFunc" },
{ "name": "OH_AttachOptions_Create" },
{ "name": "OH_AttachOptions_Destroy" },
{ "name": "OH_AttachOptions_IsShowKeyboard" },
{ "name": "OH_TextAvoidInfo_Create" },
{ "name": "OH_TextAvoidInfo_Destroy" },
{ "name": "OH_TextAvoidInfo_SetPositionY" },
{ "name": "OH_TextAvoidInfo_SetHeight" },
{ "name": "OH_TextAvoidInfo_GetPositionY" },
{ "name": "OH_TextAvoidInfo_GetHeight" },
{ "name": "OH_PrivateCommand_Create" },
{ "name": "OH_PrivateCommand_Destroy" },
{ "name": "OH_PrivateCommand_SetKey" },
{ "name": "OH_PrivateCommand_SetBoolValue" },
{ "name": "OH_PrivateCommand_SetIntValue" },
{ "name": "OH_PrivateCommand_SetStrValue" },
{ "name": "OH_PrivateCommand_GetKey" },
{ "name": "OH_PrivateCommand_GetValueType" },
{ "name": "OH_PrivateCommand_GetBoolValue" },
{ "name": "OH_PrivateCommand_GetIntValue" },
{ "name": "OH_PrivateCommand_GetStrValue" }
{
"first_introduced": "12",
"name": "OH_InputMethodController_Attach"
},
{
"first_introduced": "12",
"name": "OH_InputMethodController_Detach"
},
{
"first_introduced": "12",
"name": "OH_InputMethodProxy_ShowKeyboard"
},
{
"first_introduced": "12",
"name": "OH_InputMethodProxy_HideKeyboard"
},
{
"first_introduced": "12",
"name": "OH_InputMethodProxy_NotifySelectionChange"
},
{
"first_introduced": "12",
"name": "OH_InputMethodProxy_NotifyConfigurationChange"
},
{
"first_introduced": "12",
"name": "OH_InputMethodProxy_NotifyCursorUpdate"
},
{
"first_introduced": "12",
"name": "OH_InputMethodProxy_SendPrivateCommand"
},
{
"first_introduced": "12",
"name": "OH_CursorInfo_Create"
},
{
"first_introduced": "12",
"name": "OH_CursorInfo_Destroy"
},
{
"first_introduced": "12",
"name": "OH_CursorInfo_SetRect"
},
{
"first_introduced": "12",
"name": "OH_CursorInfo_GetRect"
},
{
"first_introduced": "12",
"name": "OH_TextConfig_Create"
},
{
"first_introduced": "12",
"name": "OH_TextConfig_Destroy"
},
{
"first_introduced": "12",
"name": "OH_TextConfig_SetInputType"
},
{
"first_introduced": "12",
"name": "OH_TextConfig_SetEnterKeyType"
},
{
"first_introduced": "12",
"name": "OH_TextConfig_SetPreviewTextSupport"
},
{
"first_introduced": "12",
"name": "OH_TextConfig_SetSelection"
},
{
"first_introduced": "12",
"name": "OH_TextConfig_SetWindowId"
},
{
"first_introduced": "12",
"name": "OH_TextConfig_GetInputType"
},
{
"first_introduced": "12",
"name": "OH_TextConfig_GetEnterKeyType"
},
{
"first_introduced": "12",
"name": "OH_TextConfig_IsPreviewTextSupported"
},
{
"first_introduced": "12",
"name": "OH_TextConfig_GetCursorInfo"
},
{
"first_introduced": "12",
"name": "OH_TextConfig_GetTextAvoidInfo"
},
{
"first_introduced": "12",
"name": "OH_TextConfig_GetSelection"
},
{
"first_introduced": "12",
"name": "OH_TextConfig_GetWindowId"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_Create"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_Destroy"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_SetGetTextConfigFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_SetInsertTextFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_SetDeleteForwardFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_SetDeleteBackwardFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_SetSendKeyboardStatusFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_SetSendEnterKeyFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_SetMoveCursorFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_SetHandleSetSelectionFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_SetHandleExtendActionFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_SetGetLeftTextOfCursorFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_SetGetRightTextOfCursorFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_SetGetTextIndexAtCursorFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_SetReceivePrivateCommandFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_SetSetPreviewTextFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_SetFinishTextPreviewFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_GetGetTextConfigFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_GetInsertTextFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_GetDeleteForwardFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_GetDeleteBackwardFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_GetSendKeyboardStatusFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_GetSendEnterKeyFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_GetMoveCursorFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_GetHandleSetSelectionFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_GetHandleExtendActionFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_GetGetLeftTextOfCursorFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_GetGetRightTextOfCursorFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_GetGetTextIndexAtCursorFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_GetReceivePrivateCommandFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_GetSetPreviewTextFunc"
},
{
"first_introduced": "12",
"name": "OH_TextEditorProxy_GetFinishTextPreviewFunc"
},
{
"first_introduced": "12",
"name": "OH_AttachOptions_Create"
},
{
"first_introduced": "12",
"name": "OH_AttachOptions_Destroy"
},
{
"first_introduced": "12",
"name": "OH_AttachOptions_IsShowKeyboard"
},
{
"first_introduced": "12",
"name": "OH_TextAvoidInfo_Create"
},
{
"first_introduced": "12",
"name": "OH_TextAvoidInfo_Destroy"
},
{
"first_introduced": "12",
"name": "OH_TextAvoidInfo_SetPositionY"
},
{
"first_introduced": "12",
"name": "OH_TextAvoidInfo_SetHeight"
},
{
"first_introduced": "12",
"name": "OH_TextAvoidInfo_GetPositionY"
},
{
"first_introduced": "12",
"name": "OH_TextAvoidInfo_GetHeight"
},
{
"first_introduced": "12",
"name": "OH_PrivateCommand_Create"
},
{
"first_introduced": "12",
"name": "OH_PrivateCommand_Destroy"
},
{
"first_introduced": "12",
"name": "OH_PrivateCommand_SetKey"
},
{
"first_introduced": "12",
"name": "OH_PrivateCommand_SetBoolValue"
},
{
"first_introduced": "12",
"name": "OH_PrivateCommand_SetIntValue"
},
{
"first_introduced": "12",
"name": "OH_PrivateCommand_SetStrValue"
},
{
"first_introduced": "12",
"name": "OH_PrivateCommand_GetKey"
},
{
"first_introduced": "12",
"name": "OH_PrivateCommand_GetValueType"
},
{
"first_introduced": "12",
"name": "OH_PrivateCommand_GetBoolValue"
},
{
"first_introduced": "12",
"name": "OH_PrivateCommand_GetIntValue"
},
{
"first_introduced": "12",
"name": "OH_PrivateCommand_GetStrValue"
}
]