#include <gdk/gdk.h>
#include "flutter/shell/platform/linux/fl_key_responder.h"
#include "flutter/shell/platform/linux/fl_keyboard_manager.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_binary_messenger.h"
#include "flutter/shell/platform/linux/public/flutter_linux/fl_value.h"
Go to the source code of this file.
Classes | |
struct | _FlKeyChannelResponderMock |
Macros | |
#define | FL_TYPE_KEY_CHANNEL_RESPONDER fl_key_channel_responder_get_type() |
Typedefs | |
typedef FlValue *(* | FlValueConverter) (FlValue *) |
typedef struct _FlKeyChannelResponderMock | FlKeyChannelResponderMock |
Functions | |
G_DECLARE_FINAL_TYPE (FlKeyChannelResponder, fl_key_channel_responder, FL, KEY_CHANNEL_RESPONDER, GObject) | |
FlKeyChannelResponder * | fl_key_channel_responder_new (FlBinaryMessenger *messenger, FlKeyChannelResponderMock *mock=nullptr) |
#define FL_TYPE_KEY_CHANNEL_RESPONDER fl_key_channel_responder_get_type() |
Definition at line 40 of file fl_key_channel_responder.h.
typedef struct _FlKeyChannelResponderMock FlKeyChannelResponderMock |
FlKeyChannelResponderMock:
Allows mocking of FlKeyChannelResponder methods and values. Only used in unittests.
Definition at line 15 of file fl_key_channel_responder.h.
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.
References _FlKeyChannelResponderMock::channel_name, fl_basic_message_channel_new(), fl_json_message_codec_new(), and kChannelName.
Referenced by fl_keyboard_manager_new(), TEST(), and test_lock_event().
G_DECLARE_FINAL_TYPE | ( | FlKeyChannelResponder | , |
fl_key_channel_responder | , | ||
FL | , | ||
KEY_CHANNEL_RESPONDER | , | ||
GObject | |||
) |