ports/www/chromium/patches/patch-ui_events_event_cc

31 lines
1.3 KiB
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Index: ui/events/event.cc
--- ui/events/event.cc.orig
+++ ui/events/event.cc
2023-08-18 18:38:43 +00:00
@@ -427,7 +427,7 @@ std::string LocatedEvent::ToString() const {
2023-08-16 22:26:55 +00:00
MouseEvent::MouseEvent(const PlatformEvent& native_event)
: LocatedEvent(native_event),
changed_button_flags_(GetChangedMouseButtonFlagsFromNative(native_event)),
-#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_CHROMEOS) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
movement_(GetMouseMovementFromNative(native_event)),
#endif
pointer_details_(GetMousePointerDetailsFromNative(native_event)) {
2023-08-18 18:38:43 +00:00
@@ -676,7 +676,7 @@ std::unique_ptr<Event> MouseWheelEvent::Clone() const
2023-08-16 22:26:55 +00:00
return std::make_unique<MouseWheelEvent>(*this);
}
-#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_WIN) || BUILDFLAG(IS_FUCHSIA) || BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
// This value matches Windows, Fuchsia WHEEL_DELTA, and (roughly) Firefox on
// Linux.
// static
2023-09-14 00:49:35 +00:00
@@ -936,7 +936,7 @@ void KeyEvent::InitializeNative() {
2023-08-16 22:26:55 +00:00
if (synthesize_key_repeat_enabled_ && IsRepeated(GetLastKeyEvent()))
set_flags(flags() | EF_IS_REPEAT);
-#if BUILDFLAG(IS_LINUX)
+#if BUILDFLAG(IS_LINUX) || BUILDFLAG(IS_BSD)
NormalizeFlags();
#elif BUILDFLAG(IS_WIN)
// Only Windows has native character events.