#include "ui/events/blink/web_input_event.h"
#include "base/types/cxx23_to_underlying.h"
#include "build/build_config.h"
#include "ui/base/ui_base_features.h"
#include "ui/events/blink/blink_event_util.h"
#include "ui/events/blink/blink_features.h"
#include "ui/events/event.h"
#include "ui/events/event_target.h"
#include "ui/events/event_utils.h"
#include "ui/events/keycodes/dom/keycode_converter.h"
#if BUILDFLAG(IS_WIN)
#include "ui/events/blink/web_input_event_builders_win.h"
#endif
namespace ui {
namespace {
gfx::PointF GetScreenLocationFromEvent(const LocatedEvent& event) { … }
blink::WebGestureEvent MakeWebGestureEventFromUIEvent(
const GestureEvent& event) { … }
}
#if BUILDFLAG(IS_WIN)
blink::WebMouseEvent MakeUntranslatedWebMouseEventFromNativeEvent(
const PlatformEvent& native_event,
const base::TimeTicks& time_stamp,
blink::WebPointerProperties::PointerType pointer_type) {
return WebMouseEventBuilder::Build(native_event.hwnd, native_event.message,
native_event.wParam, native_event.lParam,
time_stamp, pointer_type);
}
blink::WebMouseWheelEvent MakeUntranslatedWebMouseWheelEventFromNativeEvent(
const PlatformEvent& native_event,
const base::TimeTicks& time_stamp,
blink::WebPointerProperties::PointerType pointer_type) {
return WebMouseWheelEventBuilder::Build(
native_event.hwnd, native_event.message, native_event.wParam,
native_event.lParam, time_stamp, pointer_type);
}
#endif
blink::WebKeyboardEvent MakeWebKeyboardEventFromUiEvent(const KeyEvent& event) { … }
blink::WebMouseWheelEvent MakeWebMouseWheelEventFromUiEvent(
const ScrollEvent& event) { … }
blink::WebGestureEvent MakeWebGestureEventFromUiEvent(
const ScrollEvent& event) { … }
blink::WebMouseEvent MakeWebMouseEventFromUiEvent(const MouseEvent& event);
blink::WebMouseWheelEvent MakeWebMouseWheelEventFromUiEvent(
const MouseWheelEvent& event);
blink::WebMouseEvent MakeWebMouseEvent(const MouseEvent& event) { … }
blink::WebMouseWheelEvent MakeWebMouseWheelEvent(const MouseWheelEvent& event) { … }
blink::WebMouseWheelEvent MakeWebMouseWheelEvent(const ScrollEvent& event) { … }
blink::WebKeyboardEvent MakeWebKeyboardEvent(const KeyEvent& event) { … }
blink::WebGestureEvent MakeWebGestureEvent(const GestureEvent& event) { … }
blink::WebGestureEvent MakeWebGestureEvent(const ScrollEvent& event) { … }
blink::WebGestureEvent MakeWebGestureEventFlingCancel(
const blink::WebMouseWheelEvent& wheel_event) { … }
blink::WebMouseEvent MakeWebMouseEventFromUiEvent(const MouseEvent& event) { … }
blink::WebMouseWheelEvent MakeWebMouseWheelEventFromUiEvent(
const MouseWheelEvent& event) { … }
}