| OLD | NEW |
| 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 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // which corresponds to internal displays on devices with integrated displays. | 105 // which corresponds to internal displays on devices with integrated displays. |
| 106 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 | 106 // TODO(mash): Remove when DisplayManager has been moved. crbug.com/622480 |
| 107 virtual display::Display GetFirstDisplay() const = 0; | 107 virtual display::Display GetFirstDisplay() const = 0; |
| 108 | 108 |
| 109 // Returns true if the first window shown on first run should be | 109 // Returns true if the first window shown on first run should be |
| 110 // unconditionally maximized, overriding the heuristic that normally chooses | 110 // unconditionally maximized, overriding the heuristic that normally chooses |
| 111 // the window size. | 111 // the window size. |
| 112 bool IsForceMaximizeOnFirstRun(); | 112 bool IsForceMaximizeOnFirstRun(); |
| 113 | 113 |
| 114 // Sets work area insets of the display containing |window|, pings observers. | 114 // Sets work area insets of the display containing |window|, pings observers. |
| 115 virtual void SetDisplayWorkAreaInsets(WmWindow* window, | 115 virtual void SetDisplayWorkAreaInsets(aura::Window* window, |
| 116 const gfx::Insets& insets) = 0; | 116 const gfx::Insets& insets) = 0; |
| 117 | 117 |
| 118 // Returns true if a system-modal dialog window is currently open. | 118 // Returns true if a system-modal dialog window is currently open. |
| 119 bool IsSystemModalWindowOpen(); | 119 bool IsSystemModalWindowOpen(); |
| 120 | 120 |
| 121 // Creates a modal background (a partially-opaque fullscreen window) on all | 121 // Creates a modal background (a partially-opaque fullscreen window) on all |
| 122 // displays for |window|. | 122 // displays for |window|. |
| 123 void CreateModalBackground(aura::Window* window); | 123 void CreateModalBackground(aura::Window* window); |
| 124 | 124 |
| 125 // Called when a modal window is removed. It will activate another modal | 125 // Called when a modal window is removed. It will activate another modal |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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::TabletModeEventHandler> | 170 virtual std::unique_ptr<wm::TabletModeEventHandler> |
| 171 CreateTabletModeEventHandler() = 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 aura::Window* 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 |
| 182 // Creates the KeyboardUI. This is called early on. | 182 // Creates the KeyboardUI. This is called early on. |
| 183 virtual std::unique_ptr<KeyboardUI> CreateKeyboardUI() = 0; | 183 virtual std::unique_ptr<KeyboardUI> CreateKeyboardUI() = 0; |
| 184 | 184 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |