Home
last modified time | relevance | path

Searched refs:xievent (Results 1 – 10 of 10) sorted by relevance

/external/chromium_org/ui/events/x/
Devents_x.cc77 XIDeviceEvent* xievent = in UpdateStateFromXEvent() local
79 switch (xievent->evtype) { in UpdateStateFromXEvent()
81 state_ = xievent->mods.effective |= mask; in UpdateStateFromXEvent()
84 state_ = xievent->mods.effective &= ~mask; in UpdateStateFromXEvent()
202 XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(xevent->xcookie.data); in GetEventFlagsFromXGenericEvent() local
203 DCHECK((xievent->evtype == XI_KeyPress) || in GetEventFlagsFromXGenericEvent()
204 (xievent->evtype == XI_KeyRelease)); in GetEventFlagsFromXGenericEvent()
205 return GetEventFlagsFromXState(xievent->mods.effective) | in GetEventFlagsFromXGenericEvent()
208 XkbKeycodeToKeysym(xievent->display, xievent->detail, 0, 0)) in GetEventFlagsFromXGenericEvent()
234 int GetButtonMaskForX2Event(XIDeviceEvent* xievent) { in GetButtonMaskForX2Event() argument
[all …]
Ddevice_data_manager_x11.cc383 XIDeviceEvent* xievent = in IsTouchpadXInputEvent() local
385 if (xievent->sourceid >= kMaxDeviceNum) in IsTouchpadXInputEvent()
387 return touchpads_[xievent->sourceid]; in IsTouchpadXInputEvent()
395 XIDeviceEvent* xievent = in IsCMTDeviceEvent() local
397 if (xievent->sourceid >= kMaxDeviceNum) in IsCMTDeviceEvent()
399 return cmt_devices_[xievent->sourceid]; in IsCMTDeviceEvent()
625 void DeviceDataManagerX11::SetValuatorDataForTest(XIDeviceEvent* xievent, in SetValuatorDataForTest() argument
628 int index = valuator_lookup_[xievent->deviceid][type]; in SetValuatorDataForTest()
629 CHECK(!XIMaskIsSet(xievent->valuators.mask, index)); in SetValuatorDataForTest()
630 CHECK(index >= 0 && index < valuator_count_[xievent->deviceid]); in SetValuatorDataForTest()
[all …]
Ddevice_data_manager_x11.h224 void SetValuatorDataForTest(XIDeviceEvent* xievent,
/external/chromium_org/ui/events/test/
Devents_test_utils_x11.cc180 XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(event_->xcookie.data); in InitGenericKeyEvent() local
181 CHECK_NE(0, xievent->evtype); in InitGenericKeyEvent()
184 xievent->display = display; in InitGenericKeyEvent()
185 xievent->mods.effective = XEventState(flags); in InitGenericKeyEvent()
186 xievent->detail = XKeyCodeForWindowsKeyCode(key_code, flags, display); in InitGenericKeyEvent()
187 xievent->sourceid = sourceid; in InitGenericKeyEvent()
196 XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(event_->xcookie.data); in InitGenericButtonEvent() local
197 xievent->mods.effective = XEventState(flags); in InitGenericButtonEvent()
198 xievent->detail = XButtonEventButton(type, flags); in InitGenericButtonEvent()
199 xievent->event_x = location.x(); in InitGenericButtonEvent()
[all …]
/external/chromium_org/ui/events/keycodes/
Dkeyboard_code_conversion_x.cc1303 XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(src.xcookie.data); in InitXKeyEventFromXIDeviceEvent() local
1304 switch (xievent->evtype) { in InitXKeyEventFromXIDeviceEvent()
1314 xkeyevent->xkey.serial = xievent->serial; in InitXKeyEventFromXIDeviceEvent()
1315 xkeyevent->xkey.send_event = xievent->send_event; in InitXKeyEventFromXIDeviceEvent()
1316 xkeyevent->xkey.display = xievent->display; in InitXKeyEventFromXIDeviceEvent()
1317 xkeyevent->xkey.window = xievent->event; in InitXKeyEventFromXIDeviceEvent()
1318 xkeyevent->xkey.root = xievent->root; in InitXKeyEventFromXIDeviceEvent()
1319 xkeyevent->xkey.subwindow = xievent->child; in InitXKeyEventFromXIDeviceEvent()
1320 xkeyevent->xkey.time = xievent->time; in InitXKeyEventFromXIDeviceEvent()
1321 xkeyevent->xkey.x = xievent->event_x; in InitXKeyEventFromXIDeviceEvent()
[all …]
/external/chromium_org/ash/wm/maximize_mode/
Dscoped_disable_internal_mouse_and_keyboard_x11.cc130 XIDeviceEvent* xievent = in DidProcessEvent() local
135 if (xievent->evtype != XI_Motion || in DidProcessEvent()
141 if (xievent->sourceid == touchpad_device_id_) { in DidProcessEvent()
/external/chromium_org/ui/aura/
Dwindow_tree_host_x11.cc211 XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(event->xcookie.data); in WillProcessEvent() local
212 xievent->event = xievent->root; in WillProcessEvent()
213 xievent->event_x = xievent->root_x; in WillProcessEvent()
214 xievent->event_y = xievent->root_y; in WillProcessEvent()
/external/chromium_org/ash/touch/
Dtouch_uma.cc109 XIEvent* xievent = static_cast<XIEvent*>(xevent->xcookie.data); in RecordTouchEvent() local
110 if (xievent->evtype == XI_TouchBegin || in RecordTouchEvent()
111 xievent->evtype == XI_TouchUpdate || in RecordTouchEvent()
112 xievent->evtype == XI_TouchEnd) { in RecordTouchEvent()
/external/chromium_org/ui/base/x/
Dx11_util.cc428 XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(xev->xcookie.data); in CoalescePendingMotionEvents() local
461 if (xievent->event == next_xievent->event && in CoalescePendingMotionEvents()
462 xievent->child == next_xievent->child && in CoalescePendingMotionEvents()
463 xievent->detail == next_xievent->detail && in CoalescePendingMotionEvents()
464 xievent->buttons.mask_len == next_xievent->buttons.mask_len && in CoalescePendingMotionEvents()
465 (memcmp(xievent->buttons.mask, in CoalescePendingMotionEvents()
467 xievent->buttons.mask_len) == 0) && in CoalescePendingMotionEvents()
468 xievent->mods.base == next_xievent->mods.base && in CoalescePendingMotionEvents()
469 xievent->mods.latched == next_xievent->mods.latched && in CoalescePendingMotionEvents()
470 xievent->mods.locked == next_xievent->mods.locked && in CoalescePendingMotionEvents()
[all …]
/external/chromium_org/chrome/browser/chromeos/events/
Devent_rewriter_unittest.cc161 XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(xevent->xcookie.data); in CheckKeyTestCase() local
162 DCHECK((xievent->evtype == XI_KeyPress) || in CheckKeyTestCase()
163 (xievent->evtype == XI_KeyRelease)); in CheckKeyTestCase()
164 if (xievent->detail) in CheckKeyTestCase()