blob: c07cbee334a1b81d9fbe844b900e852ddf5acaca [file] [log] [blame]
// Copyright 2015 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.
#include "ash/ash_export.h"
#include "base/macros.h"
namespace ui {
class MouseEvent;
namespace ash {
// MouseWarpController implements the mouse warp behavior for
// different display modes and platforms.
class ASH_EXPORT MouseWarpController {
virtual ~MouseWarpController() {}
// An implementaion may warp the mouse cursor to another display
// when necessary. Returns true if the mouse cursor has been
// moved to another display, or false otherwise.
virtual bool WarpMouseCursor(ui::MouseEvent* event) = 0;
// Enables/Disables mouse warping.
virtual void SetEnabled(bool enable) = 0;
} // namespace ash