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"
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
{
18 MouseCursorMonitorAura();
20 // webrtc::MouseCursorMonitor implementation.
21 void Init(Callback
* callback
, Mode mode
) override
;
22 void Capture() override
;
25 void NotifyCursorChanged(const ui::Cursor
& cursor
);
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_