forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mouse_warp_controller.h
34 lines (25 loc) · 945 Bytes
/
mouse_warp_controller.h
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
34
// 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.
#ifndef ASH_DISPLAY_MOUSE_WARP_CONTROLLER_H
#define ASH_DISPLAY_MOUSE_WARP_CONTROLLER_H
#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 {
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