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

Side by Side Diff: ash/shell_port.h

Issue 2949353003: Implement large cursors in Mushrome. (Closed)
Patch Set: rename everything to CursorSize Created 3 years, 6 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
« no previous file with comments | « ash/mus/bridge/shell_port_mash.cc ('k') | ash/test/cursor_manager_test_api.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_SHELL_PORT_H_ 5 #ifndef ASH_SHELL_PORT_H_
6 #define ASH_SHELL_PORT_H_ 6 #define ASH_SHELL_PORT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 15 matching lines...) Expand all
26 26
27 namespace display { 27 namespace display {
28 class NativeDisplayDelegate; 28 class NativeDisplayDelegate;
29 class TouchTransformSetter; 29 class TouchTransformSetter;
30 } 30 }
31 31
32 namespace gfx { 32 namespace gfx {
33 class Point; 33 class Point;
34 } 34 }
35 35
36 namespace ui {
37 enum class CursorSize;
38 }
39
36 namespace views { 40 namespace views {
37 class PointerWatcher; 41 class PointerWatcher;
38 enum class PointerWatcherEventTypes; 42 enum class PointerWatcherEventTypes;
39 } 43 }
40 44
41 namespace ash { 45 namespace ash {
42 class AcceleratorController; 46 class AcceleratorController;
43 class AshWindowTreeHost; 47 class AshWindowTreeHost;
44 struct AshWindowTreeHostInitParams; 48 struct AshWindowTreeHostInitParams;
45 class ImmersiveFullscreenController; 49 class ImmersiveFullscreenController;
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // For testing only: set simulation that a modal window is open 99 // For testing only: set simulation that a modal window is open
96 void SimulateModalWindowOpenForTesting(bool modal_window_open) { 100 void SimulateModalWindowOpenForTesting(bool modal_window_open) {
97 simulate_modal_window_open_for_testing_ = modal_window_open; 101 simulate_modal_window_open_for_testing_ = modal_window_open;
98 } 102 }
99 103
100 // See aura::client::CursorClient for details on these. 104 // See aura::client::CursorClient for details on these.
101 virtual void LockCursor() = 0; 105 virtual void LockCursor() = 0;
102 virtual void UnlockCursor() = 0; 106 virtual void UnlockCursor() = 0;
103 virtual void ShowCursor() = 0; 107 virtual void ShowCursor() = 0;
104 virtual void HideCursor() = 0; 108 virtual void HideCursor() = 0;
109 virtual void SetCursorSize(ui::CursorSize cursor_size) = 0;
105 virtual void SetGlobalOverrideCursor( 110 virtual void SetGlobalOverrideCursor(
106 base::Optional<ui::CursorData> cursor) = 0; 111 base::Optional<ui::CursorData> cursor) = 0;
107 virtual bool IsMouseEventsEnabled() = 0; 112 virtual bool IsMouseEventsEnabled() = 0;
108 113
109 virtual void RecordGestureAction(GestureActionType action) = 0; 114 virtual void RecordGestureAction(GestureActionType action) = 0;
110 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0; 115 virtual void RecordUserMetricsAction(UserMetricsAction action) = 0;
111 virtual void RecordTaskSwitchMetric(TaskSwitchSource source) = 0; 116 virtual void RecordTaskSwitchMetric(TaskSwitchSource source) = 0;
112 117
113 // Shows the context menu for the wallpaper or shelf at |location_in_screen|. 118 // Shows the context menu for the wallpaper or shelf at |location_in_screen|.
114 void ShowContextMenu(const gfx::Point& location_in_screen, 119 void ShowContextMenu(const gfx::Point& location_in_screen,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 static ShellPort* instance_; 202 static ShellPort* instance_;
198 203
199 base::ObserverList<LockStateObserver> lock_state_observers_; 204 base::ObserverList<LockStateObserver> lock_state_observers_;
200 205
201 bool simulate_modal_window_open_for_testing_ = false; 206 bool simulate_modal_window_open_for_testing_ = false;
202 }; 207 };
203 208
204 } // namespace ash 209 } // namespace ash
205 210
206 #endif // ASH_SHELL_PORT_H_ 211 #endif // ASH_SHELL_PORT_H_
OLDNEW
« no previous file with comments | « ash/mus/bridge/shell_port_mash.cc ('k') | ash/test/cursor_manager_test_api.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698