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_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 void RemoveHost(aura::WindowTreeHost* host); | 47 void RemoveHost(aura::WindowTreeHost* host); |
48 | 48 |
49 private: | 49 private: |
50 // Overridden from wm::NativeCursorManager: | 50 // Overridden from wm::NativeCursorManager: |
51 void SetDisplay(const display::Display& display, | 51 void SetDisplay(const display::Display& display, |
52 wm::NativeCursorManagerDelegate* delegate) override; | 52 wm::NativeCursorManagerDelegate* delegate) override; |
53 void SetCursor(gfx::NativeCursor cursor, | 53 void SetCursor(gfx::NativeCursor cursor, |
54 wm::NativeCursorManagerDelegate* delegate) override; | 54 wm::NativeCursorManagerDelegate* delegate) override; |
55 void SetVisibility(bool visible, | 55 void SetVisibility(bool visible, |
56 wm::NativeCursorManagerDelegate* delegate) override; | 56 wm::NativeCursorManagerDelegate* delegate) override; |
57 void SetCursorSet(ui::CursorSetType cursor_set, | 57 void SetCursorSize(ui::CursorSize cursor_size, |
58 wm::NativeCursorManagerDelegate* delegate) override; | 58 wm::NativeCursorManagerDelegate* delegate) override; |
59 void SetMouseEventsEnabled( | 59 void SetMouseEventsEnabled( |
60 bool enabled, | 60 bool enabled, |
61 wm::NativeCursorManagerDelegate* delegate) override; | 61 wm::NativeCursorManagerDelegate* delegate) override; |
62 | 62 |
63 // The set of hosts to notify of changes in cursor state. | 63 // The set of hosts to notify of changes in cursor state. |
64 typedef std::set<aura::WindowTreeHost*> Hosts; | 64 typedef std::set<aura::WindowTreeHost*> Hosts; |
65 Hosts hosts_; | 65 Hosts hosts_; |
66 | 66 |
67 std::unique_ptr<ui::CursorLoader> cursor_loader_; | 67 std::unique_ptr<ui::CursorLoader> cursor_loader_; |
68 | 68 |
69 DISALLOW_COPY_AND_ASSIGN(DesktopNativeCursorManager); | 69 DISALLOW_COPY_AND_ASSIGN(DesktopNativeCursorManager); |
70 }; | 70 }; |
71 | 71 |
72 } // namespace views | 72 } // namespace views |
73 | 73 |
74 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_ | 74 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_ |
OLD | NEW |