#include "content/common/input/synthetic_mouse_driver.h"
#include "base/memory/weak_ptr.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "content/common/input/synthetic_gesture_target.h"
#include "third_party/blink/public/common/input/synthetic_web_input_event_builders.h"
namespace content {
SyntheticMouseDriverBase::SyntheticMouseDriverBase() : … { … }
SyntheticMouseDriverBase::~SyntheticMouseDriverBase() = default;
void SyntheticMouseDriverBase::DispatchEvent(SyntheticGestureTarget* target,
const base::TimeTicks& timestamp) { … }
void SyntheticMouseDriverBase::Press(
float x,
float y,
int index,
SyntheticPointerActionParams::Button button,
int key_modifiers,
float width,
float height,
float rotation_angle,
float force,
float tangential_pressure,
int tilt_x,
int tilt_y,
const base::TimeTicks& timestamp) { … }
void SyntheticMouseDriverBase::Move(
float x,
float y,
int index,
int key_modifiers,
float width,
float height,
float rotation_angle,
float force,
float tangential_pressure,
int tilt_x,
int tilt_y,
SyntheticPointerActionParams::Button button) { … }
void SyntheticMouseDriverBase::Release(
int index,
SyntheticPointerActionParams::Button button,
int key_modifiers) { … }
void SyntheticMouseDriverBase::Cancel(
int index,
SyntheticPointerActionParams::Button button,
int key_modifiers) { … }
void SyntheticMouseDriverBase::Leave(int index) { … }
bool SyntheticMouseDriverBase::UserInputCheck(
const SyntheticPointerActionParams& params) const { … }
int SyntheticMouseDriverBase::ComputeClickCount(
const base::TimeTicks& timestamp,
blink::WebMouseEvent::Button pressed_button,
float x,
float y) { … }
SyntheticMouseDriver::SyntheticMouseDriver() = default;
SyntheticMouseDriver::~SyntheticMouseDriver() = default;
base::WeakPtr<SyntheticPointerDriver> SyntheticMouseDriver::AsWeakPtr() { … }
}