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