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

Side by Side Diff: ash/shell_port.h

Issue 2906803002: Rename MaximizeMode to TabletMode (Closed)
Patch Set: updated filter Created 3 years, 7 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 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 class WindowResizer; 54 class WindowResizer;
55 class WmDisplayObserver; 55 class WmDisplayObserver;
56 class WmWindow; 56 class WmWindow;
57 class WorkspaceEventHandler; 57 class WorkspaceEventHandler;
58 58
59 enum class Config; 59 enum class Config;
60 enum class LoginStatus; 60 enum class LoginStatus;
61 enum class TaskSwitchSource; 61 enum class TaskSwitchSource;
62 62
63 namespace wm { 63 namespace wm {
64 class MaximizeModeEventHandler; 64 class TabletModeEventHandler;
65 class WindowState; 65 class WindowState;
66 } 66 }
67 67
68 // Porting layer for Shell. This class contains the part of Shell that are 68 // Porting layer for Shell. This class contains the part of Shell that are
69 // different in classic ash and mus/mash. 69 // different in classic ash and mus/mash.
70 class ASH_EXPORT ShellPort { 70 class ASH_EXPORT ShellPort {
71 public: 71 public:
72 virtual ~ShellPort(); 72 virtual ~ShellPort();
73 73
74 static ShellPort* Get(); 74 static ShellPort* Get();
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 // Returns a WindowResizer to handle dragging. |next_window_resizer| is 160 // Returns a WindowResizer to handle dragging. |next_window_resizer| is
161 // the next WindowResizer in the WindowResizer chain. This may return 161 // the next WindowResizer in the WindowResizer chain. This may return
162 // |next_window_resizer|. 162 // |next_window_resizer|.
163 virtual std::unique_ptr<WindowResizer> CreateDragWindowResizer( 163 virtual std::unique_ptr<WindowResizer> CreateDragWindowResizer(
164 std::unique_ptr<WindowResizer> next_window_resizer, 164 std::unique_ptr<WindowResizer> next_window_resizer,
165 wm::WindowState* window_state) = 0; 165 wm::WindowState* window_state) = 0;
166 166
167 virtual std::unique_ptr<WindowCycleEventFilter> 167 virtual std::unique_ptr<WindowCycleEventFilter>
168 CreateWindowCycleEventFilter() = 0; 168 CreateWindowCycleEventFilter() = 0;
169 169
170 virtual std::unique_ptr<wm::MaximizeModeEventHandler> 170 virtual std::unique_ptr<wm::TabletModeEventHandler>
171 CreateMaximizeModeEventHandler() = 0; 171 CreateTabletModeEventHandler() = 0;
172 172
173 virtual std::unique_ptr<WorkspaceEventHandler> CreateWorkspaceEventHandler( 173 virtual std::unique_ptr<WorkspaceEventHandler> CreateWorkspaceEventHandler(
174 WmWindow* workspace_window) = 0; 174 WmWindow* workspace_window) = 0;
175 175
176 virtual std::unique_ptr<ScopedDisableInternalMouseAndKeyboard> 176 virtual std::unique_ptr<ScopedDisableInternalMouseAndKeyboard>
177 CreateScopedDisableInternalMouseAndKeyboard() = 0; 177 CreateScopedDisableInternalMouseAndKeyboard() = 0;
178 178
179 virtual std::unique_ptr<ImmersiveFullscreenController> 179 virtual std::unique_ptr<ImmersiveFullscreenController>
180 CreateImmersiveFullscreenController() = 0; 180 CreateImmersiveFullscreenController() = 0;
181 181
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 static ShellPort* instance_; 249 static ShellPort* instance_;
250 250
251 base::ObserverList<LockStateObserver> lock_state_observers_; 251 base::ObserverList<LockStateObserver> lock_state_observers_;
252 252
253 bool simulate_modal_window_open_for_testing_ = false; 253 bool simulate_modal_window_open_for_testing_ = false;
254 }; 254 };
255 255
256 } // namespace ash 256 } // namespace ash
257 257
258 #endif // ASH_SHELL_PORT_H_ 258 #endif // ASH_SHELL_PORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698