| 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 22 matching lines...) Expand all Loading... |
| 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 type of the mouse cursor icon. | 42 // Sets the type of the mouse cursor icon. |
| 43 virtual void SetCursorSet(ui::CursorSetType cursor_set) = 0; | 43 virtual void SetCursorSize(ui::CursorSize cursor_size) = 0; |
| 44 | 44 |
| 45 // Gets the type of the mouse cursor icon. | 45 // Gets the type of the mouse cursor icon. |
| 46 virtual ui::CursorSetType GetCursorSet() const = 0; | 46 virtual ui::CursorSize GetCursorSize() const = 0; |
| 47 | 47 |
| 48 // Gets whether the cursor is visible. | 48 // Gets whether the cursor is visible. |
| 49 virtual bool IsCursorVisible() const = 0; | 49 virtual bool IsCursorVisible() const = 0; |
| 50 | 50 |
| 51 // 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 |
| 52 // with DisableMouseEvents. | 52 // with DisableMouseEvents. |
| 53 virtual void EnableMouseEvents() = 0; | 53 virtual void EnableMouseEvents() = 0; |
| 54 | 54 |
| 55 // Makes mouse events stop being sent and hides the cursor if it is visible. | 55 // Makes mouse events stop being sent and hides the cursor if it is visible. |
| 56 virtual void DisableMouseEvents() = 0; | 56 virtual void DisableMouseEvents() = 0; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 | 90 |
| 91 // Sets/Gets the activation client for the specified window. | 91 // Sets/Gets the activation client for the specified window. |
| 92 AURA_EXPORT void SetCursorClient(Window* window, | 92 AURA_EXPORT void SetCursorClient(Window* window, |
| 93 CursorClient* client); | 93 CursorClient* client); |
| 94 AURA_EXPORT CursorClient* GetCursorClient(Window* window); | 94 AURA_EXPORT CursorClient* GetCursorClient(Window* window); |
| 95 | 95 |
| 96 } // namespace client | 96 } // namespace client |
| 97 } // namespace aura | 97 } // namespace aura |
| 98 | 98 |
| 99 #endif // UI_AURA_CLIENT_CURSOR_CLIENT_H_ | 99 #endif // UI_AURA_CLIENT_CURSOR_CLIENT_H_ |
| OLD | NEW |