#include "content/common/input/synthetic_gesture_controller.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/scoped_refptr.h"
#include "base/task/sequenced_task_runner.h"
#include "base/trace_event/trace_event.h"
#include "content/common/input/synthetic_gesture_target.h"
namespace content {
SyntheticGestureController::SyntheticGestureController(
Delegate* delegate,
std::unique_ptr<SyntheticGestureTarget> gesture_target,
scoped_refptr<base::SequencedTaskRunner> task_runner)
: … { … }
SyntheticGestureController::~SyntheticGestureController() { … }
void SyntheticGestureController::EnsureRendererInitialized(
base::OnceClosure on_completed) { … }
bool SyntheticGestureController::IsHiddenAndNeedsVisible() const { … }
void SyntheticGestureController::StartIfNeeded() { … }
void SyntheticGestureController::QueueSyntheticGesture(
std::unique_ptr<SyntheticGesture> synthetic_gesture,
OnGestureCompleteCallback completion_callback) { … }
void SyntheticGestureController::QueueSyntheticGestureCompleteImmediately(
std::unique_ptr<SyntheticGesture> synthetic_gesture) { … }
void SyntheticGestureController::QueueSyntheticGesture(
std::unique_ptr<SyntheticGesture> synthetic_gesture,
OnGestureCompleteCallback completion_callback,
bool complete_immediately) { … }
void SyntheticGestureController::StartOrUpdateTimer() { … }
bool SyntheticGestureController::DispatchNextEvent(base::TimeTicks timestamp) { … }
void SyntheticGestureController::StartGesture() { … }
void SyntheticGestureController::StopGesture(const SyntheticGesture& gesture,
SyntheticGesture::Result result,
bool complete_immediately) { … }
void SyntheticGestureController::GestureCompleted(
SyntheticGesture::Result result) { … }
SyntheticGestureController::GestureAndCallbackQueue::GestureAndCallbackQueue() { … }
SyntheticGestureController::GestureAndCallbackQueue::
~GestureAndCallbackQueue() { … }
}