chromium/remoting/client/input/touch_input_scaler.cc

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

#include "remoting/client/input/touch_input_scaler.h"

#include <algorithm>

#include "base/check_op.h"
#include "remoting/proto/event.pb.h"

namespace remoting {

TouchEvent;
TouchEventPoint;

namespace {

// |value| is the number to be scaled. |output_max| is the output desktop's max
// height or width. |input_max| is the input desktop's max height or width.
float Scale(float value, int output_max, int input_max) {}

// Same as Scale() but |value| will be scaled and clamped using |output_max| and
// |input_max|.
float ScaleAndClamp(float value, int output_max, int input_max) {}

}  // namespace

TouchInputScaler::TouchInputScaler(InputStub* input_stub)
    :{}

TouchInputScaler::~TouchInputScaler() = default;

void TouchInputScaler::InjectTouchEvent(const TouchEvent& event) {}

}  // namespace remoting