Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1617)

Side by Side Diff: components/exo/pointer.h

Issue 2949353003: Implement large cursors in Mushrome. (Closed)
Patch Set: rename everything to CursorSize Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/arc/accessibility/arc_accessibility_helper_bridge_unittest.cc ('k') | components/exo/pointer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698