OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 COMPONENTS_EXO_POINTER_H_ | 5 #ifndef COMPONENTS_EXO_POINTER_H_ |
6 #define COMPONENTS_EXO_POINTER_H_ | 6 #define COMPONENTS_EXO_POINTER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 void SetCursor(Surface* surface, const gfx::Point& hotspot); | 53 void SetCursor(Surface* surface, const gfx::Point& hotspot); |
54 | 54 |
55 // Returns the current cursor for the pointer. | 55 // Returns the current cursor for the pointer. |
56 gfx::NativeCursor GetCursor(); | 56 gfx::NativeCursor GetCursor(); |
57 | 57 |
58 // Overridden from ui::EventHandler: | 58 // Overridden from ui::EventHandler: |
59 void OnMouseEvent(ui::MouseEvent* event) override; | 59 void OnMouseEvent(ui::MouseEvent* event) override; |
60 void OnScrollEvent(ui::ScrollEvent* event) override; | 60 void OnScrollEvent(ui::ScrollEvent* event) override; |
61 | 61 |
62 // Overridden from WMHelper::CursorObserver: | 62 // Overridden from WMHelper::CursorObserver: |
63 void OnCursorSetChanged(ui::CursorSetType cursor_set) override; | 63 void OnCursorSizeChanged(ui::CursorSize cursor_size) override; |
64 void OnCursorDisplayChanged(const display::Display& display) override; | 64 void OnCursorDisplayChanged(const display::Display& display) override; |
65 | 65 |
66 // Overridden from WMHelper::DisplayConfigurationObserver: | 66 // Overridden from WMHelper::DisplayConfigurationObserver: |
67 void OnDisplayConfigurationChanged() override; | 67 void OnDisplayConfigurationChanged() override; |
68 | 68 |
69 // Overridden from SurfaceDelegate: | 69 // Overridden from SurfaceDelegate: |
70 void OnSurfaceCommit() override; | 70 void OnSurfaceCommit() override; |
71 bool IsSurfaceSynchronized() const override; | 71 bool IsSurfaceSynchronized() const override; |
72 | 72 |
73 // Overridden from SurfaceObserver: | 73 // Overridden from SurfaceObserver: |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 | 119 |
120 // Weak pointer factory used for cursor capture callbacks. | 120 // Weak pointer factory used for cursor capture callbacks. |
121 base::WeakPtrFactory<Pointer> cursor_capture_weak_ptr_factory_; | 121 base::WeakPtrFactory<Pointer> cursor_capture_weak_ptr_factory_; |
122 | 122 |
123 DISALLOW_COPY_AND_ASSIGN(Pointer); | 123 DISALLOW_COPY_AND_ASSIGN(Pointer); |
124 }; | 124 }; |
125 | 125 |
126 } // namespace exo | 126 } // namespace exo |
127 | 127 |
128 #endif // COMPONENTS_EXO_POINTER_H_ | 128 #endif // COMPONENTS_EXO_POINTER_H_ |
OLD | NEW |