OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WM_PUBLIC_CURSOR_DELEGATE_H_ | 5 #ifndef UI_WM_PUBLIC_CURSOR_DELEGATE_H_ |
6 #define UI_WM_PUBLIC_CURSOR_DELEGATE_H_ | 6 #define UI_WM_PUBLIC_CURSOR_DELEGATE_H_ |
7 | 7 |
8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
9 #include "ui/wm/core/wm_core_export.h" | 9 #include "ui/wm/wm_export.h" |
10 | 10 |
11 namespace aura { | 11 namespace aura { |
12 class Window; | 12 class Window; |
13 } | 13 } |
14 | 14 |
15 namespace gfx { | 15 namespace gfx { |
16 class Point; | 16 class Point; |
17 } | 17 } |
18 | 18 |
19 namespace wm { | 19 namespace wm { |
20 | 20 |
21 class WM_CORE_EXPORT CursorDelegate { | 21 class WM_EXPORT CursorDelegate { |
22 public: | 22 public: |
23 virtual gfx::NativeCursor GetCursorForPoint(const gfx::Point& point) = 0; | 23 virtual gfx::NativeCursor GetCursorForPoint(const gfx::Point& point) = 0; |
24 | 24 |
25 protected: | 25 protected: |
26 virtual ~CursorDelegate() {} | 26 virtual ~CursorDelegate() {} |
27 }; | 27 }; |
28 | 28 |
29 WM_CORE_EXPORT void SetCursorDelegate(aura::Window* window, | 29 WM_EXPORT void SetCursorDelegate(aura::Window* window, |
30 CursorDelegate* delegate); | 30 CursorDelegate* delegate); |
31 WM_CORE_EXPORT CursorDelegate* GetCursorDelegate(aura::Window* window); | 31 WM_EXPORT CursorDelegate* GetCursorDelegate(aura::Window* window); |
32 | 32 |
33 } // namespace wm | 33 } // namespace wm |
34 | 34 |
35 #endif // UI_WM_PUBLIC_CURSOR_DELEGATE_H_ | 35 #endif // UI_WM_PUBLIC_CURSOR_DELEGATE_H_ |
OLD | NEW |