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

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

Issue 226293005: Use platform's device scale factor for cursor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: new tests Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_CURSOR_MANAGER_TEST_API_H_ 5 #ifndef ASH_TEST_CURSOR_MANAGER_TEST_API_H_
6 #define ASH_TEST_CURSOR_MANAGER_TEST_API_H_ 6 #define ASH_TEST_CURSOR_MANAGER_TEST_API_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "ui/base/cursor/cursor.h" 9 #include "ui/base/cursor/cursor.h"
10 #include "ui/gfx/display.h"
10 #include "ui/gfx/native_widget_types.h" 11 #include "ui/gfx/native_widget_types.h"
11 12
12 namespace gfx {
13 class Display;
14 }
15
16 namespace wm { 13 namespace wm {
17 class CursorManager; 14 class CursorManager;
18 } 15 }
19 16
20 namespace ash { 17 namespace ash {
21 namespace test { 18 namespace test {
22 19
23 // Use the api in this class to test CursorManager. 20 // Use the api in this class to test CursorManager.
24 class CursorManagerTestApi { 21 class CursorManagerTestApi {
25 public: 22 public:
26 explicit CursorManagerTestApi(::wm::CursorManager* cursor_manager); 23 explicit CursorManagerTestApi(::wm::CursorManager* cursor_manager);
27 ~CursorManagerTestApi(); 24 ~CursorManagerTestApi();
28 25
29 ui::CursorSetType GetCurrentCursorSet() const; 26 ui::CursorSetType GetCurrentCursorSet() const;
30 gfx::NativeCursor GetCurrentCursor() const; 27 gfx::NativeCursor GetCurrentCursor() const;
31 gfx::Display GetDisplay() const; 28 gfx::Display::Rotation GetCurrentCursorRotation() const;
29 float GetCurrentCursorScale() const;
32 30
33 private: 31 private:
34 ::wm::CursorManager* cursor_manager_; 32 ::wm::CursorManager* cursor_manager_;
35 33
36 DISALLOW_COPY_AND_ASSIGN(CursorManagerTestApi); 34 DISALLOW_COPY_AND_ASSIGN(CursorManagerTestApi);
37 }; 35 };
38 36
39 } // namespace test 37 } // namespace test
40 } // namespace ash 38 } // namespace ash
41 39
42 #endif // ASH_TEST_CURSOR_MANAGER_TEST_API_H_ 40 #endif // ASH_TEST_CURSOR_MANAGER_TEST_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698