Flutter Engine
The Flutter Engine
|
#include "flutter/shell/platform/linux/fl_key_channel_responder.h"
#include <gtk/gtk.h>
#include <cinttypes>
#include "flutter/shell/platform/linux/public/flutter_linux/fl_basic_message_channel.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_json_message_codec.h"
Go to the source code of this file.
Classes | |
struct | _FlKeyChannelUserData |
struct | _FlKeyChannelResponder |
Functions | |
G_DECLARE_FINAL_TYPE (FlKeyChannelUserData, fl_key_channel_user_data, FL, KEY_CHANNEL_USER_DATA, GObject) | |
static void | fl_key_channel_user_data_dispose (GObject *object) |
static void | fl_key_channel_user_data_class_init (FlKeyChannelUserDataClass *klass) |
static void | fl_key_channel_user_data_init (FlKeyChannelUserData *self) |
static FlKeyChannelUserData * | fl_key_channel_user_data_new (FlKeyChannelResponder *responder, FlKeyResponderAsyncCallback callback, gpointer user_data) |
static void | fl_key_channel_responder_iface_init (FlKeyResponderInterface *iface) |
G_DEFINE_TYPE_WITH_CODE (FlKeyChannelResponder, fl_key_channel_responder, G_TYPE_OBJECT, G_IMPLEMENT_INTERFACE(FL_TYPE_KEY_RESPONDER, fl_key_channel_responder_iface_init)) static void fl_key_channel_responder_handle_event(FlKeyResponder *responder | |
static void | handle_response (GObject *object, GAsyncResult *result, gpointer user_data) |
static void | fl_key_channel_responder_dispose (GObject *object) |
static void | fl_key_channel_responder_class_init (FlKeyChannelResponderClass *klass) |
static void | fl_key_channel_responder_init (FlKeyChannelResponder *self) |
FlKeyChannelResponder * | fl_key_channel_responder_new (FlBinaryMessenger *messenger, FlKeyChannelResponderMock *mock) |
static void | fl_key_channel_responder_handle_event (FlKeyResponder *responder, FlKeyEvent *event, uint64_t specified_logical_key, FlKeyResponderAsyncCallback callback, gpointer user_data) |
Variables | |
static constexpr char | kChannelName [] = "flutter/keyevent" |
static constexpr char | kTypeKey [] = "type" |
static constexpr char | kTypeValueUp [] = "keyup" |
static constexpr char | kTypeValueDown [] = "keydown" |
static constexpr char | kKeymapKey [] = "keymap" |
static constexpr char | kKeyCodeKey [] = "keyCode" |
static constexpr char | kScanCodeKey [] = "scanCode" |
static constexpr char | kModifiersKey [] = "modifiers" |
static constexpr char | kToolkitKey [] = "toolkit" |
static constexpr char | kSpecifiedLogicalKey [] = "specifiedLogicalKey" |
static constexpr char | kUnicodeScalarValuesKey [] = "unicodeScalarValues" |
static constexpr char | kGtkToolkit [] = "gtk" |
static constexpr char | kLinuxKeymap [] = "linux" |
FlKeyEvent * | event |
FlKeyEvent uint64_t | specified_logical_key |
FlKeyEvent uint64_t FlKeyResponderAsyncCallback | callback |
FlKeyEvent uint64_t FlKeyResponderAsyncCallback gpointer | user_data |
|
static |
Definition at line 173 of file fl_key_channel_responder.cc.
|
static |
Definition at line 164 of file fl_key_channel_responder.cc.
|
static |
Definition at line 205 of file fl_key_channel_responder.cc.
|
static |
Definition at line 123 of file fl_key_channel_responder.cc.
|
static |
Definition at line 179 of file fl_key_channel_responder.cc.
FlKeyChannelResponder * fl_key_channel_responder_new | ( | FlBinaryMessenger * | messenger, |
FlKeyChannelResponderMock * | mock = nullptr |
||
) |
FlKeyChannelResponder:
A #FlKeyResponder that handles events by sending the raw event data in JSON through the message channel.
This class communicates with the RawKeyboard API in the framework. fl_key_channel_responder_new: @messenger: the messenger that the message channel should be built on. @mock: options to mock several functionalities. Only used in unittests.
Creates a new #FlKeyChannelResponder.
Returns: a new #FlKeyChannelResponder.
Definition at line 186 of file fl_key_channel_responder.cc.
|
static |
Definition at line 68 of file fl_key_channel_responder.cc.
|
static |
Definition at line 56 of file fl_key_channel_responder.cc.
|
static |
Definition at line 74 of file fl_key_channel_responder.cc.
|
static |
Definition at line 79 of file fl_key_channel_responder.cc.
G_DECLARE_FINAL_TYPE | ( | FlKeyChannelUserData | , |
fl_key_channel_user_data | , | ||
FL | , | ||
KEY_CHANNEL_USER_DATA | , | ||
GObject | |||
) |
FlKeyChannelUserData: The user_data used when #FlKeyChannelResponder sends message through the channel.
G_DEFINE_TYPE_WITH_CODE | ( | FlKeyChannelResponder | , |
fl_key_channel_responder | , | ||
G_TYPE_OBJECT | , | ||
G_IMPLEMENT_INTERFACE(FL_TYPE_KEY_RESPONDER, fl_key_channel_responder_iface_init) | |||
) |
|
static |
Definition at line 132 of file fl_key_channel_responder.cc.
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback |
Definition at line 120 of file fl_key_channel_responder.cc.
FlKeyEvent* event |
Definition at line 118 of file fl_key_channel_responder.cc.
|
staticconstexpr |
Definition at line 13 of file fl_key_channel_responder.cc.
|
staticconstexpr |
Definition at line 25 of file fl_key_channel_responder.cc.
|
staticconstexpr |
Definition at line 18 of file fl_key_channel_responder.cc.
|
staticconstexpr |
Definition at line 17 of file fl_key_channel_responder.cc.
|
staticconstexpr |
Definition at line 26 of file fl_key_channel_responder.cc.
|
staticconstexpr |
Definition at line 20 of file fl_key_channel_responder.cc.
|
staticconstexpr |
Definition at line 19 of file fl_key_channel_responder.cc.
|
staticconstexpr |
Definition at line 22 of file fl_key_channel_responder.cc.
|
staticconstexpr |
Definition at line 21 of file fl_key_channel_responder.cc.
|
staticconstexpr |
Definition at line 14 of file fl_key_channel_responder.cc.
|
staticconstexpr |
Definition at line 16 of file fl_key_channel_responder.cc.
|
staticconstexpr |
Definition at line 15 of file fl_key_channel_responder.cc.
|
staticconstexpr |
Definition at line 23 of file fl_key_channel_responder.cc.
FlKeyEvent uint64_t specified_logical_key |
Definition at line 119 of file fl_key_channel_responder.cc.
FlKeyEvent uint64_t FlKeyResponderAsyncCallback gpointer user_data |
Definition at line 121 of file fl_key_channel_responder.cc.