HomeSort by relevance Sort by last modified time
    Searched full:usb_keycode (Results 1 - 24 of 24) sorted by null

  /external/chromium_org/ui/events/keycodes/dom4/
keycode_converter.cc 80 return usb_keycode_map[0].usb_keycode;
83 uint16_t KeycodeConverter::UsbKeycodeToNativeKeycode(uint32_t usb_keycode) {
85 if (usb_keycode == 0x070032) // non-US hash.
86 usb_keycode = 0x070031; // US backslash.
88 if (usb_keycode == 0x070046) // PrintScreen.
89 usb_keycode = 0x070068; // F13.
93 if (usb_keycode_map[i].usb_keycode == usb_keycode)
102 return usb_keycode_map[i].usb_keycode;
107 const char* KeycodeConverter::UsbKeycodeToCode(uint32_t usb_keycode) {
    [all...]
keycode_converter_unittest.cc 35 EXPECT_EQ(key_converter->InvalidUsbKeycode(), keycode_map[0].usb_keycode);
54 key_converter->UsbKeycodeToNativeKeycode(entry->usb_keycode));
69 EXPECT_EQ(0U, usb_to_native.count(entry->usb_keycode))
71 << std::setw(6) << entry->usb_keycode
75 << std::setw(4) << usb_to_native[entry->usb_keycode]
77 usb_to_native[entry->usb_keycode] = entry->native_keycode;
82 << std::setw(6) << entry->usb_keycode
86 native_to_usb[entry->native_keycode] = entry->usb_keycode;
keycode_converter.h 23 uint32_t usb_keycode; member in struct:ui::__anon14840
65 uint16_t UsbKeycodeToNativeKeycode(uint32_t usb_keycode);
72 const char* UsbKeycodeToCode(uint32_t usb_keycode);
  /external/chromium_org/remoting/client/
key_event_mapper.cc 24 void KeyEventMapper::TrapKey(uint32 usb_keycode, bool trap_key) {
26 trapped_keys.insert(usb_keycode);
28 trapped_keys.erase(usb_keycode);
44 (trapped_keys.find(event.usb_keycode()) != trapped_keys.end())) {
51 mapped_keys.find(event.usb_keycode());
key_event_mapper_unittest.cc 25 MATCHER_P2(EqualsUsbEvent, usb_keycode, pressed, "") {
26 return arg.usb_keycode() == static_cast<uint32>(usb_keycode) &&
32 MATCHER_P2(EqualsUsbEventLockStates, usb_keycode, pressed, "") {
33 return arg.usb_keycode() == static_cast<uint32>(usb_keycode) &&
38 static KeyEvent NewUsbEvent(uint32 usb_keycode,
42 event.set_usb_keycode(usb_keycode);
49 static void PressAndReleaseUsb(InputStub* input_stub, uint32 usb_keycode) {
50 input_stub->InjectKeyEvent(NewUsbEvent(usb_keycode, true, kTestLockStates))
    [all...]
key_event_mapper.h 33 // Causes events matching |usb_keycode| to be delivered to the trap callback.
35 void TrapKey(uint32 usb_keycode, bool trap_key);
  /external/chromium_org/remoting/protocol/
input_filter_unittest.cc 17 MATCHER_P2(EqualsKeyEvent, usb_keycode, pressed, "") {
18 return arg.usb_keycode() == static_cast<uint32>(usb_keycode) &&
26 static KeyEvent NewKeyEvent(uint32 usb_keycode, bool pressed) {
28 event.set_usb_keycode(usb_keycode);
input_event_tracker_unittest.cc 29 MATCHER_P2(EqualsUsbEventWithoutLockStates, usb_keycode, pressed, "") {
30 return arg.usb_keycode() == static_cast<uint32>(usb_keycode) &&
36 MATCHER_P2(EqualsUsbEvent, usb_keycode, pressed, "") {
37 return arg.usb_keycode() == static_cast<uint32>(usb_keycode) &&
47 static KeyEvent NewUsbEvent(uint32 usb_keycode,
50 event.set_usb_keycode(usb_keycode);
58 uint32 usb_keycode) {
59 input_stub->InjectKeyEvent(NewUsbEvent(usb_keycode, true))
    [all...]
input_event_tracker.cc 21 bool InputEventTracker::IsKeyPressed(uint32 usb_keycode) const {
22 return pressed_keys_.find(usb_keycode) != pressed_keys_.end();
65 pressed_keys_.insert(event.usb_keycode());
67 pressed_keys_.erase(event.usb_keycode());
input_event_tracker.h 27 bool IsKeyPressed(uint32 usb_keycode) const;
message_decoder_unittest.cc 102 EXPECT_EQ(kTestKey + index, message->key_event().usb_keycode());
  /external/chromium_org/remoting/client/plugin/
normalizing_input_filter_mac.cc 93 bool is_special_key = event.usb_keycode() == kUsbLeftControl ||
94 event.usb_keycode() == kUsbLeftShift ||
95 event.usb_keycode() == kUsbLeftOption ||
96 event.usb_keycode() == kUsbRightControl ||
97 event.usb_keycode() == kUsbRightShift ||
98 event.usb_keycode() == kUsbRightOption ||
99 event.usb_keycode() == kUsbTab;
101 bool is_cmd_key = event.usb_keycode() == kUsbLeftCmd ||
102 event.usb_keycode() == kUsbRightCmd;
104 if (event.usb_keycode() == kUsbCapsLock)
    [all...]
normalizing_input_filter_cros.cc 121 deferred_keydown_event_.usb_keycode() == event.usb_keycode()) {
126 if (modifying_key_ == event.usb_keycode()) {
133 if (IsOsKey(event.usb_keycode())) {
143 if (IsRewrittenKey(event.usb_keycode())) {
158 deferred_keydown_event_.usb_keycode() == event.usb_keycode()) {
169 if (modifying_key_ == event.usb_keycode())
177 modifying_key_ = deferred_keydown_event_.usb_keycode();
normalizing_input_filter_cros_unittest.cc 31 MATCHER_P2(EqualsKeyEvent, usb_keycode, pressed, "") {
32 return arg.usb_keycode() == static_cast<uint32>(usb_keycode) &&
normalizing_input_filter_mac_unittest.cc 30 MATCHER_P2(EqualsUsbEvent, usb_keycode, pressed, "") {
31 return arg.usb_keycode() == static_cast<uint32>(usb_keycode) &&
chromoting_instance.cc 712 int usb_keycode = 0; local
714 if (!data.GetInteger("usbKeycode", &usb_keycode) ||
721 event.set_usb_keycode(usb_keycode);
917 void ChromotingInstance::SendTrappedKey(uint32 usb_keycode, bool pressed) {
919 data->SetInteger("usbKeycode", usb_keycode);
    [all...]
chromoting_instance.h 214 void SendTrappedKey(uint32 usb_keycode, bool pressed);
  /external/chromium_org/remoting/host/
remote_input_filter_unittest.cc 24 MATCHER_P2(EqualsUsbEvent, usb_keycode, pressed, "") {
25 return arg.usb_keycode() == (unsigned int)usb_keycode &&
36 static protocol::KeyEvent UsbKeyEvent(int usb_keycode, bool pressed) {
38 event.set_usb_keycode(usb_keycode);
input_injector_win.cc 182 int scancode = key_converter->UsbKeycodeToNativeKeycode(event.usb_keycode());
183 VLOG(3) << "Converting USB keycode: " << std::hex << event.usb_keycode()
client_session_unittest.cc 284 MATCHER_P2(EqualsUsbEvent, usb_keycode, pressed, "") {
285 return arg.usb_keycode() == (unsigned int)usb_keycode &&
input_injector_mac.cc 148 int keycode = key_converter->UsbKeycodeToNativeKeycode(event.usb_keycode());
150 VLOG(3) << "Converting USB keycode: " << std::hex << event.usb_keycode()
input_injector_linux.cc 219 int keycode = key_converter->UsbKeycodeToNativeKeycode(event.usb_keycode());
221 VLOG(3) << "Converting USB keycode: " << std::hex << event.usb_keycode()
  /external/chromium_org/remoting/proto/
event.proto 29 optional uint32 usb_keycode = 3;
  /external/chromium_org/remoting/host/win/
session_input_injector.cc 144 if (event.usb_keycode() == kUsbDelete &&
158 pressed_keys_.insert(event.usb_keycode());
160 pressed_keys_.erase(event.usb_keycode());

Completed in 264 milliseconds