cherry-pick 108 to 3.1release

This commit is contained in:
openharmony_ci
2022-04-14 09:26:05 +00:00
committed by gaoxiang
parent c97cc698d8
commit e6f0cf0f72
12 changed files with 83 additions and 10 deletions
@@ -71,6 +71,8 @@ namespace MiscServices {
int32_t GetEnterKeyType();
int32_t GetInputPattern();
void HideCurrentInput();
void SetCallingWindow(uint32_t windowId);
private:
InputMethodController();
~InputMethodController();
@@ -108,4 +110,4 @@ namespace MiscServices {
};
}
}
#endif
#endif
@@ -416,5 +416,16 @@ 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