#include "ui/events/gestures/gesture_provider_aura.h"
#include <utility>
#include "base/auto_reset.h"
#include "base/check.h"
#include "build/chromeos_buildflags.h"
#include "ui/events/event.h"
#include "ui/events/event_utils.h"
#include "ui/events/gesture_detection/gesture_configuration.h"
#include "ui/events/gesture_detection/gesture_event_data.h"
#include "ui/events/gesture_detection/gesture_provider_config_helper.h"
namespace ui {
namespace {
#if BUILDFLAG(IS_CHROMEOS_ASH)
constexpr bool kDoubleTapPlatformSupport = true;
#else
constexpr bool kDoubleTapPlatformSupport = …;
#endif
}
GestureProviderAura::GestureProviderAura(GestureConsumer* consumer,
GestureProviderAuraClient* client)
: … { … }
GestureProviderAura::~GestureProviderAura() { … }
bool GestureProviderAura::OnTouchEvent(TouchEvent* event) { … }
void GestureProviderAura::OnTouchEventAck(
uint32_t unique_touch_event_id,
bool event_consumed,
bool is_source_touch_event_set_blocking) { … }
void GestureProviderAura::ResetGestureHandlingState() { … }
void GestureProviderAura::SendSynthesizedEndEvents() { … }
void GestureProviderAura::OnGestureEvent(const GestureEventData& gesture) { … }
bool GestureProviderAura::RequiresDoubleTapGestureEvents() const { … }
std::vector<std::unique_ptr<GestureEvent>>
GestureProviderAura::GetAndResetPendingGestures() { … }
void GestureProviderAura::OnTouchEnter(int pointer_id, float x, float y) { … }
}