#include "remoting/client/input/trackpad_input_strategy.h"
#include "remoting/client/ui/desktop_viewport.h"
namespace remoting {
namespace {
const float kTapFeedbackRadius = …;
const float kDragFeedbackRadius = …;
}
TrackpadInputStrategy::TrackpadInputStrategy(const DesktopViewport& viewport)
: … { … }
TrackpadInputStrategy::~TrackpadInputStrategy() = default;
void TrackpadInputStrategy::HandleZoom(const ViewMatrix::Point& pivot,
float scale,
DesktopViewport* viewport) { … }
bool TrackpadInputStrategy::HandlePan(const ViewMatrix::Vector2D& translation,
Gesture simultaneous_gesture,
DesktopViewport* viewport) { … }
bool TrackpadInputStrategy::TrackTouchInput(
const ViewMatrix::Point& touch_point,
const DesktopViewport& viewport) { … }
ViewMatrix::Point TrackpadInputStrategy::GetCursorPosition() const { … }
void TrackpadInputStrategy::FocusViewportOnCursor(
DesktopViewport* viewport) const { … }
ViewMatrix::Vector2D TrackpadInputStrategy::MapScreenVectorToDesktop(
const ViewMatrix::Vector2D& delta,
const DesktopViewport& viewport) const { … }
float TrackpadInputStrategy::GetFeedbackRadius(TouchFeedbackType type) const { … }
bool TrackpadInputStrategy::IsCursorVisible() const { … }
}