| 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 ASH_WM_ASH_NATIVE_CURSOR_MANAGER_H_ | 5 #ifndef ASH_WM_ASH_NATIVE_CURSOR_MANAGER_H_ |
| 6 #define ASH_WM_ASH_NATIVE_CURSOR_MANAGER_H_ | 6 #define ASH_WM_ASH_NATIVE_CURSOR_MANAGER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "ash/ash_export.h" | 10 #include "ash/ash_export.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 // Toggle native cursor enabled/disabled. | 39 // Toggle native cursor enabled/disabled. |
| 40 // The native cursor is enabled by default. When disabled, we hide the native | 40 // The native cursor is enabled by default. When disabled, we hide the native |
| 41 // cursor regardless of visibility state, and let CursorWindowManager draw | 41 // cursor regardless of visibility state, and let CursorWindowManager draw |
| 42 // the cursor. | 42 // the cursor. |
| 43 void SetNativeCursorEnabled(bool enabled); | 43 void SetNativeCursorEnabled(bool enabled); |
| 44 | 44 |
| 45 private: | 45 private: |
| 46 friend class test::CursorManagerTestApi; | 46 friend class test::CursorManagerTestApi; |
| 47 | 47 |
| 48 // Overridden from ::wm::NativeCursorManager: | 48 // Overridden from ::wm::NativeCursorManager: |
| 49 void SetDisplay(const gfx::Display& display, | 49 void SetDisplay(const display::Display& display, |
| 50 ::wm::NativeCursorManagerDelegate* delegate) override; | 50 ::wm::NativeCursorManagerDelegate* delegate) override; |
| 51 void SetCursor(gfx::NativeCursor cursor, | 51 void SetCursor(gfx::NativeCursor cursor, |
| 52 ::wm::NativeCursorManagerDelegate* delegate) override; | 52 ::wm::NativeCursorManagerDelegate* delegate) override; |
| 53 void SetVisibility(bool visible, | 53 void SetVisibility(bool visible, |
| 54 ::wm::NativeCursorManagerDelegate* delegate) override; | 54 ::wm::NativeCursorManagerDelegate* delegate) override; |
| 55 void SetCursorSet(ui::CursorSetType cursor_set, | 55 void SetCursorSet(ui::CursorSetType cursor_set, |
| 56 ::wm::NativeCursorManagerDelegate* delegate) override; | 56 ::wm::NativeCursorManagerDelegate* delegate) override; |
| 57 void SetMouseEventsEnabled( | 57 void SetMouseEventsEnabled( |
| 58 bool enabled, | 58 bool enabled, |
| 59 ::wm::NativeCursorManagerDelegate* delegate) override; | 59 ::wm::NativeCursorManagerDelegate* delegate) override; |
| 60 | 60 |
| 61 // The cursor location where the cursor was disabled. | 61 // The cursor location where the cursor was disabled. |
| 62 gfx::Point disabled_cursor_location_; | 62 gfx::Point disabled_cursor_location_; |
| 63 | 63 |
| 64 bool native_cursor_enabled_; | 64 bool native_cursor_enabled_; |
| 65 | 65 |
| 66 std::unique_ptr<ui::ImageCursors> image_cursors_; | 66 std::unique_ptr<ui::ImageCursors> image_cursors_; |
| 67 | 67 |
| 68 DISALLOW_COPY_AND_ASSIGN(AshNativeCursorManager); | 68 DISALLOW_COPY_AND_ASSIGN(AshNativeCursorManager); |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 } // namespace ash | 71 } // namespace ash |
| 72 | 72 |
| 73 #endif // ASH_WM_ASH_NATIVE_CURSOR_MANAGER_H_ | 73 #endif // ASH_WM_ASH_NATIVE_CURSOR_MANAGER_H_ |
| OLD | NEW |