增加SetCallingWindow接口

Signed-off-by: yadeno <hitwh2015@gmail.com>
This commit is contained in:
yadeno
2022-04-12 11:50:22 +08:00
parent abd1265eab
commit 444426764c
11 changed files with 76 additions and 3 deletions
@@ -71,6 +71,7 @@ namespace MiscServices {
int32_t GetEnterKeyType();
int32_t GetInputPattern();
void HideCurrentInput();
void SetCallingWindow(uint32_t windowId);
private:
InputMethodController();
@@ -420,5 +420,17 @@ using namespace MessageID;
IMSA_HILOGI("InputMethodController::GetInputPattern");
return inputPattern_;
}
void InputMethodController::SetCallingWindow(uint32_t windowId)
{
IMSA_HILOGI("InputMethodController::SetCallingWindow windowId = %{public}d", windowId);
if (!mAgent) {
IMSA_HILOGI("InputMethodController::SetCallingWindow mAgent is nullptr");
return;
}
mAgent->SetCallingWindow(windowId);
return;
}
} // namespace MiscServices
} // namespace OHOS