|
Flutter Windows Embedder
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_SHELL_PLATFORM_WINDOWS_KEYBOARD_KEY_HANDLER_H_
6 #define FLUTTER_SHELL_PLATFORM_WINDOWS_KEYBOARD_KEY_HANDLER_H_
14 #include "flutter/fml/macros.h"
70 void AddDelegate(std::unique_ptr<KeyboardKeyHandlerDelegate> delegate);
115 struct PendingEvent {
117 uint64_t sequence_id;
129 void ResolvePendingEvent(uint64_t sequence_id,
bool handled);
132 void HandleMethodCall(
136 std::vector<std::unique_ptr<KeyboardKeyHandlerDelegate>> delegates_;
140 std::deque<std::unique_ptr<PendingEvent>> pending_responds_;
143 uint64_t last_sequence_id_;
146 std::unique_ptr<flutter::MethodChannel<EncodableValue>> channel_;
153 #endif // FLUTTER_SHELL_PLATFORM_WINDOWS_KEYBOARD_KEY_HANDLER_H_
void SyncModifiersIfNeeded(int modifiers_state) override
virtual std::map< uint64_t, uint64_t > GetPressedState()=0
std::function< void(bool)> KeyEventCallback
virtual void SyncModifiersIfNeeded(int modifiers_state)=0
void KeyboardHook(int key, int scancode, int action, char32_t character, bool extended, bool was_down, KeyEventCallback callback) override
void InitKeyboardChannel()
std::map< uint64_t, uint64_t > GetPressedState() override
KeyboardKeyHandler(flutter::BinaryMessenger *messenger)
virtual ~KeyboardKeyHandlerDelegate()
virtual void KeyboardHook(int key, int scancode, int action, char32_t character, bool extended, bool was_down, KeyEventCallback callback)=0
void AddDelegate(std::unique_ptr< KeyboardKeyHandlerDelegate > delegate)
FlutterDesktopBinaryReply callback