| 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 <set> | 8 #include <set> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 wm::NativeCursorManagerDelegate* delegate) OVERRIDE; | 53 wm::NativeCursorManagerDelegate* delegate) OVERRIDE; |
| 54 virtual void SetCursor( | 54 virtual void SetCursor( |
| 55 gfx::NativeCursor cursor, | 55 gfx::NativeCursor cursor, |
| 56 wm::NativeCursorManagerDelegate* delegate) OVERRIDE; | 56 wm::NativeCursorManagerDelegate* delegate) OVERRIDE; |
| 57 virtual void SetVisibility( | 57 virtual void SetVisibility( |
| 58 bool visible, | 58 bool visible, |
| 59 wm::NativeCursorManagerDelegate* delegate) OVERRIDE; | 59 wm::NativeCursorManagerDelegate* delegate) OVERRIDE; |
| 60 virtual void SetCursorSet( | 60 virtual void SetCursorSet( |
| 61 ui::CursorSetType cursor_set, | 61 ui::CursorSetType cursor_set, |
| 62 wm::NativeCursorManagerDelegate* delegate) OVERRIDE; | 62 wm::NativeCursorManagerDelegate* delegate) OVERRIDE; |
| 63 virtual void SetScale( | |
| 64 float scale, | |
| 65 wm::NativeCursorManagerDelegate* delegate) OVERRIDE; | |
| 66 virtual void SetMouseEventsEnabled( | 63 virtual void SetMouseEventsEnabled( |
| 67 bool enabled, | 64 bool enabled, |
| 68 wm::NativeCursorManagerDelegate* delegate) OVERRIDE; | 65 wm::NativeCursorManagerDelegate* delegate) OVERRIDE; |
| 69 | 66 |
| 70 // The set of hosts to notify of changes in cursor state. | 67 // The set of hosts to notify of changes in cursor state. |
| 71 typedef std::set<aura::WindowTreeHost*> Hosts; | 68 typedef std::set<aura::WindowTreeHost*> Hosts; |
| 72 Hosts hosts_; | 69 Hosts hosts_; |
| 73 | 70 |
| 74 scoped_ptr<DesktopCursorLoaderUpdater> cursor_loader_updater_; | 71 scoped_ptr<DesktopCursorLoaderUpdater> cursor_loader_updater_; |
| 75 scoped_ptr<ui::CursorLoader> cursor_loader_; | 72 scoped_ptr<ui::CursorLoader> cursor_loader_; |
| 76 | 73 |
| 77 DISALLOW_COPY_AND_ASSIGN(DesktopNativeCursorManager); | 74 DISALLOW_COPY_AND_ASSIGN(DesktopNativeCursorManager); |
| 78 }; | 75 }; |
| 79 | 76 |
| 80 } // namespace views | 77 } // namespace views |
| 81 | 78 |
| 82 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_ | 79 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_CURSOR_MANAGER_H_ |
| 83 | 80 |
| OLD | NEW |