chromium/components/input/touch_action_filter.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// Actions on an axis are disallowed if the perpendicular axis has a filter set
// and no filter is set for the queried axis.
bool IsYAxisActionDisallowed(cc::TouchAction action) {}

bool IsXAxisActionDisallowed(cc::TouchAction action) {}

void SetCursorControlIfNecessary(WebGestureEvent* event,
                                 cc::TouchAction action) {}

}  // namespace

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) {}

}  // namespace input