mirror of
https://gitee.com/openharmony/inputmethod_imf
synced 2025-03-01 11:35:58 +00:00
add focus check to input client
Signed-off-by: zhaolinglan <zhaolinglan@huawei.com>
This commit is contained in:
parent
b2fdbfdbea
commit
ac172121f4
@ -23,7 +23,7 @@ namespace MiscServices {
|
||||
class InputDeathRecipient : public IRemoteObject::DeathRecipient {
|
||||
public:
|
||||
InputDeathRecipient(){};
|
||||
~InputDeathRecipient(){};
|
||||
~InputDeathRecipient() = default;
|
||||
using RemoteDiedHandler = std::function<void(const wptr<IRemoteObject> &)>;
|
||||
void SetDeathRecipient(RemoteDiedHandler handler);
|
||||
void OnRemoteDied(const wptr<IRemoteObject> &remote) override;
|
||||
|
@ -20,11 +20,14 @@
|
||||
|
||||
namespace OHOS {
|
||||
namespace MiscServices {
|
||||
using FocusHandle = std::function<int32_t(int32_t, int32_t)>;
|
||||
using FocusHandle = std::function<void(int32_t, int32_t)>;
|
||||
class FocusMonitorManager {
|
||||
public:
|
||||
static FocusMonitorManager &GetInstance();
|
||||
void RegisterFocusChangedListener(const FocusHandle &handle);
|
||||
|
||||
private:
|
||||
FocusMonitorManager() = default;
|
||||
};
|
||||
} // namespace MiscServices
|
||||
} // namespace OHOS
|
||||
|
Loading…
x
Reference in New Issue
Block a user