/external/chromium_org/ui/events/win/ |
D | events_win.cc | 27 int GetNativeMouseKey(const base::NativeEvent& native_event) { in GetNativeMouseKey() argument 28 switch (native_event.message) { in GetNativeMouseKey() 61 bool IsButtonDown(const base::NativeEvent& native_event) { in IsButtonDown() argument 63 native_event.wParam) != 0; in IsButtonDown() 66 bool IsClientMouseEvent(const base::NativeEvent& native_event) { in IsClientMouseEvent() argument 67 return native_event.message == WM_MOUSELEAVE || in IsClientMouseEvent() 68 native_event.message == WM_MOUSEHOVER || in IsClientMouseEvent() 69 (native_event.message >= WM_MOUSEFIRST && in IsClientMouseEvent() 70 native_event.message <= WM_MOUSELAST); in IsClientMouseEvent() 73 bool IsNonClientMouseEvent(const base::NativeEvent& native_event) { in IsNonClientMouseEvent() argument [all …]
|
/external/chromium_org/ui/events/x/ |
D | events_x.cc | 62 void UpdateStateFromXEvent(const base::NativeEvent& native_event) { in UpdateStateFromXEvent() argument 63 ui::KeyboardCode keyboard_code = ui::KeyboardCodeFromNative(native_event); in UpdateStateFromXEvent() 69 switch (native_event->type) { in UpdateStateFromXEvent() 71 state_ = native_event->xkey.state | mask; in UpdateStateFromXEvent() 74 state_ = native_event->xkey.state & ~mask; in UpdateStateFromXEvent() 78 static_cast<XIDeviceEvent*>(native_event->xcookie.data); in UpdateStateFromXEvent() 117 bool TouchEventIsGeneratedHack(const base::NativeEvent& native_event) { in TouchEventIsGeneratedHack() argument 119 static_cast<XIDeviceEvent*>(native_event->xcookie.data); in TouchEventIsGeneratedHack() 125 if (ui::GetTouchForce(native_event) < 1.0f) in TouchEventIsGeneratedHack() 128 if (ui::EventLocationFromNative(native_event) != gfx::Point()) in TouchEventIsGeneratedHack() [all …]
|
D | device_data_manager_x11.h | 141 bool IsXIDeviceEvent(const base::NativeEvent& native_event) const; 144 bool IsTouchpadXInputEvent(const base::NativeEvent& native_event) const; 149 bool IsCMTDeviceEvent(const base::NativeEvent& native_event) const; 153 bool IsCMTGestureEvent(const base::NativeEvent& native_event) const; 156 bool IsScrollEvent(const base::NativeEvent& native_event) const; 157 bool IsFlingEvent(const base::NativeEvent& native_event) const; 158 bool IsCMTMetricsEvent(const base::NativeEvent& native_event) const; 161 bool HasGestureTimes(const base::NativeEvent& native_event) const; 166 void GetScrollOffsets(const base::NativeEvent& native_event, 175 void GetFlingData(const base::NativeEvent& native_event, [all …]
|
D | device_data_manager_x11.cc | 371 const base::NativeEvent& native_event) const { in IsXIDeviceEvent() 372 if (native_event->type != GenericEvent || in IsXIDeviceEvent() 373 native_event->xcookie.extension != xi_opcode_) in IsXIDeviceEvent() 375 return xi_device_event_types_[native_event->xcookie.evtype]; in IsXIDeviceEvent() 379 const base::NativeEvent& native_event) const { in IsTouchpadXInputEvent() 380 if (native_event->type != GenericEvent) in IsTouchpadXInputEvent() 384 static_cast<XIDeviceEvent*>(native_event->xcookie.data); in IsTouchpadXInputEvent() 391 const base::NativeEvent& native_event) const { in IsCMTDeviceEvent() 392 if (native_event->type != GenericEvent) in IsCMTDeviceEvent() 396 static_cast<XIDeviceEvent*>(native_event->xcookie.data); in IsCMTDeviceEvent() [all …]
|
/external/chromium_org/ui/events/ozone/ |
D | events_ozone.cc | 15 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) { in EventTimeFromNative() argument 16 const ui::Event* event = static_cast<const ui::Event*>(native_event); in EventTimeFromNative() 20 int EventFlagsFromNative(const base::NativeEvent& native_event) { in EventFlagsFromNative() argument 21 const ui::Event* event = static_cast<const ui::Event*>(native_event); in EventFlagsFromNative() 25 EventType EventTypeFromNative(const base::NativeEvent& native_event) { in EventTypeFromNative() argument 26 const ui::Event* event = static_cast<const ui::Event*>(native_event); in EventTypeFromNative() 31 const base::NativeEvent& native_event) { in EventSystemLocationFromNative() argument 33 static_cast<const ui::LocatedEvent*>(native_event); in EventSystemLocationFromNative() 39 gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) { in EventLocationFromNative() argument 40 return EventSystemLocationFromNative(native_event); in EventLocationFromNative() [all …]
|
/external/chromium_org/content/browser/renderer_host/ |
D | web_input_event_aurawin.cc | 17 const base::NativeEvent& native_event) { in MakeUntranslatedWebMouseEventFromNativeEvent() argument 18 return WebMouseEventBuilder::Build(native_event.hwnd, in MakeUntranslatedWebMouseEventFromNativeEvent() 19 native_event.message, in MakeUntranslatedWebMouseEventFromNativeEvent() 20 native_event.wParam, in MakeUntranslatedWebMouseEventFromNativeEvent() 21 native_event.lParam, in MakeUntranslatedWebMouseEventFromNativeEvent() 22 native_event.time); in MakeUntranslatedWebMouseEventFromNativeEvent() 26 const base::NativeEvent& native_event) { in MakeUntranslatedWebMouseWheelEventFromNativeEvent() argument 27 return WebMouseWheelEventBuilder::Build(native_event.hwnd, in MakeUntranslatedWebMouseWheelEventFromNativeEvent() 28 native_event.message, in MakeUntranslatedWebMouseWheelEventFromNativeEvent() 29 native_event.wParam, in MakeUntranslatedWebMouseWheelEventFromNativeEvent() [all …]
|
D | web_input_event_aura.cc | 21 const base::NativeEvent& native_event); 23 const base::NativeEvent& native_event); 25 const base::NativeEvent& native_event); 27 const base::NativeEvent& native_event); 158 event->native_event().message ? in MakeWebMouseEvent() 159 MakeUntranslatedWebMouseEventFromNativeEvent(event->native_event()) : in MakeWebMouseEvent() 170 if (event->native_event().message) in MakeWebMouseEvent() 183 blink::WebMouseWheelEvent webkit_event = event->native_event().message ? in MakeWebMouseWheelEvent() 184 MakeUntranslatedWebMouseWheelEventFromNativeEvent(event->native_event()) : in MakeWebMouseWheelEvent() 207 MakeUntranslatedWebMouseWheelEventFromNativeEvent(event->native_event()); in MakeWebMouseWheelEvent() [all …]
|
D | native_web_keyboard_event_mac.mm | 20 NativeWebKeyboardEvent::NativeWebKeyboardEvent(gfx::NativeEvent native_event) 21 : WebKeyboardEvent(WebInputEventFactory::keyboardEvent(native_event)), 22 os_event([native_event retain]),
|
D | native_web_keyboard_event_aura.cc | 41 NativeWebKeyboardEvent::NativeWebKeyboardEvent(gfx::NativeEvent native_event) in NativeWebKeyboardEvent() argument 43 static_cast<ui::KeyEvent*>(native_event))), in NativeWebKeyboardEvent() 44 os_event(CopyEvent(native_event)), in NativeWebKeyboardEvent()
|
/external/chromium_org/ui/events/ |
D | events_stub.cc | 21 EventType EventTypeFromNative(const base::NativeEvent& native_event) { in EventTypeFromNative() argument 26 int EventFlagsFromNative(const base::NativeEvent& native_event) { in EventFlagsFromNative() argument 31 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) { in EventTimeFromNative() argument 36 gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) { in EventLocationFromNative() argument 42 const base::NativeEvent& native_event) { in EventSystemLocationFromNative() argument 47 int EventButtonFromNative(const base::NativeEvent& native_event) { in EventButtonFromNative() argument 53 const base::NativeEvent& native_event) { in GetChangedMouseButtonFlagsFromNative() argument 58 gfx::Vector2d GetMouseWheelOffset(const base::NativeEvent& native_event) { in GetMouseWheelOffset() argument 72 void IncrementTouchIdRefCount(const base::NativeEvent& native_event) { in IncrementTouchIdRefCount() argument 76 void ClearTouchIdIfReleased(const base::NativeEvent& native_event) { in ClearTouchIdIfReleased() argument [all …]
|
D | event_utils.h | 42 const base::NativeEvent& native_event); 46 const base::NativeEvent& native_event); 49 EVENTS_EXPORT int EventFlagsFromNative(const base::NativeEvent& native_event); 53 const base::NativeEvent& native_event); 64 const base::NativeEvent& native_event); 68 const base::NativeEvent& native_event); 75 EVENTS_EXPORT int EventButtonFromNative(const base::NativeEvent& native_event); 80 const base::NativeEvent& native_event); 86 const base::NativeEvent& native_event); 90 const base::NativeEvent& native_event); [all …]
|
D | event.cc | 201 Event::Event(const base::NativeEvent& native_event, in Event() argument 205 time_stamp_(EventTimeFromNative(native_event)), in Event() 207 native_event_(native_event), in Event() 231 if (native_event->type == GenericEvent) { in Event() 233 static_cast<XIDeviceEvent*>(native_event->xcookie.data); in Event() 280 LocatedEvent::LocatedEvent(const base::NativeEvent& native_event) in LocatedEvent() argument 281 : Event(native_event, in LocatedEvent() 282 EventTypeFromNative(native_event), in LocatedEvent() 283 EventFlagsFromNative(native_event)), in LocatedEvent() 284 location_(EventLocationFromNative(native_event)), in LocatedEvent() [all …]
|
D | event_utils.cc | 19 scoped_ptr<Event> EventFromNative(const base::NativeEvent& native_event) { in EventFromNative() argument 21 EventType type = EventTypeFromNative(native_event); in EventFromNative() 25 event.reset(new KeyEvent(native_event)); in EventFromNative() 40 event.reset(new MouseEvent(native_event)); in EventFromNative() 44 event.reset(new MouseWheelEvent(native_event)); in EventFromNative() 50 event.reset(new ScrollEvent(native_event)); in EventFromNative() 57 event.reset(new TouchEvent(native_event)); in EventFromNative()
|
D | event.h | 56 const base::NativeEvent& native_event() const { return native_event_; } in native_event() function 222 Event(const base::NativeEvent& native_event, EventType type, int flags); 301 explicit LocatedEvent(const base::NativeEvent& native_event); 330 explicit MouseEvent(const base::NativeEvent& native_event); 445 explicit MouseWheelEvent(const base::NativeEvent& native_event); 481 explicit TouchEvent(const base::NativeEvent& native_event); 599 explicit KeyEvent(const base::NativeEvent& native_event); 742 explicit ScrollEvent(const base::NativeEvent& native_event);
|
D | event_unittest.cc | 27 MSG native_event = { NULL, WM_KEYUP, VKEY_A, 0 }; in TEST() local 28 KeyEvent keyev(native_event); in TEST() 369 MSG native_event = { NULL, WM_KEYUP, VKEY_SPACE, lParam }; in TEST() local 370 KeyEvent key(native_event); in TEST() 383 MSG native_event = { NULL, WM_KEYUP, VKEY_HOME, lParam }; in TEST() local 384 KeyEvent key(native_event); in TEST()
|
/external/chromium_org/ui/events/cocoa/ |
D | events_mac.mm | 26 EventType EventTypeFromNative(const base::NativeEvent& native_event) { 27 NSEventType type = [native_event type]; 82 base::TimeDelta EventTimeFromNative(const base::NativeEvent& native_event) { 83 NSTimeInterval since_system_startup = [native_event timestamp]; 92 gfx::Point EventLocationFromNative(const base::NativeEvent& native_event) { 93 NSWindow* window = [native_event window]; 98 NSPoint location = [native_event locationInWindow]; 104 const base::NativeEvent& native_event) { 109 int EventButtonFromNative(const base::NativeEvent& native_event) { 115 const base::NativeEvent& native_event) { [all …]
|
/external/chromium_org/chrome/browser/chromeos/ |
D | device_uma.cc | 58 void DeviceUMA::CheckTouchpadEvent(XEvent* native_event) { in CheckTouchpadEvent() argument 60 static_cast<XIDeviceEvent*>(native_event->xcookie.data); in CheckTouchpadEvent() 70 if (manager->IsCMTMetricsEvent(native_event)) { in CheckTouchpadEvent() 73 manager->GetMetricsData(native_event, &type, &data1, &data2); in CheckTouchpadEvent()
|
/external/chromium_org/chrome/browser/ui/views/panels/ |
D | x11_panel_resizer.cc | 47 !event->native_event()) { in OnMousePressed() 60 event->native_event()); in OnMousePressed() 71 if (!event->native_event()) in OnMouseDragged() 80 event->native_event()); in OnMouseDragged()
|
/external/chromium_org/ui/aura/ |
D | window_tree_host_win.cc | 115 void WindowTreeHostWin::PostNativeEvent(const base::NativeEvent& native_event) { in PostNativeEvent() argument 117 widget_, native_event.message, native_event.wParam, native_event.lParam); in PostNativeEvent()
|
D | window_tree_host_ozone.cc | 98 const base::NativeEvent& native_event) { in PostNativeEvent() argument 99 SendEventToProcessor(static_cast<ui::Event*>(native_event)); in PostNativeEvent()
|
/external/chromium_org/ui/wm/core/ |
D | nested_accelerator_controller_unittest.cc | 88 ui::ScopedXI2Event native_event; in DispatchKeyReleaseA() 89 native_event.InitKeyEvent(ui::ET_KEY_PRESSED, ui::VKEY_A, 0); in DispatchKeyReleaseA() 91 host->PostNativeEvent(native_event); in DispatchKeyReleaseA() 92 native_event.InitKeyEvent(ui::ET_KEY_RELEASED, ui::VKEY_A, 0); in DispatchKeyReleaseA() 93 host->PostNativeEvent(native_event); in DispatchKeyReleaseA()
|
D | nested_accelerator_dispatcher_linux.cc | 26 bool IsKeyEvent(const base::NativeEvent& native_event) { in IsKeyEvent() argument 27 const ui::KeyEvent* event = static_cast<const ui::KeyEvent*>(native_event); in IsKeyEvent()
|
/external/chromium_org/chrome/browser/ui/libgtk2ui/ |
D | x11_input_method_context_impl_gtk2.cc | 81 GdkEvent* event = GdkEventFromNativeEvent(key_event.native_event()); in DispatchKeyEvent() 194 const base::NativeEvent& native_event) { in GdkEventFromNativeEvent() argument 196 if (native_event->type == GenericEvent) { in GdkEventFromNativeEvent() 199 ui::InitXKeyEventFromXIDeviceEvent(*native_event, &xkeyevent); in GdkEventFromNativeEvent() 201 DCHECK(native_event->type == KeyPress || native_event->type == KeyRelease); in GdkEventFromNativeEvent() 202 xkeyevent.xkey = native_event->xkey; in GdkEventFromNativeEvent()
|
/external/chromium_org/ui/views/widget/desktop_aura/ |
D | x11_window_event_filter.cc | 86 if (event->IsLeftMouseButton() && event->native_event()) { in OnMouseEvent() 88 ui::EventSystemLocationFromNative(event->native_event()); in OnMouseEvent() 141 if (event->IsLeftMouseButton() && event->native_event()) { in OnClickedCaption() 143 ui::EventSystemLocationFromNative(event->native_event()); in OnClickedCaption()
|
/external/chromium_org/ui/ozone/platform/dri/ |
D | dri_window.cc | 103 uint32_t DriWindow::DispatchEvent(const PlatformEvent& native_event) { in DispatchEvent() argument 105 native_event, in DispatchEvent()
|