Home
last modified time | relevance | path

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

/external/chromium_org/ui/events/x/
Devents_x.cc172 int GetButtonMaskForX2Event(XIDeviceEvent* xievent) { in GetButtonMaskForX2Event() argument
174 for (int i = 0; i < 8 * xievent->buttons.mask_len; i++) { in GetButtonMaskForX2Event()
175 if (XIMaskIsSet(xievent->buttons.mask, i)) { in GetButtonMaskForX2Event()
176 int button = (xievent->sourceid == xievent->deviceid) ? in GetButtonMaskForX2Event()
277 XIDeviceEvent* xievent = in EventTypeFromNative() local
280 if (factory->IsTouchDevice(xievent->sourceid)) in EventTypeFromNative()
283 switch (xievent->evtype) { in EventTypeFromNative()
307 } else if (GetButtonMaskForX2Event(xievent)) { in EventTypeFromNative()
339 XIDeviceEvent* xievent = in EventFlagsFromNative() local
342 switch (xievent->evtype) { in EventFlagsFromNative()
[all …]
Ddevice_data_manager.cc374 XIDeviceEvent* xievent = in IsTouchpadXInputEvent() local
376 if (xievent->sourceid >= kMaxDeviceNum) in IsTouchpadXInputEvent()
378 return touchpads_[xievent->sourceid]; in IsTouchpadXInputEvent()
386 XIDeviceEvent* xievent = in IsCMTDeviceEvent() local
388 if (xievent->sourceid >= kMaxDeviceNum) in IsCMTDeviceEvent()
390 return cmt_devices_[xievent->sourceid]; in IsCMTDeviceEvent()
613 void DeviceDataManager::SetValuatorDataForTest(XIDeviceEvent* xievent, in SetValuatorDataForTest() argument
616 int index = valuator_lookup_[xievent->deviceid][type]; in SetValuatorDataForTest()
617 CHECK(!XIMaskIsSet(xievent->valuators.mask, index)); in SetValuatorDataForTest()
618 CHECK(index >= 0 && index < valuator_count_[xievent->deviceid]); in SetValuatorDataForTest()
[all …]
Ddevice_data_manager.h225 void SetValuatorDataForTest(XIDeviceEvent* xievent,
/external/chromium_org/chrome/browser/ui/ash/
Devent_rewriter.cc994 XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(xevent->xcookie.data); in RewriteLocatedEvent() local
995 if (xievent->evtype != XI_ButtonPress && xievent->evtype != XI_ButtonRelease) in RewriteLocatedEvent()
1001 GetRemappedModifierMasks(event->flags(), xievent->mods.effective, in RewriteLocatedEvent()
1003 xievent->mods.effective = remapped_native_modifiers; in RewriteLocatedEvent()
1006 if ((xievent->mods.effective & Mod1Mask) && xievent->detail == 1) { in RewriteLocatedEvent()
1007 xievent->mods.effective &= ~Mod1Mask; in RewriteLocatedEvent()
1008 xievent->detail = 3; in RewriteLocatedEvent()
1009 if (xievent->evtype == XI_ButtonRelease) { in RewriteLocatedEvent()
1012 XISetMask(xievent->buttons.mask, 3); in RewriteLocatedEvent()
1013 XIClearMask(xievent->buttons.mask, 1); in RewriteLocatedEvent()
[all …]
/external/chromium_org/ui/aura/
Droot_window_host_x11.cc243 XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(event->xcookie.data); in WillProcessEvent() local
244 xievent->event = xievent->root; in WillProcessEvent()
245 xievent->event_x = xievent->root_x; in WillProcessEvent()
246 xievent->event_y = xievent->root_y; in WillProcessEvent()
923 XIDeviceEvent* xievent = in DispatchXI2Event() local
925 int button = xievent->detail; in DispatchXI2Event()
/external/chromium_org/ui/base/x/
Dx11_util.cc442 XIDeviceEvent* xievent = static_cast<XIDeviceEvent*>(xev->xcookie.data); in CoalescePendingMotionEvents() local
475 if (xievent->event == next_xievent->event && in CoalescePendingMotionEvents()
476 xievent->child == next_xievent->child && in CoalescePendingMotionEvents()
477 xievent->detail == next_xievent->detail && in CoalescePendingMotionEvents()
478 xievent->buttons.mask_len == next_xievent->buttons.mask_len && in CoalescePendingMotionEvents()
479 (memcmp(xievent->buttons.mask, in CoalescePendingMotionEvents()
481 xievent->buttons.mask_len) == 0) && in CoalescePendingMotionEvents()
482 xievent->mods.base == next_xievent->mods.base && in CoalescePendingMotionEvents()
483 xievent->mods.latched == next_xievent->mods.latched && in CoalescePendingMotionEvents()
484 xievent->mods.locked == next_xievent->mods.locked && in CoalescePendingMotionEvents()
[all …]
/external/chromium_org/ash/touch/
Dtouch_uma.cc245 XIEvent* xievent = static_cast<XIEvent*>(xevent->xcookie.data); in RecordTouchEvent() local
246 if (xievent->evtype == XI_TouchBegin || in RecordTouchEvent()
247 xievent->evtype == XI_TouchUpdate || in RecordTouchEvent()
248 xievent->evtype == XI_TouchEnd) { in RecordTouchEvent()
/external/chromium_org/ash/wm/
Dsticky_keys.cc432 XIDeviceEvent* xievent = in AppendModifier() local
434 if (xievent) { in AppendModifier()
436 &xievent->mods.effective)); in AppendModifier()
/external/chromium_org/ui/views/widget/desktop_aura/
Ddesktop_root_window_host_x11.cc1329 XIDeviceEvent* xievent = in Dispatch() local
1331 int button = xievent->detail; in Dispatch()
1348 XIDeviceEvent* xievent = in Dispatch() local
1350 int button = xievent->detail; in Dispatch()