#include "content/browser/renderer_host/input/motion_event_web.h"
#include <numbers>
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/numerics/angle_conversions.h"
#include "components/input/web_touch_event_traits.h"
#include "ui/events/blink/blink_event_util.h"
WebInputEvent;
WebPointerProperties;
WebTouchEvent;
WebTouchPoint;
WebTouchEventTraits;
namespace content {
namespace {
ui::MotionEvent::Action GetActionFrom(const WebTouchEvent& event) { … }
int GetActionIndexFrom(const WebTouchEvent& event) { … }
}
MotionEventWeb::MotionEventWeb(const WebTouchEvent& event)
: … { … }
MotionEventWeb::~MotionEventWeb() { … }
uint32_t MotionEventWeb::GetUniqueEventId() const { … }
MotionEventWeb::Action MotionEventWeb::GetAction() const { … }
int MotionEventWeb::GetActionIndex() const { … }
size_t MotionEventWeb::GetPointerCount() const { … }
int MotionEventWeb::GetPointerId(size_t pointer_index) const { … }
float MotionEventWeb::GetX(size_t pointer_index) const { … }
float MotionEventWeb::GetY(size_t pointer_index) const { … }
float MotionEventWeb::GetRawX(size_t pointer_index) const { … }
float MotionEventWeb::GetRawY(size_t pointer_index) const { … }
float MotionEventWeb::GetTouchMajor(size_t pointer_index) const { … }
float MotionEventWeb::GetTouchMinor(size_t pointer_index) const { … }
float MotionEventWeb::GetOrientation(size_t pointer_index) const { … }
float MotionEventWeb::GetPressure(size_t pointer_index) const { … }
float MotionEventWeb::GetTiltX(size_t pointer_index) const { … }
float MotionEventWeb::GetTiltY(size_t pointer_index) const { … }
float MotionEventWeb::GetTwist(size_t pointer_index) const { … }
float MotionEventWeb::GetTangentialPressure(size_t pointer_index) const { … }
base::TimeTicks MotionEventWeb::GetEventTime() const { … }
ui::MotionEvent::ToolType MotionEventWeb::GetToolType(
size_t pointer_index) const { … }
int MotionEventWeb::GetButtonState() const { … }
int MotionEventWeb::GetFlags() const { … }
}