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_CURSOR_DELEGATE_H_ | 5 #ifndef ASH_WM_CURSOR_DELEGATE_H_ |
6 #define UI_AURA_CURSOR_DELEGATE_H_ | 6 #define ASH_WM_CURSOR_DELEGATE_H_ |
7 | 7 |
8 #include "ui/aura/aura_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ui/gfx/native_widget_types.h" | 9 #include "ui/gfx/native_widget_types.h" |
10 | 10 |
11 namespace aura { | 11 namespace ash { |
12 | 12 |
13 // This interface is implmented by a platform specific object that changes | 13 // This interface is implmented by a platform specific object that changes |
14 // the cursor's image and visibility. | 14 // the cursor's image and visibility. |
15 class AURA_EXPORT CursorDelegate { | 15 class ASH_EXPORT CursorDelegate { |
16 public: | 16 public: |
17 virtual void SetCursor(gfx::NativeCursor cursor) = 0; | 17 virtual void SetCursor(gfx::NativeCursor cursor) = 0; |
18 virtual void ShowCursor(bool visible) = 0; | 18 virtual void ShowCursor(bool visible) = 0; |
19 | 19 |
20 protected: | 20 protected: |
21 virtual ~CursorDelegate() {}; | 21 virtual ~CursorDelegate() {}; |
22 }; | 22 }; |
23 | 23 |
24 } // namespace aura | 24 } // namespace aura |
25 | 25 |
26 #endif // UI_AURA_CURSOR_DELEGATE_H_ | 26 #endif // ASH_WM_CURSOR_DELEGATE_H_ |
OLD | NEW |