1
    2
    3
    4
    5
    6
    7
    8
    9
   10
   11
   12
   13
   14
   15
   16
   17
   18
   19
   20
   21
   22
   23
   24
   25
   26
   27
   28
   29
   30
   31
   32
   33

ash / display / mouse_warp_controller.h [blame]

// 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.

#ifndef ASH_DISPLAY_MOUSE_WARP_CONTROLLER_H_
#define ASH_DISPLAY_MOUSE_WARP_CONTROLLER_H_

#include "ash/ash_export.h"

namespace ui {
class MouseEvent;
}

namespace ash {

// MouseWarpController implements the mouse warp behavior for
// different display modes and platforms.
class ASH_EXPORT MouseWarpController {
 public:
  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

#endif  // ASH_DISPLAY_MOUSE_WARP_CONTROLLER_H_