OLD | NEW |
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 UI_AURA_CLIENT_CURSOR_CLIENT_H_ | 5 #ifndef UI_AURA_CLIENT_CURSOR_CLIENT_H_ |
6 #define UI_AURA_CLIENT_CURSOR_CLIENT_H_ | 6 #define UI_AURA_CLIENT_CURSOR_CLIENT_H_ |
7 | 7 |
8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
9 #include "ui/aura/aura_export.h" | 9 #include "ui/aura/aura_export.h" |
10 #include "ui/base/cursor/cursor.h" | 10 #include "ui/base/cursor/cursor.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 // Returns the current cursor. | 32 // Returns the current cursor. |
33 virtual gfx::NativeCursor GetCursor() const = 0; | 33 virtual gfx::NativeCursor GetCursor() const = 0; |
34 | 34 |
35 // Shows the cursor. This does not take effect When mouse events are disabled. | 35 // Shows the cursor. This does not take effect When mouse events are disabled. |
36 virtual void ShowCursor() = 0; | 36 virtual void ShowCursor() = 0; |
37 | 37 |
38 // Hides the cursor. Mouse events keep being sent even when the cursor is | 38 // Hides the cursor. Mouse events keep being sent even when the cursor is |
39 // invisible. | 39 // invisible. |
40 virtual void HideCursor() = 0; | 40 virtual void HideCursor() = 0; |
41 | 41 |
42 // Sets the scale of the mouse cursor icon. | |
43 virtual void SetScale(float scale) = 0; | |
44 | |
45 // Gets the current scale of the mouse cursor icon. | |
46 virtual float GetScale() const = 0; | |
47 | |
48 // Sets the type of the mouse cursor icon. | 42 // Sets the type of the mouse cursor icon. |
49 virtual void SetCursorSet(ui::CursorSetType cursor_set) = 0; | 43 virtual void SetCursorSet(ui::CursorSetType cursor_set) = 0; |
50 | 44 |
51 // Gets the type of the mouse cursor icon. | 45 // Gets the type of the mouse cursor icon. |
52 virtual ui::CursorSetType GetCursorSet() const = 0; | 46 virtual ui::CursorSetType GetCursorSet() const = 0; |
53 | 47 |
54 // Gets whether the cursor is visible. | 48 // Gets whether the cursor is visible. |
55 virtual bool IsCursorVisible() const = 0; | 49 virtual bool IsCursorVisible() const = 0; |
56 | 50 |
57 // Makes mouse events start being sent and shows the cursor if it was hidden | 51 // Makes mouse events start being sent and shows the cursor if it was hidden |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 | 87 |
94 // Sets/Gets the activation client for the specified window. | 88 // Sets/Gets the activation client for the specified window. |
95 AURA_EXPORT void SetCursorClient(Window* window, | 89 AURA_EXPORT void SetCursorClient(Window* window, |
96 CursorClient* client); | 90 CursorClient* client); |
97 AURA_EXPORT CursorClient* GetCursorClient(Window* window); | 91 AURA_EXPORT CursorClient* GetCursorClient(Window* window); |
98 | 92 |
99 } // namespace client | 93 } // namespace client |
100 } // namespace aura | 94 } // namespace aura |
101 | 95 |
102 #endif // UI_AURA_CLIENT_CURSOR_CLIENT_H_ | 96 #endif // UI_AURA_CLIENT_CURSOR_CLIENT_H_ |
OLD | NEW |