| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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_CORE_NATIVE_CURSOR_MANAGER_H_ | 5 #ifndef UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_ |
| 6 #define UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_ | 6 #define UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "ui/base/cursor/cursor.h" | 9 #include "ui/base/cursor/cursor.h" |
| 10 #include "ui/wm/core/native_cursor_manager_delegate.h" | 10 #include "ui/wm/core/native_cursor_manager_delegate.h" |
| 11 #include "ui/wm/wm_export.h" | 11 #include "ui/wm/wm_export.h" |
| 12 | 12 |
| 13 namespace gfx { | 13 namespace display { |
| 14 class Display; | 14 class Display; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace display { | |
| 18 using Display = gfx::Display; | |
| 19 } | |
| 20 | |
| 21 namespace wm { | 17 namespace wm { |
| 22 | 18 |
| 23 // Interface where platforms such as Ash or Desktop aura are notified of | 19 // Interface where platforms such as Ash or Desktop aura are notified of |
| 24 // requested changes to cursor state. When requested, implementer should tell | 20 // requested changes to cursor state. When requested, implementer should tell |
| 25 // the CursorManager of any actual state changes performed through the | 21 // the CursorManager of any actual state changes performed through the |
| 26 // delegate. | 22 // delegate. |
| 27 class WM_EXPORT NativeCursorManager { | 23 class WM_EXPORT NativeCursorManager { |
| 28 public: | 24 public: |
| 29 virtual ~NativeCursorManager() {} | 25 virtual ~NativeCursorManager() {} |
| 30 | 26 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 55 // implementer should call NativeCursorManagerDelegate:: | 51 // implementer should call NativeCursorManagerDelegate:: |
| 56 // CommitMouseEventsEnabled() with whether mouse events are actually enabled. | 52 // CommitMouseEventsEnabled() with whether mouse events are actually enabled. |
| 57 virtual void SetMouseEventsEnabled( | 53 virtual void SetMouseEventsEnabled( |
| 58 bool enabled, | 54 bool enabled, |
| 59 NativeCursorManagerDelegate* delegate) = 0; | 55 NativeCursorManagerDelegate* delegate) = 0; |
| 60 }; | 56 }; |
| 61 | 57 |
| 62 } // namespace wm | 58 } // namespace wm |
| 63 | 59 |
| 64 #endif // UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_ | 60 #endif // UI_WM_CORE_NATIVE_CURSOR_MANAGER_H_ |
| OLD | NEW |