| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 virtual WmWindow* GetRootWindowForNewWindows() = 0; | 63 virtual WmWindow* GetRootWindowForNewWindows() = 0; |
| 64 | 64 |
| 65 // Returns true if the first window shown on first run should be | 65 // Returns true if the first window shown on first run should be |
| 66 // unconditionally maximized, overriding the heuristic that normally chooses | 66 // unconditionally maximized, overriding the heuristic that normally chooses |
| 67 // the window size. | 67 // the window size. |
| 68 virtual bool IsForceMaximizeOnFirstRun() = 0; | 68 virtual bool IsForceMaximizeOnFirstRun() = 0; |
| 69 | 69 |
| 70 // Returns true if |window| can be shown for the current user. This is | 70 // Returns true if |window| can be shown for the current user. This is |
| 71 // intended to check if the current user matches the user associated with | 71 // intended to check if the current user matches the user associated with |
| 72 // |window|. | 72 // |window|. |
| 73 // TODO(jamescook): Remove this when ShellDelegate is accessible via this |
| 74 // interface. |
| 73 virtual bool CanShowWindowForUser(WmWindow* window) = 0; | 75 virtual bool CanShowWindowForUser(WmWindow* window) = 0; |
| 74 | 76 |
| 75 // See aura::client::CursorClient for details on these. | 77 // See aura::client::CursorClient for details on these. |
| 76 virtual void LockCursor() = 0; | 78 virtual void LockCursor() = 0; |
| 77 virtual void UnlockCursor() = 0; | 79 virtual void UnlockCursor() = 0; |
| 78 | 80 |
| 79 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; | 81 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; |
| 80 | 82 |
| 81 virtual void RecordUserMetricsAction(wm::WmUserMetricsAction action) = 0; | 83 virtual void RecordUserMetricsAction(wm::WmUserMetricsAction action) = 0; |
| 82 | 84 |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 115 protected: | 117 protected: |
| 116 virtual ~WmShell() {} | 118 virtual ~WmShell() {} |
| 117 | 119 |
| 118 private: | 120 private: |
| 119 static WmShell* instance_; | 121 static WmShell* instance_; |
| 120 }; | 122 }; |
| 121 | 123 |
| 122 } // namespace ash | 124 } // namespace ash |
| 123 | 125 |
| 124 #endif // ASH_COMMON_WM_SHELL_H_ | 126 #endif // ASH_COMMON_WM_SHELL_H_ |
| OLD | NEW |