#include "content/browser/renderer_host/input/synthetic_gesture_target_aura.h"
#include <stddef.h>
#include <memory>
#include <vector>
#include "content/browser/renderer_host/render_widget_host_impl.h"
#include "content/browser/renderer_host/render_widget_host_view_aura.h"
#include "ui/aura/window.h"
#include "ui/aura/window_tree_host.h"
#include "ui/compositor/compositor.h"
#include "ui/events/blink/blink_event_util.h"
#include "ui/events/event_sink.h"
#include "ui/events/event_utils.h"
#include "ui/events/gesture_detection/gesture_configuration.h"
WebTouchEvent;
WebMouseWheelEvent;
namespace content {
namespace {
int WebEventButtonToUIEventButtonFlags(blink::WebMouseEvent::Button button) { … }
enum class TouchEventCoordinateSystem { … };
ui::EventType WebTouchPointStateToEventType(blink::WebTouchPoint::State state) { … }
bool MakeUITouchEventsFromWebTouchEvents(
const input::TouchEventWithLatencyInfo& touch_with_latency,
std::vector<std::unique_ptr<ui::TouchEvent>>* list,
TouchEventCoordinateSystem coordinate_system) { … }
}
SyntheticGestureTargetAura::SyntheticGestureTargetAura(
RenderWidgetHostImpl* host)
: … { … }
SyntheticGestureTargetAura::~SyntheticGestureTargetAura() { … }
void SyntheticGestureTargetAura::DispatchWebTouchEventToPlatform(
const WebTouchEvent& web_touch,
const ui::LatencyInfo& latency_info) { … }
void SyntheticGestureTargetAura::DispatchWebMouseWheelEventToPlatform(
const blink::WebMouseWheelEvent& web_wheel,
const ui::LatencyInfo&) { … }
void SyntheticGestureTargetAura::DispatchWebGestureEventToPlatform(
const blink::WebGestureEvent& web_gesture,
const ui::LatencyInfo& latency_info) { … }
void SyntheticGestureTargetAura::DispatchWebMouseEventToPlatform(
const blink::WebMouseEvent& web_mouse_event,
const ui::LatencyInfo& latency_info) { … }
content::mojom::GestureSourceType
SyntheticGestureTargetAura::GetDefaultSyntheticGestureSourceType() const { … }
void SyntheticGestureTargetAura::GetVSyncParameters(
base::TimeTicks& timebase,
base::TimeDelta& interval) const { … }
void SyntheticGestureTargetAura::OnBeginFrame(base::TimeTicks frame_begin_time,
base::TimeDelta frame_interval) { … }
void SyntheticGestureTargetAura::OnBeginFrameSourceShuttingDown() { … }
float SyntheticGestureTargetAura::GetTouchSlopInDips() const { … }
float SyntheticGestureTargetAura::GetSpanSlopInDips() const { … }
float SyntheticGestureTargetAura::GetMinScalingSpanInDips() const { … }
RenderWidgetHostViewAura* SyntheticGestureTargetAura::GetView() const { … }
aura::Window* SyntheticGestureTargetAura::GetWindow() const { … }
}