Chromium Code Reviews| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 65 virtual std::vector<WmWindow*> GetMruWindowListIgnoreModals() = 0; | 65 virtual std::vector<WmWindow*> GetMruWindowListIgnoreModals() = 0; |
| 66 | 66 |
| 67 // Returns true if the first window shown on first run should be | 67 // Returns true if the first window shown on first run should be |
| 68 // unconditionally maximized, overriding the heuristic that normally chooses | 68 // unconditionally maximized, overriding the heuristic that normally chooses |
| 69 // the window size. | 69 // the window size. |
| 70 virtual bool IsForceMaximizeOnFirstRun() = 0; | 70 virtual bool IsForceMaximizeOnFirstRun() = 0; |
| 71 | 71 |
| 72 virtual bool IsUserSessionBlocked() = 0; | 72 virtual bool IsUserSessionBlocked() = 0; |
| 73 virtual bool IsScreenLocked() = 0; | 73 virtual bool IsScreenLocked() = 0; |
| 74 | 74 |
| 75 // Returns true if |window| can be shown for the current user. This is | |
| 76 // intended to check if the current users matches the user associated with | |
|
James Cook
2016/06/07 01:21:04
nit: "current users" -> "current user" (unless thi
sky
2016/06/07 02:46:21
Done.
| |
| 77 // |window|. | |
| 78 virtual bool CanShowWindowForUser(WmWindow* window) = 0; | |
| 79 | |
| 75 // See aura::client::CursorClient for details on these. | 80 // See aura::client::CursorClient for details on these. |
| 76 virtual void LockCursor() = 0; | 81 virtual void LockCursor() = 0; |
| 77 virtual void UnlockCursor() = 0; | 82 virtual void UnlockCursor() = 0; |
| 78 | 83 |
| 79 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; | 84 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; |
| 80 | 85 |
| 81 virtual void RecordUserMetricsAction(wm::WmUserMetricsAction action) = 0; | 86 virtual void RecordUserMetricsAction(wm::WmUserMetricsAction action) = 0; |
| 82 | 87 |
| 83 // Returns a WindowResizer to handle dragging. |next_window_resizer| is | 88 // Returns a WindowResizer to handle dragging. |next_window_resizer| is |
| 84 // the next WindowResizer in the WindowResizer chain. This may return | 89 // the next WindowResizer in the WindowResizer chain. This may return |
| (...skipping 16 matching lines...) Expand all Loading... | |
| 101 virtual void AddOverviewModeObserver(WmOverviewModeObserver* observer) = 0; | 106 virtual void AddOverviewModeObserver(WmOverviewModeObserver* observer) = 0; |
| 102 virtual void RemoveOverviewModeObserver(WmOverviewModeObserver* observer) = 0; | 107 virtual void RemoveOverviewModeObserver(WmOverviewModeObserver* observer) = 0; |
| 103 | 108 |
| 104 private: | 109 private: |
| 105 static WmShell* instance_; | 110 static WmShell* instance_; |
| 106 }; | 111 }; |
| 107 | 112 |
| 108 } // namespace ash | 113 } // namespace ash |
| 109 | 114 |
| 110 #endif // ASH_COMMON_WM_SHELL_H_ | 115 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |