fake_mouse_cursor_monitor.h 896 B

12345678910111213141516171819202122232425262728293031
  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.
  4. #ifndef REMOTING_HOST_FAKE_MOUSE_CURSOR_MONITOR_H_
  5. #define REMOTING_HOST_FAKE_MOUSE_CURSOR_MONITOR_H_
  6. #include "base/memory/raw_ptr.h"
  7. #include "third_party/webrtc/modules/desktop_capture/mouse_cursor_monitor.h"
  8. namespace remoting {
  9. class FakeMouseCursorMonitor : public webrtc::MouseCursorMonitor {
  10. public:
  11. FakeMouseCursorMonitor();
  12. FakeMouseCursorMonitor(const FakeMouseCursorMonitor&) = delete;
  13. FakeMouseCursorMonitor& operator=(const FakeMouseCursorMonitor&) = delete;
  14. ~FakeMouseCursorMonitor() override;
  15. void Init(Callback* callback, Mode mode) override;
  16. void Capture() override;
  17. private:
  18. raw_ptr<Callback> callback_;
  19. };
  20. } // namespace remoting
  21. #endif // REMOTING_HOST_FAKE_MOUSE_CURSOR_MONITOR_H_