Lines Matching refs:native_event
163 Event::Event(const base::NativeEvent& native_event,
167 time_stamp_(EventTimeFromNative(native_event)),
189 InitWithNativeEvent(native_event);
223 void Event::InitWithNativeEvent(const base::NativeEvent& native_event) {
224 native_event_ = native_event;
244 LocatedEvent::LocatedEvent(const base::NativeEvent& native_event)
245 : Event(native_event,
246 EventTypeFromNative(native_event),
247 EventFlagsFromNative(native_event)),
248 location_(EventLocationFromNative(native_event)),
273 MouseEvent::MouseEvent(const base::NativeEvent& native_event)
274 : LocatedEvent(native_event),
276 GetChangedMouseButtonFlagsFromNative(native_event)) {
329 if (IsX11SendEventTrue(event.native_event()))
385 MouseWheelEvent::MouseWheelEvent(const base::NativeEvent& native_event)
386 : MouseEvent(native_event),
387 offset_(GetMouseWheelOffset(native_event)) {
433 TouchEvent::TouchEvent(const base::NativeEvent& native_event)
434 : LocatedEvent(native_event),
435 touch_id_(GetTouchId(native_event)),
436 radius_x_(GetTouchRadiusX(native_event)),
437 radius_y_(GetTouchRadiusY(native_event)),
438 rotation_angle_(GetTouchAngle(native_event)),
439 force_(GetTouchForce(native_event)) {
482 // In ctor TouchEvent(native_event) we call GetTouchId() which in X11
486 ClearTouchIdIfReleased(native_event());
509 KeyEvent::KeyEvent(const base::NativeEvent& native_event, bool is_char)
510 : Event(native_event,
511 EventTypeFromNative(native_event),
512 EventFlagsFromNative(native_event)),
513 key_code_(KeyboardCodeFromNative(native_event)),
514 code_(CodeFromNative(native_event)),
549 return (native_event().message == WM_CHAR) ? key_code_ :
552 if (!native_event())
555 DCHECK(native_event()->type == KeyPress ||
556 native_event()->type == KeyRelease);
560 ch = GetCharacterFromXEvent(native_event());
563 if (native_event()) {
564 DCHECK(EventTypeFromNative(native_event()) == ET_KEY_PRESSED ||
565 EventTypeFromNative(native_event()) == ET_KEY_RELEASED);
615 TranslatedKeyEvent::TranslatedKeyEvent(const base::NativeEvent& native_event,
617 : KeyEvent(native_event, is_char) {
639 ScrollEvent::ScrollEvent(const base::NativeEvent& native_event)
640 : MouseEvent(native_event) {
642 GetScrollOffsets(native_event,
648 GetFlingData(native_event,