mirror of
https://github.com/openharmony/miscservices_inputmethod.git
synced 2026-08-26 17:06:35 -04:00
cherry-pick 108 to 3.1release
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user