Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(491)

Side by Side Diff: ash/test/mirror_window_test_api.h

Issue 948583005: Add more tests for mouse rotation,scale&position after display change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/display/mirror_window_controller_unittest.cc ('k') | ash/test/mirror_window_test_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « ash/display/mirror_window_controller_unittest.cc ('k') | ash/test/mirror_window_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698