| 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 "ui/aura/aura_export.h" | 9 #include "ui/aura/aura_export.h" |
| 10 | 10 |
| 11 #include "ui/aura/client/cursor_client.h" | 11 #include "ui/aura/client/cursor_client.h" |
| 12 | 12 |
| 13 namespace aura { | 13 namespace aura { |
| 14 class RootWindow; | 14 class RootWindow; |
| 15 | 15 |
| 16 // A CursorClient that interacts with only one RootWindow. (Unlike the one in | 16 // A CursorClient that interacts with only one RootWindow. (Unlike the one in |
| 17 // ash, which interacts with all the RootWindows.) | 17 // ash, which interacts with all the RootWindows.) |
| 18 class AURA_EXPORT DesktopCursorClient : public client::CursorClient { | 18 class AURA_EXPORT DesktopCursorClient : public client::CursorClient { |
| 19 public: | 19 public: |
| 20 explicit DesktopCursorClient(aura::RootWindow* window); | 20 explicit DesktopCursorClient(aura::RootWindow* window); |
| 21 virtual ~DesktopCursorClient(); | 21 virtual ~DesktopCursorClient(); |
| 22 | 22 |
| 23 // Overridden from client::CursorClient: | 23 // Overridden from client::CursorClient: |
| 24 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; | 24 virtual void SetCursor(gfx::NativeCursor cursor) OVERRIDE; |
| 25 virtual void ShowCursor(bool show) OVERRIDE; | 25 virtual void ShowCursor(bool show) OVERRIDE; |
| 26 virtual bool IsCursorVisible() const OVERRIDE; | 26 virtual bool IsCursorVisible() const OVERRIDE; |
| 27 virtual void SetDeviceScaleFactor(float scale_factor) OVERRIDE; |
| 27 | 28 |
| 28 private: | 29 private: |
| 29 aura::RootWindow* root_window_; | 30 aura::RootWindow* root_window_; |
| 30 | 31 |
| 31 DISALLOW_COPY_AND_ASSIGN(DesktopCursorClient); | 32 DISALLOW_COPY_AND_ASSIGN(DesktopCursorClient); |
| 32 }; | 33 }; |
| 33 | 34 |
| 34 } // namespace aura | 35 } // namespace aura |
| 35 | 36 |
| 36 #endif // UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_ | 37 #endif // UI_AURA_DESKTOP_DESKTOP_CURSOR_CLIENT_H_ |
| OLD | NEW |