/third_party/flutter/flutter/packages/flutter/test/services/ |
D | raw_keyboard_test.dart | 12 final ModifierKey key; 19 …d.modifierAlt | RawKeyEventDataAndroid.modifierLeftAlt: _ModifierCheck(ModifierKey.altModifier, Ke… 20 ….modifierAlt | RawKeyEventDataAndroid.modifierRightAlt: _ModifierCheck(ModifierKey.altModifier, Ke… 21 …difierShift | RawKeyEventDataAndroid.modifierLeftShift: _ModifierCheck(ModifierKey.shiftModifier, … 22 …ifierShift | RawKeyEventDataAndroid.modifierRightShift: _ModifierCheck(ModifierKey.shiftModifier, … 23 … RawKeyEventDataAndroid.modifierSym: _ModifierCheck(ModifierKey.symbolModifier, KeyboardSide.all), 24 …RawKeyEventDataAndroid.modifierFunction: _ModifierCheck(ModifierKey.functionModifier, KeyboardSide… 25 …erControl | RawKeyEventDataAndroid.modifierLeftControl: _ModifierCheck(ModifierKey.controlModifier… 26 …rControl | RawKeyEventDataAndroid.modifierRightControl: _ModifierCheck(ModifierKey.controlModifier… 27 …modifierMeta | RawKeyEventDataAndroid.modifierLeftMeta: _ModifierCheck(ModifierKey.metaModifier, K… [all …]
|
/third_party/flutter/skia/experimental/editor/ |
D | editor_application.cpp | 36 static SkString modifiers_desc(ModifierKey m) { in modifiers_desc() 38 #define M(X) if (m & ModifierKey::k ## X ##) { s.append(" {" #X "}"); } in modifiers_desc() 44 static void debug_on_char(SkUnichar c, ModifierKey modifiers) { in debug_on_char() 53 static void debug_on_key(sk_app::Window::Key key, InputState, ModifierKey modi) { in debug_on_key() 153 bool onMouseWheel(float delta, ModifierKey) override { in onMouseWheel() 158 bool onMouse(int x, int y, InputState state, ModifierKey modifiers) override { in onMouse() 165 bool shiftOrDrag = skstd::Any(modifiers & ModifierKey::kShift) || !mouseDown; in onMouse() 172 bool onChar(SkUnichar c, ModifierKey modi) override { in onChar() 174 modi &= ~ModifierKey::kFirstPress; in onChar() 175 if (!Any(modi & (ModifierKey::kControl | in onChar() [all …]
|
/third_party/flutter/flutter/packages/flutter/lib/src/services/ |
D | raw_keyboard_linux.dart | 115 bool isModifierPressed(ModifierKey key, {KeyboardSide side = KeyboardSide.any}) { 120 KeyboardSide getModifierSide(ModifierKey key) { 149 KeyboardSide getModifierSide(ModifierKey key); 151 /// Returns true if the given [ModifierKey] was pressed at the time of this 153 bool isModifierPressed(ModifierKey key, int modifiers, {KeyboardSide side = KeyboardSide.any}); 206 bool isModifierPressed(ModifierKey key, int modifiers, {KeyboardSide side = KeyboardSide.any}) { 208 case ModifierKey.controlModifier: 210 case ModifierKey.shiftModifier: 212 case ModifierKey.altModifier: 214 case ModifierKey.metaModifier: [all …]
|
D | raw_keyboard_macos.dart | 139 bool isModifierPressed(ModifierKey key, {KeyboardSide side = KeyboardSide.any}) { 142 case ModifierKey.controlModifier: 144 case ModifierKey.shiftModifier: 146 case ModifierKey.altModifier: 148 case ModifierKey.metaModifier: 150 case ModifierKey.capsLockModifier: 152 case ModifierKey.numLockModifier: 154 case ModifierKey.functionModifier: 156 case ModifierKey.symbolModifier: 157 case ModifierKey.scrollLockModifier: [all …]
|
D | raw_keyboard_fuchsia.dart | 114 bool isModifierPressed(ModifierKey key, { KeyboardSide side = KeyboardSide.any }) { 117 case ModifierKey.controlModifier: 119 case ModifierKey.shiftModifier: 121 case ModifierKey.altModifier: 123 case ModifierKey.metaModifier: 125 case ModifierKey.capsLockModifier: 127 case ModifierKey.numLockModifier: 128 case ModifierKey.scrollLockModifier: 129 case ModifierKey.functionModifier: 130 case ModifierKey.symbolModifier: [all …]
|
D | raw_keyboard_android.dart | 224 bool isModifierPressed(ModifierKey key, { KeyboardSide side = KeyboardSide.any }) { 227 case ModifierKey.controlModifier: 229 case ModifierKey.shiftModifier: 231 case ModifierKey.altModifier: 233 case ModifierKey.metaModifier: 235 case ModifierKey.capsLockModifier: 237 case ModifierKey.numLockModifier: 239 case ModifierKey.scrollLockModifier: 241 case ModifierKey.functionModifier: 243 case ModifierKey.symbolModifier: [all …]
|
/third_party/skia/modules/skplaintexteditor/app/ |
D | editor_application.cpp | 39 static SkString modifiers_desc(skui::ModifierKey m) { in modifiers_desc() 41 #define M(X) if (m & skui::ModifierKey::k ## X ##) { s.append(" {" #X "}"); } in modifiers_desc() 47 static void debug_on_char(SkUnichar c, skui::ModifierKey modifiers) { in debug_on_char() 56 static void debug_on_key(skui::Key key, skui::InputState, skui::ModifierKey modi) { in debug_on_key() 172 bool onMouseWheel(float delta, skui::ModifierKey) override { in onMouseWheel() 177 bool onMouse(int x, int y, skui::InputState state, skui::ModifierKey modifiers) override { in onMouse() 184 bool shiftOrDrag = sknonstd::Any(modifiers & skui::ModifierKey::kShift) || !mouseDown; in onMouse() 191 bool onChar(SkUnichar c, skui::ModifierKey modi) override { in onChar() 193 modi &= ~skui::ModifierKey::kFirstPress; in onChar() 194 if (!Any(modi & (skui::ModifierKey::kControl | in onChar() [all …]
|
/third_party/skia/tools/sk_app/mac/ |
D | Window_mac.mm | 13 #include "tools/skui/ModifierKey.h" 249 static skui::ModifierKey get_modifiers(const NSEvent* event) { 251 skui::ModifierKey modifiers = skui::ModifierKey::kNone; 254 modifiers |= skui::ModifierKey::kCommand; 257 modifiers |= skui::ModifierKey::kShift; 260 modifiers |= skui::ModifierKey::kControl; 263 modifiers |= skui::ModifierKey::kOption; 267 modifiers |= skui::ModifierKey::kFirstPress; 279 skui::ModifierKey fLastModifiers; 333 - (skui::ModifierKey) updateModifierKeys:(NSEvent*) event { [all …]
|
/third_party/skia/modules/canvaskit/ |
D | viewer_bindings.cpp | 65 enum_<skui::ModifierKey>("ModifierKey") in EMSCRIPTEN_BINDINGS() 66 .value("None", skui::ModifierKey::kNone) in EMSCRIPTEN_BINDINGS() 67 .value("Shift", skui::ModifierKey::kShift) in EMSCRIPTEN_BINDINGS() 68 .value("Control", skui::ModifierKey::kControl) in EMSCRIPTEN_BINDINGS() 69 .value("Option", skui::ModifierKey::kOption) in EMSCRIPTEN_BINDINGS() 70 .value("Command", skui::ModifierKey::kCommand) in EMSCRIPTEN_BINDINGS() 71 .value("FirstPress", skui::ModifierKey::kFirstPress); in EMSCRIPTEN_BINDINGS()
|
/third_party/skia/experimental/sktext/editor/ |
D | Editor.cpp | 127 bool Editor::onChar(SkUnichar c, skui::ModifierKey modi) { in onChar() 130 modi &= ~skui::ModifierKey::kFirstPress; in onChar() 131 if (!Any(modi & (skui::ModifierKey::kControl | in onChar() 132 skui::ModifierKey::kOption | in onChar() 133 skui::ModifierKey::kCommand))) { in onChar() 139 static constexpr skui::ModifierKey kCommandOrControl = in onChar() 140 skui::ModifierKey::kCommand | skui::ModifierKey::kControl; in onChar() 203 bool Editor::onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers) { in onKey() 209 skui::ModifierKey ctrlAltCmd = modifiers & (skui::ModifierKey::kControl | in onKey() 210 skui::ModifierKey::kOption | in onKey() [all …]
|
D | Editor.h | 43 bool onMouse(int x, int y, skui::InputState state, skui::ModifierKey modifiers) override; 44 bool onKey(skui::Key, skui::InputState, skui::ModifierKey) override; 45 bool onChar(SkUnichar c, skui::ModifierKey modifier) override;
|
/third_party/skia/tools/sk_app/ |
D | Window.h | 104 virtual bool onChar(SkUnichar c, skui::ModifierKey) { return false; } in onChar() argument 105 virtual bool onKey(skui::Key, skui::InputState, skui::ModifierKey) { return false; } in onKey() argument 106 virtual bool onMouse(int x, int y, skui::InputState, skui::ModifierKey) { return false; } in onMouse() argument 107 virtual bool onMouseWheel(float delta, skui::ModifierKey) { return false; } in onMouseWheel() argument 128 bool onChar(SkUnichar c, skui::ModifierKey modifiers); 129 bool onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers); 130 bool onMouse(int x, int y, skui::InputState state, skui::ModifierKey modifiers); 131 bool onMouseWheel(float delta, skui::ModifierKey modifiers);
|
D | Window.cpp | 43 bool Window::onChar(SkUnichar c, skui::ModifierKey modifiers) { in onChar() 47 bool Window::onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers) { in onKey() 51 bool Window::onMouse(int x, int y, skui::InputState state, skui::ModifierKey modifiers) { in onMouse() 55 bool Window::onMouseWheel(float delta, skui::ModifierKey modifiers) { in onMouseWheel()
|
/third_party/flutter/skia/tools/sk_app/ |
D | Window.h | 139 virtual bool onChar(SkUnichar c, ModifierKey modifiers) { return false; } in onChar() 140 virtual bool onKey(Key key, InputState state, ModifierKey modifiers) { return false; } in onKey() 141 … virtual bool onMouse(int x, int y, InputState state, ModifierKey modifiers) { return false; } in onMouse() 142 virtual bool onMouseWheel(float delta, ModifierKey modifiers) { return false; } in onMouseWheel() 160 bool onChar(SkUnichar c, ModifierKey modifiers); 161 bool onKey(Key key, InputState state, ModifierKey modifiers); 162 bool onMouse(int x, int y, InputState state, ModifierKey modifiers); 163 bool onMouseWheel(float delta, ModifierKey modifiers);
|
D | Window.cpp | 43 bool Window::onChar(SkUnichar c, ModifierKey modifiers) { in onChar() 47 bool Window::onKey(Key key, InputState state, ModifierKey modifiers) { in onKey() 51 bool Window::onMouse(int x, int y, InputState state, ModifierKey modifiers) { in onMouse() 55 bool Window::onMouseWheel(float delta, ModifierKey modifiers) { in onMouseWheel()
|
/third_party/flutter/skia/tools/sk_app/win/ |
D | Window_win.cpp | 163 static ModifierKey get_modifiers(UINT message, WPARAM wParam, LPARAM lParam) { in get_modifiers() 164 ModifierKey modifiers = ModifierKey::kNone; in get_modifiers() 170 modifiers |= ModifierKey::kFirstPress; in get_modifiers() 173 modifiers |= ModifierKey::kOption; in get_modifiers() 180 modifiers |= ModifierKey::kFirstPress; in get_modifiers() 183 modifiers |= ModifierKey::kOption; in get_modifiers() 190 modifiers |= ModifierKey::kOption; in get_modifiers() 199 modifiers |= ModifierKey::kControl; in get_modifiers() 202 modifiers |= ModifierKey::kShift; in get_modifiers()
|
/third_party/skia/tools/sk_app/win/ |
D | Window_win.cpp | 163 static skui::ModifierKey get_modifiers(UINT message, WPARAM wParam, LPARAM lParam) { in get_modifiers() 164 skui::ModifierKey modifiers = skui::ModifierKey::kNone; in get_modifiers() 170 modifiers |= skui::ModifierKey::kFirstPress; in get_modifiers() 173 modifiers |= skui::ModifierKey::kOption; in get_modifiers() 180 modifiers |= skui::ModifierKey::kFirstPress; in get_modifiers() 183 modifiers |= skui::ModifierKey::kOption; in get_modifiers() 190 modifiers |= skui::ModifierKey::kOption; in get_modifiers() 199 modifiers |= skui::ModifierKey::kControl; in get_modifiers() 202 modifiers |= skui::ModifierKey::kShift; in get_modifiers()
|
/third_party/flutter/skia/tools/sk_app/ios/ |
D | Window_ios.cpp | 139 static ModifierKey get_modifiers(const SDL_Event& event) { in get_modifiers() 142 ModifierKey fSkMask; in get_modifiers() 144 { KMOD_SHIFT, ModifierKey::kShift }, in get_modifiers() 145 { KMOD_CTRL, ModifierKey::kControl }, in get_modifiers() 146 { KMOD_ALT, ModifierKey::kOption }, in get_modifiers() 149 ModifierKey modifiers = ModifierKey::kNone; in get_modifiers() 161 modifiers |= ModifierKey::kFirstPress; in get_modifiers()
|
/third_party/flutter/skia/samplecode/ |
D | Sample.h | 63 ModifierKey fModifierKeys = ModifierKey::kNone; 66 bool mouse(SkPoint point, InputState clickState, ModifierKey modifierKeys); 78 virtual Click* onFindClickHandler(SkScalar x, SkScalar y, ModifierKey modi);
|
/third_party/skia/samplecode/ |
D | Sample.h | 68 skui::ModifierKey fModifierKeys = skui::ModifierKey::kNone; 74 bool mouse(SkPoint point, skui::InputState clickState, skui::ModifierKey modifierKeys); 86 virtual Click* onFindClickHandler(SkScalar x, SkScalar y, skui::ModifierKey modi);
|
/third_party/flutter/skia/tools/sk_app/mac/ |
D | Window_mac.mm | 9 #include "tools/ModifierKey.h" 233 static ModifierKey get_modifiers(const NSEvent* event) { 235 ModifierKey modifiers = ModifierKey::kNone; 238 modifiers |= ModifierKey::kCommand; 241 modifiers |= ModifierKey::kShift; 244 modifiers |= ModifierKey::kControl; 247 modifiers |= ModifierKey::kOption; 252 modifiers |= ModifierKey::kFirstPress;
|
/third_party/flutter/skia/tools/sk_app/unix/ |
D | Window_unix.cpp | 233 static ModifierKey get_modifiers(const XEvent& event) { in get_modifiers() 236 ModifierKey fSkMask; in get_modifiers() 238 { ShiftMask, ModifierKey::kShift }, in get_modifiers() 239 { ControlMask, ModifierKey::kControl }, in get_modifiers() 240 { Mod1Mask, ModifierKey::kOption }, in get_modifiers() 243 ModifierKey modifiers = ModifierKey::kNone; in get_modifiers()
|
/third_party/skia/tools/sk_app/ios/ |
D | Window_ios.mm | 157 skui::InputState::kDown, skui::ModifierKey::kNone); 161 skui::InputState::kMove, skui::ModifierKey::kNone); 165 skui::InputState::kUp, skui::ModifierKey::kNone); 169 skui::InputState::kUp, skui::ModifierKey::kNone); 181 skui::InputState::kDown, skui::ModifierKey::kNone); 183 skui::InputState::kUp, skui::ModifierKey::kNone);
|
/third_party/skia/tools/viewer/ |
D | ImGuiLayer.h | 129 bool onMouse(int x, int y, skui::InputState state, skui::ModifierKey modifiers) override; 130 bool onMouseWheel(float delta, skui::ModifierKey modifiers) override; 131 bool onKey(skui::Key key, skui::InputState state, skui::ModifierKey modifiers) override; 132 bool onChar(SkUnichar c, skui::ModifierKey modifiers) override;
|
/third_party/flutter/skia/tools/viewer/ |
D | ImGuiLayer.h | 126 bool onMouse(int x, int y, InputState state, ModifierKey modifiers) override; 127 bool onMouseWheel(float delta, ModifierKey modifiers) override; 128 bool onKey(sk_app::Window::Key key, InputState state, ModifierKey modifiers) override; 129 bool onChar(SkUnichar c, ModifierKey modifiers) override;
|