#include "components/input/touch_action_filter.h"
#include <math.h>
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/trace_event/trace_event.h"
#include "third_party/blink/public/common/input/web_gesture_event.h"
#include "ui/base/ui_base_features.h"
#include "ui/events/blink/blink_features.h"
WebInputEvent;
WebGestureEvent;
namespace input {
namespace {
bool IsYAxisActionDisallowed(cc::TouchAction action) { … }
bool IsXAxisActionDisallowed(cc::TouchAction action) { … }
void SetCursorControlIfNecessary(WebGestureEvent* event,
cc::TouchAction action) { … }
}
TouchActionFilter::TouchActionFilter() { … }
TouchActionFilter::~TouchActionFilter() { … }
FilterGestureEventResult TouchActionFilter::FilterGestureEvent(
WebGestureEvent* gesture_event) { … }
void TouchActionFilter::SetTouchAction(cc::TouchAction touch_action) { … }
FilterGestureEventResult TouchActionFilter::FilterPinchEventAndResetState() { … }
FilterGestureEventResult TouchActionFilter::FilterScrollEventAndResetState() { … }
void TouchActionFilter::ForceResetTouchActionForTest() { … }
void TouchActionFilter::OnSetTouchAction(cc::TouchAction touch_action) { … }
void TouchActionFilter::IncreaseActiveTouches() { … }
void TouchActionFilter::DecreaseActiveTouches() { … }
void TouchActionFilter::ReportAndResetTouchAction() { … }
void TouchActionFilter::ResetTouchAction() { … }
void TouchActionFilter::OnSetCompositorAllowedTouchAction(
cc::TouchAction allowed_touch_action) { … }
bool TouchActionFilter::ShouldSuppressScrolling(
const blink::WebGestureEvent& gesture_event,
cc::TouchAction touch_action,
bool is_active_touch_action) { … }
void TouchActionFilter::OnHasTouchEventHandlers(bool has_handlers) { … }
}