| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_TEST_MIRROR_WINDOW_TEST_API_H_ | 5 #ifndef ASH_TEST_MIRROR_WINDOW_TEST_API_H_ |
| 6 #define ASH_TEST_MIRROR_WINDOW_TEST_API_H_ | 6 #define ASH_TEST_MIRROR_WINDOW_TEST_API_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 namespace test { | 23 namespace test { |
| 24 | 24 |
| 25 class MirrorWindowTestApi { | 25 class MirrorWindowTestApi { |
| 26 public: | 26 public: |
| 27 MirrorWindowTestApi() {} | 27 MirrorWindowTestApi() {} |
| 28 ~MirrorWindowTestApi() {} | 28 ~MirrorWindowTestApi() {} |
| 29 | 29 |
| 30 const aura::WindowTreeHost* GetHost() const; | 30 const aura::WindowTreeHost* GetHost() const; |
| 31 | 31 |
| 32 int GetCurrentCursorType() const; | 32 int GetCurrentCursorType() const; |
| 33 |
| 34 // Returns the position of the hot point within the cursor. This is |
| 35 // unaffected by the cursor location. |
| 33 const gfx::Point& GetCursorHotPoint() const; | 36 const gfx::Point& GetCursorHotPoint() const; |
| 37 |
| 38 // Returns the position of the cursor hot point in root window coordinates. |
| 39 // This should be the same as the native cursor location. |
| 40 gfx::Point GetCursorHotPointLocationInRootWindow() const; |
| 41 |
| 34 const aura::Window* GetCursorWindow() const; | 42 const aura::Window* GetCursorWindow() const; |
| 35 gfx::Point GetCursorLocation() const; | 43 gfx::Point GetCursorLocation() const; |
| 36 | 44 |
| 37 scoped_ptr<RootWindowTransformer> CreateCurrentRootWindowTransformer() const; | 45 scoped_ptr<RootWindowTransformer> CreateCurrentRootWindowTransformer() const; |
| 38 | 46 |
| 39 private: | 47 private: |
| 40 DISALLOW_COPY_AND_ASSIGN(MirrorWindowTestApi); | 48 DISALLOW_COPY_AND_ASSIGN(MirrorWindowTestApi); |
| 41 }; | 49 }; |
| 42 | 50 |
| 43 } // namespace test | 51 } // namespace test |
| 44 } // namespace ash | 52 } // namespace ash |
| 45 | 53 |
| 46 #endif // ASH_TEST_MIRROR_WINDOW_TEST_API_H_ | 54 #endif // ASH_TEST_MIRROR_WINDOW_TEST_API_H_ |
| OLD | NEW |