Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / remoting / host / chromeos / mouse_cursor_monitor_aura.h
blob517601142fc49c1ee78ba093531d54a36ef9babd
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef REMOTING_HOST_CHROMEOS_MOUSE_CURSOR_MONITOR_AURA_H_
6 #define REMOTING_HOST_CHROMEOS_MOUSE_CURSOR_MONITOR_AURA_H_
8 #include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h"
9 #include "ui/base/cursor/cursor.h"
10 #include "ui/gfx/geometry/point.h"
12 namespace remoting {
14 // Monitors changes in cursor shape and location. It can be constructed on any
15 // thread but all public methods must be called on the capturer thread.
16 class MouseCursorMonitorAura : public webrtc::MouseCursorMonitor {
17 public:
18 MouseCursorMonitorAura();
20 // webrtc::MouseCursorMonitor implementation.
21 void Init(Callback* callback, Mode mode) override;
22 void Capture() override;
24 private:
25 void NotifyCursorChanged(const ui::Cursor& cursor);
27 Callback* callback_;
28 Mode mode_;
29 ui::Cursor last_cursor_;
30 gfx::Point last_mouse_location_;
32 DISALLOW_COPY_AND_ASSIGN(MouseCursorMonitorAura);
35 } // namespace remoting
37 #endif // REMOTING_HOST_CHROMEOS_MOUSE_CURSOR_MONITOR_AURA_H_