blob: 848f4d071fc148d82f8e231d42b7ebfef6e7e821 [file] [log] [blame]
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef ASH_AUTOCLICK_AUTOCLICK_SCROLL_POSITION_HANDLER_H_
#define ASH_AUTOCLICK_AUTOCLICK_SCROLL_POSITION_HANDLER_H_
#include <memory>
#include "base/macros.h"
#include "ui/gfx/geometry/point.h"
#include "ui/views/widget/widget.h"
namespace ash {
class AutoclickScrollPositionView;
// AutoclickScrollPositionHandler displays the position at which the next scroll
// event will occur, giving users a sense of which part of the screen will
// receive scroll events.
class AutoclickScrollPositionHandler {
public:
AutoclickScrollPositionHandler(const gfx::Point& center_point_in_screen,
views::Widget* widget);
~AutoclickScrollPositionHandler();
void SetCenter(const gfx::Point& center_point_in_screen,
views::Widget* widget);
private:
std::unique_ptr<AutoclickScrollPositionView> view_;
DISALLOW_COPY_AND_ASSIGN(AutoclickScrollPositionHandler);
};
} // namespace ash
#endif // ASH_AUTOCLICK_AUTOCLICK_SCROLL_POSITION_HANDLER_H_