/external/chromium_org/ui/aura/test/ |
D | ui_controls_factory_aurax11.cc | 70 XEvent xevent = {0}; in SendKeyPressNotifyWhenDone() local 71 xevent.xkey.type = KeyPress; in SendKeyPressNotifyWhenDone() 73 SetKeycodeAndSendThenMask(&xevent, XK_Control_L, ControlMask); in SendKeyPressNotifyWhenDone() 75 SetKeycodeAndSendThenMask(&xevent, XK_Shift_L, ShiftMask); in SendKeyPressNotifyWhenDone() 77 SetKeycodeAndSendThenMask(&xevent, XK_Alt_L, Mod1Mask); in SendKeyPressNotifyWhenDone() 79 SetKeycodeAndSendThenMask(&xevent, XK_Meta_L, Mod4Mask); in SendKeyPressNotifyWhenDone() 80 xevent.xkey.keycode = in SendKeyPressNotifyWhenDone() 83 host_->PostNativeEvent(&xevent); in SendKeyPressNotifyWhenDone() 86 xevent.xkey.type = KeyRelease; in SendKeyPressNotifyWhenDone() 87 host_->PostNativeEvent(&xevent); in SendKeyPressNotifyWhenDone() [all …]
|
/external/qemu/distrib/sdl-1.2.15/src/video/x11/ |
D | SDL_x11events.c | 333 static __inline__ int X11_WarpedMotion(_THIS, XEvent *xevent) in X11_WarpedMotion() argument 341 deltax = xevent->xmotion.x - mouse_last.x; in X11_WarpedMotion() 342 deltay = xevent->xmotion.y - mouse_last.y; in X11_WarpedMotion() 346 mouse_last.x = xevent->xmotion.x; in X11_WarpedMotion() 347 mouse_last.y = xevent->xmotion.y; in X11_WarpedMotion() 350 if ( (xevent->xmotion.x < MOUSE_FUDGE_FACTOR) || in X11_WarpedMotion() 351 (xevent->xmotion.x > (w-MOUSE_FUDGE_FACTOR)) || in X11_WarpedMotion() 352 (xevent->xmotion.y < MOUSE_FUDGE_FACTOR) || in X11_WarpedMotion() 353 (xevent->xmotion.y > (h-MOUSE_FUDGE_FACTOR)) ) { in X11_WarpedMotion() 355 while ( XCheckTypedEvent(SDL_Display, MotionNotify, xevent) ) { in X11_WarpedMotion() [all …]
|
/external/chromium_org/ui/views/test/ |
D | ui_controls_factory_desktop_aurax11.cc | 98 XEvent xevent = {0}; in SendKeyPressNotifyWhenDone() local 99 xevent.xkey.type = KeyPress; in SendKeyPressNotifyWhenDone() 101 SetKeycodeAndSendThenMask(host, &xevent, XK_Control_L, ControlMask); in SendKeyPressNotifyWhenDone() 104 SetKeycodeAndSendThenMask(host, &xevent, XK_Shift_L, ShiftMask); in SendKeyPressNotifyWhenDone() 106 SetKeycodeAndSendThenMask(host, &xevent, XK_Alt_L, Mod1Mask); in SendKeyPressNotifyWhenDone() 107 xevent.xkey.keycode = in SendKeyPressNotifyWhenDone() 110 host->PostNativeEvent(&xevent); in SendKeyPressNotifyWhenDone() 113 xevent.xkey.type = KeyRelease; in SendKeyPressNotifyWhenDone() 114 host->PostNativeEvent(&xevent); in SendKeyPressNotifyWhenDone() 116 UnmaskAndSetKeycodeThenSend(host, &xevent, Mod1Mask, XK_Alt_L); in SendKeyPressNotifyWhenDone() [all …]
|
/external/chromium_org/ui/events/platform/x11/ |
D | x11_event_source.cc | 116 XEvent xevent; in DispatchXEvents() local 117 XNextEvent(display_, &xevent); in DispatchXEvents() 118 DispatchEvent(&xevent); in DispatchXEvents() 135 uint32_t X11EventSource::DispatchEvent(XEvent* xevent) { in DispatchEvent() argument 137 if (xevent->type == GenericEvent && in DispatchEvent() 138 XGetEventData(xevent->xgeneric.display, &xevent->xcookie)) { in DispatchEvent() 142 uint32_t action = PlatformEventSource::DispatchEvent(xevent); in DispatchEvent() 143 if (xevent->type == GenericEvent && in DispatchEvent() 144 xevent->xgeneric.evtype == XI_HierarchyChanged) { in DispatchEvent() 150 XFreeEventData(xevent->xgeneric.display, &xevent->xcookie); in DispatchEvent()
|
D | x11_event_source.h | 51 virtual uint32_t DispatchEvent(XEvent* xevent) OVERRIDE;
|
/external/qemu/distrib/sdl-1.2.15/src/video/dga/ |
D | SDL_dgaevents.c | 47 SDL_NAME(XDGAEvent) xevent; in DGA_DispatchEvent() 49 XNextEvent(DGA_Display, (XEvent *)&xevent); in DGA_DispatchEvent() 52 xevent.type -= DGA_event_base; in DGA_DispatchEvent() 53 switch (xevent.type) { in DGA_DispatchEvent() 59 xevent.xmotion.dx, xevent.xmotion.dy); in DGA_DispatchEvent() 67 xevent.xbutton.button, 0, 0); in DGA_DispatchEvent() 74 xevent.xbutton.button, 0, 0); in DGA_DispatchEvent() 84 SDL_NAME(XDGAKeyEventToXKeyEvent)(&xevent.xkey, &xkey); in DGA_DispatchEvent() 120 SDL_NAME(XDGAKeyEventToXKeyEvent)(&xevent.xkey, &xkey); in DGA_DispatchEvent()
|
/external/chromium_org/ui/views/widget/desktop_aura/ |
D | desktop_window_tree_host_x11_unittest.cc | 410 XEvent xevent; in TEST_F() local 411 memset(&xevent, 0, sizeof(xevent)); in TEST_F() 412 xevent.type = PropertyNotify; in TEST_F() 413 xevent.xproperty.type = PropertyNotify; in TEST_F() 414 xevent.xproperty.send_event = 1; in TEST_F() 415 xevent.xproperty.display = display; in TEST_F() 416 xevent.xproperty.window = xid; in TEST_F() 417 xevent.xproperty.atom = atom_cache.GetAtom("_NET_WM_STATE"); in TEST_F() 418 xevent.xproperty.state = 0; in TEST_F() 421 &xevent); in TEST_F() [all …]
|
D | x11_whole_screen_move_loop.cc | 106 XEvent xevent = {0}; in DispatchEvent() local 108 xevent.type = ButtonRelease; in DispatchEvent() 109 xevent.xbutton.button = ui::EventButtonFromNative(xev); in DispatchEvent() 111 xevent.type = MotionNotify; in DispatchEvent() 113 xevent.xany.display = xev->xgeneric.display; in DispatchEvent() 114 xevent.xany.window = grab_input_window_; in DispatchEvent() 118 xevent.xmotion.root = DefaultRootWindow(xev->xgeneric.display); in DispatchEvent() 119 xevent.xmotion.time = ui::EventTimeFromNative(xev).InMilliseconds(); in DispatchEvent() 121 xevent.xmotion.x_root = point.x(); in DispatchEvent() 122 xevent.xmotion.y_root = point.y(); in DispatchEvent() [all …]
|
D | desktop_window_tree_host_x11.cc | 609 XEvent xevent; in SetVisibleOnAllWorkspaces() local 610 memset (&xevent, 0, sizeof (xevent)); in SetVisibleOnAllWorkspaces() 611 xevent.type = ClientMessage; in SetVisibleOnAllWorkspaces() 612 xevent.xclient.window = xwindow_; in SetVisibleOnAllWorkspaces() 613 xevent.xclient.message_type = atom_cache_.GetAtom("_NET_WM_DESKTOP"); in SetVisibleOnAllWorkspaces() 614 xevent.xclient.format = 32; in SetVisibleOnAllWorkspaces() 615 xevent.xclient.data.l[0] = new_desktop; in SetVisibleOnAllWorkspaces() 616 xevent.xclient.data.l[1] = 0; in SetVisibleOnAllWorkspaces() 617 xevent.xclient.data.l[2] = 0; in SetVisibleOnAllWorkspaces() 618 xevent.xclient.data.l[3] = 0; in SetVisibleOnAllWorkspaces() [all …]
|
/external/chromium_org/chrome/browser/ui/views/frame/ |
D | browser_command_handler_x11.cc | 24 XEvent* xevent = event->native_event(); in OnMouseEvent() local 25 if (!xevent) in OnMouseEvent() 27 int button = xevent->type == GenericEvent ? ui::EventButtonFromNative(xevent) in OnMouseEvent() 28 : xevent->xbutton.button; in OnMouseEvent()
|
/external/chromium_org/content/browser/renderer_host/ |
D | web_input_event_aura_unittest.cc | 51 XEvent* xevent = xev; in TEST() local 52 xevent->xkey.keycode = XKeysymToKeycode(gfx::GetXDisplay(), XK_Control_L); in TEST() 61 XEvent* xevent = xev; in TEST() local 62 xevent->xkey.keycode = XKeysymToKeycode(gfx::GetXDisplay(), XK_Control_R); in TEST() 128 XEvent* xevent = xev; in TEST() local 129 xevent->xkey.keycode = XKeysymToKeycode(gfx::GetXDisplay(), in TEST()
|
/external/chromium_org/chrome/browser/chromeos/events/ |
D | system_key_event_listener.cc | 86 void SystemKeyEventListener::ProcessedXEvent(XEvent* xevent) { in ProcessedXEvent() argument 90 if (xevent->type == xkb_event_base_) { in ProcessedXEvent() 92 XkbEvent* xkey_event = reinterpret_cast<XkbEvent*>(xevent); in ProcessedXEvent()
|
D | xinput_hierarchy_changed_event_listener.cc | 95 void XInputHierarchyChangedEventListener::ProcessedXEvent(XEvent* xevent) { in ProcessedXEvent() argument 96 if (xevent->xcookie.type != GenericEvent) in ProcessedXEvent() 99 XGenericEventCookie* cookie = &(xevent->xcookie); in ProcessedXEvent()
|
D | system_key_event_listener.h | 37 void ProcessedXEvent(XEvent* xevent);
|
D | xinput_hierarchy_changed_event_listener.h | 43 void ProcessedXEvent(XEvent* xevent);
|
/external/chromium_org/ui/aura/ |
D | window_tree_host_x11.cc | 579 XEvent xevent = *native_event; in PostNativeEvent() local 580 xevent.xany.display = xdisplay_; in PostNativeEvent() 581 xevent.xany.window = xwindow_; in PostNativeEvent() 583 switch (xevent.type) { in PostNativeEvent() 594 xevent.xmotion.root = x_root_window_; in PostNativeEvent() 595 xevent.xmotion.time = CurrentTime; in PostNativeEvent() 597 gfx::Point point(xevent.xmotion.x, xevent.xmotion.y); in PostNativeEvent() 599 xevent.xmotion.x_root = point.x(); in PostNativeEvent() 600 xevent.xmotion.y_root = point.y(); in PostNativeEvent() 605 XSendEvent(xdisplay_, xwindow_, False, 0, &xevent); in PostNativeEvent()
|
/external/chromium_org/ui/events/x/ |
D | events_x.cc | 169 int GetEventFlagsFromXKeyEvent(XEvent* xevent) { in GetEventFlagsFromXKeyEvent() argument 170 DCHECK(xevent->type == KeyPress || xevent->type == KeyRelease); in GetEventFlagsFromXKeyEvent() 186 xevent->xkey.keycode == 0 && in GetEventFlagsFromXKeyEvent() 187 (xevent->xkey.state & ~shift_lock_mask) == 0; in GetEventFlagsFromXKeyEvent() 192 return GetEventFlagsFromXState(xevent->xkey.state) | in GetEventFlagsFromXKeyEvent() 193 (xevent->xkey.send_event ? ui::EF_FINAL : 0) | in GetEventFlagsFromXKeyEvent() 194 (IsKeypadKey(XLookupKeysym(&xevent->xkey, 0)) ? ui::EF_NUMPAD_KEY : 0) | in GetEventFlagsFromXKeyEvent() 195 (IsFunctionKey(XLookupKeysym(&xevent->xkey, 0)) ? in GetEventFlagsFromXKeyEvent() 200 int GetEventFlagsFromXGenericEvent(XEvent* xevent) { in GetEventFlagsFromXGenericEvent() argument 201 DCHECK(xevent->type == GenericEvent); in GetEventFlagsFromXGenericEvent() [all …]
|
D | touch_factory_x11.h | 45 bool ShouldProcessXI2Event(XEvent* xevent);
|
/external/chromium_org/chrome/browser/ui/libgtk2ui/ |
D | gtk2_key_bindings_handler.cc | 100 const base::NativeEvent& xevent, in BuildGdkEventKeyFromXEvent() argument 105 gdk_event->type = xevent->xany.type == KeyPress ? in BuildGdkEventKeyFromXEvent() 107 gdk_event->time = xevent->xkey.time; in BuildGdkEventKeyFromXEvent() 108 gdk_event->state = static_cast<GdkModifierType>(xevent->xkey.state); in BuildGdkEventKeyFromXEvent() 109 gdk_event->hardware_keycode = xevent->xkey.keycode; in BuildGdkEventKeyFromXEvent() 112 gdk_event->group = XkbGroupForCoreState(xevent->xkey.state); in BuildGdkEventKeyFromXEvent()
|
/external/chromium_org/ui/views/controls/menu/ |
D | menu_controller_unittest.cc | 196 XEvent xevent; in DispatchEvent() local 197 memset(&xevent, 0, sizeof(xevent)); in DispatchEvent() 198 event_source_.Dispatch(&xevent); in DispatchEvent()
|
/external/chromium_org/ui/platform_window/x11/ |
D | x11_window.cc | 34 XID FindXEventTarget(XEvent* xevent) { in FindXEventTarget() argument 35 XID target = xevent->xany.window; in FindXEventTarget() 36 if (xevent->type == GenericEvent) in FindXEventTarget() 37 target = static_cast<XIDeviceEvent*>(xevent->xcookie.data)->event; in FindXEventTarget()
|
D | x11_window.h | 29 void ProcessXInput2Event(XEvent* xevent);
|
/external/chromium_org/ui/base/ime/ |
D | input_method_chromeos_unittest.cc | 958 ScopedXI2Event xevent; in TEST_F() local 959 xevent.InitKeyEvent(ui::ET_KEY_PRESSED, ui::VKEY_A, kFlags); in TEST_F() 960 const ui::KeyEvent event(xevent); in TEST_F() 984 EXPECT_TRUE(IsEqualXKeyEvent(*xevent, *(stored_event->native_event()))); in TEST_F() 994 ScopedXI2Event xevent; in TEST_F() local 995 xevent.InitKeyEvent(ui::ET_KEY_PRESSED, ui::VKEY_B, kFlags); in TEST_F() 996 const ui::KeyEvent event(xevent); in TEST_F() 1034 EXPECT_TRUE(IsEqualXKeyEvent(*xevent, *(stored_event->native_event()))); in TEST_F() 1049 ScopedXI2Event xevent; in TEST_F() local 1050 xevent.InitKeyEvent(ui::ET_KEY_PRESSED, ui::VKEY_A, ui::EF_SHIFT_DOWN); in TEST_F() [all …]
|
/external/chromium_org/ash/touch/ |
D | touch_uma.cc | 107 XEvent* xevent = event.native_event(); in RecordTouchEvent() local 108 CHECK_EQ(GenericEvent, xevent->type); in RecordTouchEvent() 109 XIEvent* xievent = static_cast<XIEvent*>(xevent->xcookie.data); in RecordTouchEvent() 114 static_cast<XIDeviceEvent*>(xevent->xcookie.data); in RecordTouchEvent()
|
/external/qemu/distrib/sdl-1.2.15/include/ |
D | SDL_syswm.h | 76 XEvent xevent;
|