OLD | NEW |
1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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_NATIVE_CURSOR_MANAGER_ASH_MUS_H_ | 5 #ifndef ASH_WM_NATIVE_CURSOR_MANAGER_ASH_MUS_H_ |
6 #define ASH_WM_NATIVE_CURSOR_MANAGER_ASH_MUS_H_ | 6 #define ASH_WM_NATIVE_CURSOR_MANAGER_ASH_MUS_H_ |
7 | 7 |
8 #include "ash/wm/native_cursor_manager_ash.h" | 8 #include "ash/wm/native_cursor_manager_ash.h" |
9 | 9 |
10 namespace ui { | 10 namespace ui { |
(...skipping 23 matching lines...) Expand all Loading... |
34 float GetScale() const override; | 34 float GetScale() const override; |
35 display::Display::Rotation GetRotation() const override; | 35 display::Display::Rotation GetRotation() const override; |
36 | 36 |
37 // Overridden from ::wm::NativeCursorManager: | 37 // Overridden from ::wm::NativeCursorManager: |
38 void SetDisplay(const display::Display& display, | 38 void SetDisplay(const display::Display& display, |
39 ::wm::NativeCursorManagerDelegate* delegate) override; | 39 ::wm::NativeCursorManagerDelegate* delegate) override; |
40 void SetCursor(gfx::NativeCursor cursor, | 40 void SetCursor(gfx::NativeCursor cursor, |
41 ::wm::NativeCursorManagerDelegate* delegate) override; | 41 ::wm::NativeCursorManagerDelegate* delegate) override; |
42 void SetVisibility(bool visible, | 42 void SetVisibility(bool visible, |
43 ::wm::NativeCursorManagerDelegate* delegate) override; | 43 ::wm::NativeCursorManagerDelegate* delegate) override; |
44 void SetCursorSet(ui::CursorSetType cursor_set, | 44 void SetCursorSize(ui::CursorSize cursor_size, |
45 ::wm::NativeCursorManagerDelegate* delegate) override; | 45 ::wm::NativeCursorManagerDelegate* delegate) override; |
46 void SetMouseEventsEnabled( | 46 void SetMouseEventsEnabled( |
47 bool enabled, | 47 bool enabled, |
48 ::wm::NativeCursorManagerDelegate* delegate) override; | 48 ::wm::NativeCursorManagerDelegate* delegate) override; |
49 | 49 |
50 // The cursor location where the cursor was disabled. | 50 // The cursor location where the cursor was disabled. |
51 gfx::Point disabled_cursor_location_; | 51 gfx::Point disabled_cursor_location_; |
52 | 52 |
53 bool native_cursor_enabled_ = true; | 53 bool native_cursor_enabled_ = true; |
54 | 54 |
55 #if defined(USE_OZONE) | 55 #if defined(USE_OZONE) |
56 std::unique_ptr<ui::CursorDataFactoryOzone> cursor_factory_ozone_; | 56 std::unique_ptr<ui::CursorDataFactoryOzone> cursor_factory_ozone_; |
57 #endif | 57 #endif |
58 | 58 |
59 // Always nullptr when USE_OZONE is false. | 59 // Always nullptr when USE_OZONE is false. |
60 std::unique_ptr<::ui::ImageCursors> image_cursors_; | 60 std::unique_ptr<::ui::ImageCursors> image_cursors_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(NativeCursorManagerAshMus); | 62 DISALLOW_COPY_AND_ASSIGN(NativeCursorManagerAshMus); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace ash | 65 } // namespace ash |
66 | 66 |
67 #endif // ASH_WM_NATIVE_CURSOR_MANAGER_ASH_MUS_H_ | 67 #endif // ASH_WM_NATIVE_CURSOR_MANAGER_ASH_MUS_H_ |
OLD | NEW |