mirror_window_test_api.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Copyright (c) 2013 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 ASH_DISPLAY_MIRROR_WINDOW_TEST_API_H_
  5. #define ASH_DISPLAY_MIRROR_WINDOW_TEST_API_H_
  6. #include <vector>
  7. #include "ui/base/cursor/mojom/cursor_type.mojom-forward.h"
  8. namespace aura {
  9. class Window;
  10. class WindowTreeHost;
  11. } // namespace aura
  12. namespace gfx {
  13. class Point;
  14. }
  15. namespace ash {
  16. class MirrorWindowTestApi {
  17. public:
  18. MirrorWindowTestApi() {}
  19. MirrorWindowTestApi(const MirrorWindowTestApi&) = delete;
  20. MirrorWindowTestApi& operator=(const MirrorWindowTestApi&) = delete;
  21. ~MirrorWindowTestApi() {}
  22. std::vector<aura::WindowTreeHost*> GetHosts() const;
  23. ui::mojom::CursorType GetCurrentCursorType() const;
  24. // Returns the position of the hot point within the cursor. This is
  25. // unaffected by the cursor location.
  26. const gfx::Point& GetCursorHotPoint() const;
  27. // Returns the position of the cursor hot point in root window coordinates.
  28. // This should be the same as the native cursor location.
  29. gfx::Point GetCursorHotPointLocationInRootWindow() const;
  30. const aura::Window* GetCursorWindow() const;
  31. gfx::Point GetCursorLocation() const;
  32. };
  33. } // namespace ash
  34. #endif // ASH_DISPLAY_MIRROR_WINDOW_TEST_API_H_