Flutter Engine
key_event_handler.cc File Reference
#include "flutter/shell/platform/glfw/key_event_handler.h"
#include <iostream>
#include "flutter/shell/platform/common/cpp/json_message_codec.h"

Go to the source code of this file.

Namespaces

 flutter
 

Variables

static constexpr char kChannelName [] = "flutter/keyevent"
 
static constexpr char kKeyCodeKey [] = "keyCode"
 
static constexpr char kKeyMapKey [] = "keymap"
 
static constexpr char kScanCodeKey [] = "scanCode"
 
static constexpr char kModifiersKey [] = "modifiers"
 
static constexpr char kTypeKey [] = "type"
 
static constexpr char kToolkitKey [] = "toolkit"
 
static constexpr char kUnicodeScalarValues [] = "unicodeScalarValues"
 
static constexpr char kLinuxKeyMap [] = "linux"
 
static constexpr char kGLFWKey [] = "glfw"
 
static constexpr char kKeyUp [] = "keyup"
 
static constexpr char kKeyDown [] = "keydown"
 
static constexpr int kTwoByteMask = 0xC0
 
static constexpr int kThreeByteMask = 0xE0
 
static constexpr int kFourByteMask = 0xF0
 

Variable Documentation

◆ first_byte_mask

int first_byte_mask

Definition at line 39 of file key_event_handler.cc.

◆ kChannelName

constexpr char kChannelName[] = "flutter/keyevent"
static

Definition at line 11 of file key_event_handler.cc.

◆ kFourByteMask

constexpr int kFourByteMask = 0xF0
static

Definition at line 30 of file key_event_handler.cc.

◆ kGLFWKey

constexpr char kGLFWKey[] = "glfw"
static

Definition at line 22 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().

◆ kKeyCodeKey

constexpr char kKeyCodeKey[] = "keyCode"
static

Definition at line 13 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().

◆ kKeyDown

constexpr char kKeyDown[] = "keydown"
static

Definition at line 25 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().

◆ kKeyMapKey

constexpr char kKeyMapKey[] = "keymap"
static

Definition at line 14 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().

◆ kKeyUp

constexpr char kKeyUp[] = "keyup"
static

Definition at line 24 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().

◆ kLinuxKeyMap

constexpr char kLinuxKeyMap[] = "linux"
static

Definition at line 21 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().

◆ kModifiersKey

constexpr char kModifiersKey[] = "modifiers"
static

Definition at line 16 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().

◆ kScanCodeKey

constexpr char kScanCodeKey[] = "scanCode"
static

Definition at line 15 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().

◆ kThreeByteMask

constexpr int kThreeByteMask = 0xE0
static

Definition at line 29 of file key_event_handler.cc.

◆ kToolkitKey

constexpr char kToolkitKey[] = "toolkit"
static

Definition at line 18 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().

◆ kTwoByteMask

constexpr int kTwoByteMask = 0xC0
static

Definition at line 28 of file key_event_handler.cc.

◆ kTypeKey

constexpr char kTypeKey[] = "type"
static

Definition at line 17 of file key_event_handler.cc.

◆ kUnicodeScalarValues

constexpr char kUnicodeScalarValues[] = "unicodeScalarValues"
static

Definition at line 19 of file key_event_handler.cc.

Referenced by flutter::KeyEventHandler::KeyboardHook().

◆ length

size_t length

Definition at line 41 of file key_event_handler.cc.

Referenced by tonic::DartByteData::DartByteData(), fml::DemangleSymbolName(), FlutterEngine::destroyContext, fl_json_method_codec_decode_response(), fl_standard_message_codec_write_value(), fl_value_new_uint8_list_from_bytes(), flutter::PlatformViewAndroidJNIImpl::FlutterViewComputePlatformResolvedLocale(), minikin::FontLanguage::FontLanguage(), tonic::DartConverter< DartConverterMapping >::FromDart(), tonic::DartConverter< std::string >::FromDart(), tonic::DartConverter< std::u16string >::FromDart(), tonic::DartConverter< std::vector< T > >::FromDart(), flutter::testing::EmbedderTestContext::GetComputePlatformResolvedLocaleCallbackHook(), flutter::GetExecutableDirectory(), flutter::GetNSDataFromMapping(), flutter::GetNSDataFromVector(), FlutterEngine::initWithScenario:withCompletion:, FlutterTextInputPlugin::initWithViewController:, flutter::FontCollection::LoadFontFromList(), flutter::Logger_PrintString(), main(), flutter::Win32Window::NarrowToWide(), flutter::Paint::Paint(), read_float64_list_value(), read_int32_list_value(), read_int64_list_value(), read_list_value(), read_map_value(), read_string_value(), read_uint8_list_value(), flutter::ByteBufferStreamReader::ReadBytes(), FlutterStandardReader::readBytes:length:, FlutterStandardReader::readData:, flutter::StandardCodecSerializer::ReadValueOfType(), FlutterStandardReader::readValueOfType:, SemanticsObject::routeName, flutter::SaveCompilationTrace(), fml::jni::StringArrayToVector(), TEST(), flutter::testing::TEST_F(), tonic::DartConverter< TypedList< kTypeName, ElemType > >::ToDart(), flutter::ByteBufferStreamWriter::WriteBytes(), and FlutterStandardWriter::writeUTF8:.