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

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, 10 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
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 43
36 scoped_ptr<RootWindowTransformer> CreateCurrentRootWindowTransformer() const; 44 scoped_ptr<RootWindowTransformer> CreateCurrentRootWindowTransformer() const;
37 45
38 private: 46 private:
39 DISALLOW_COPY_AND_ASSIGN(MirrorWindowTestApi); 47 DISALLOW_COPY_AND_ASSIGN(MirrorWindowTestApi);
40 }; 48 };
41 49
42 } // namespace test 50 } // namespace test
43 } // namespace ash 51 } // namespace ash
44 52
45 #endif // ASH_TEST_MIRROR_WINDOW_TEST_API_H_ 53 #endif // ASH_TEST_MIRROR_WINDOW_TEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698