| 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_COMMON_WM_SHELL_H_ | 5 #ifndef ASH_COMMON_WM_SHELL_H_ |
| 6 #define ASH_COMMON_WM_SHELL_H_ | 6 #define ASH_COMMON_WM_SHELL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 virtual bool IsForceMaximizeOnFirstRun() = 0; | 79 virtual bool IsForceMaximizeOnFirstRun() = 0; |
| 80 | 80 |
| 81 // Returns true if a system-modal dialog window is currently open. | 81 // Returns true if a system-modal dialog window is currently open. |
| 82 bool IsSystemModalWindowOpen(); | 82 bool IsSystemModalWindowOpen(); |
| 83 | 83 |
| 84 // For testing only: set simulation that a modal window is open | 84 // For testing only: set simulation that a modal window is open |
| 85 void SimulateModalWindowOpenForTesting(bool modal_window_open) { | 85 void SimulateModalWindowOpenForTesting(bool modal_window_open) { |
| 86 simulate_modal_window_open_for_testing_ = modal_window_open; | 86 simulate_modal_window_open_for_testing_ = modal_window_open; |
| 87 } | 87 } |
| 88 | 88 |
| 89 // Returns true if a window is currently pinned. |
| 90 virtual bool IsPinned() = 0; |
| 91 |
| 89 // Returns true if |window| can be shown for the current user. This is | 92 // Returns true if |window| can be shown for the current user. This is |
| 90 // intended to check if the current user matches the user associated with | 93 // intended to check if the current user matches the user associated with |
| 91 // |window|. | 94 // |window|. |
| 92 // TODO(jamescook): Remove this when ShellDelegate is accessible via this | 95 // TODO(jamescook): Remove this when ShellDelegate is accessible via this |
| 93 // interface. | 96 // interface. |
| 94 virtual bool CanShowWindowForUser(WmWindow* window) = 0; | 97 virtual bool CanShowWindowForUser(WmWindow* window) = 0; |
| 95 | 98 |
| 96 // See aura::client::CursorClient for details on these. | 99 // See aura::client::CursorClient for details on these. |
| 97 virtual void LockCursor() = 0; | 100 virtual void LockCursor() = 0; |
| 98 virtual void UnlockCursor() = 0; | 101 virtual void UnlockCursor() = 0; |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 std::unique_ptr<FocusCycler> focus_cycler_; | 157 std::unique_ptr<FocusCycler> focus_cycler_; |
| 155 std::unique_ptr<WmSystemTrayNotifier> system_tray_notifier_; | 158 std::unique_ptr<WmSystemTrayNotifier> system_tray_notifier_; |
| 156 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_; | 159 std::unique_ptr<SystemTrayDelegate> system_tray_delegate_; |
| 157 | 160 |
| 158 bool simulate_modal_window_open_for_testing_ = false; | 161 bool simulate_modal_window_open_for_testing_ = false; |
| 159 }; | 162 }; |
| 160 | 163 |
| 161 } // namespace ash | 164 } // namespace ash |
| 162 | 165 |
| 163 #endif // ASH_COMMON_WM_SHELL_H_ | 166 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |