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_DESKTOP_DESKTOP_CURSOR_CLIENT_H_ | 5 #ifndef UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_ |
6 #define UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_ | 6 #define UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "ui/aura/aura_export.h" | 10 #include "ui/aura/aura_export.h" |
(...skipping 16 matching lines...) Expand all Loading... |
27 // Overridden from client::CursorClient: | 27 // Overridden from client::CursorClient: |
28 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; | 28 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; |
29 virtual void ShowCursor(bool show) OVERRIDE; | 29 virtual void ShowCursor(bool show) OVERRIDE; |
30 virtual bool IsCursorVisible() const OVERRIDE; | 30 virtual bool IsCursorVisible() const OVERRIDE; |
31 virtual void SetDeviceScaleFactor(float device_scale_factor) OVERRIDE; | 31 virtual void SetDeviceScaleFactor(float device_scale_factor) OVERRIDE; |
32 | 32 |
33 private: | 33 private: |
34 aura::RootWindow* root_window_; | 34 aura::RootWindow* root_window_; |
35 scoped_ptr<ui::CursorLoader> cursor_loader_; | 35 scoped_ptr<ui::CursorLoader> cursor_loader_; |
36 | 36 |
| 37 gfx::NativeCursor current_cursor_; |
| 38 bool cursor_visible_; |
| 39 |
37 DISALLOW_COPY_AND_ASSIGN(DesktopCursorClient); | 40 DISALLOW_COPY_AND_ASSIGN(DesktopCursorClient); |
38 }; | 41 }; |
39 | 42 |
40 } // namespace aura | 43 } // namespace aura |
41 | 44 |
42 #endif // UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_ | 45 #endif // UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_ |
OLD | NEW |