| 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_WM_COMMON_WM_GLOBALS_H_ | 5 #ifndef ASH_WM_COMMON_WM_GLOBALS_H_ |
| 6 #define ASH_WM_COMMON_WM_GLOBALS_H_ | 6 #define ASH_WM_COMMON_WM_GLOBALS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 virtual WmWindow* GetRootWindowForNewWindows() = 0; | 52 virtual WmWindow* GetRootWindowForNewWindows() = 0; |
| 53 | 53 |
| 54 // returns the list of more recently used windows excluding modals. | 54 // returns the list of more recently used windows excluding modals. |
| 55 virtual std::vector<WmWindow*> GetMruWindowListIgnoreModals() = 0; | 55 virtual std::vector<WmWindow*> GetMruWindowListIgnoreModals() = 0; |
| 56 | 56 |
| 57 // Returns true if the first window shown on first run should be | 57 // Returns true if the first window shown on first run should be |
| 58 // unconditionally maximized, overriding the heuristic that normally chooses | 58 // unconditionally maximized, overriding the heuristic that normally chooses |
| 59 // the window size. | 59 // the window size. |
| 60 virtual bool IsForceMaximizeOnFirstRun() = 0; | 60 virtual bool IsForceMaximizeOnFirstRun() = 0; |
| 61 | 61 |
| 62 virtual bool IsUserSessionBlocked() = 0; |
| 62 virtual bool IsScreenLocked() = 0; | 63 virtual bool IsScreenLocked() = 0; |
| 63 | 64 |
| 64 // See aura::client::CursorClient for details on these. | 65 // See aura::client::CursorClient for details on these. |
| 65 virtual void LockCursor() = 0; | 66 virtual void LockCursor() = 0; |
| 66 virtual void UnlockCursor() = 0; | 67 virtual void UnlockCursor() = 0; |
| 67 | 68 |
| 68 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; | 69 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; |
| 69 | 70 |
| 70 virtual void RecordUserMetricsAction(WmUserMetricsAction action) = 0; | 71 virtual void RecordUserMetricsAction(WmUserMetricsAction action) = 0; |
| 71 | 72 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 91 virtual void RemoveOverviewModeObserver(WmOverviewModeObserver* observer) = 0; | 92 virtual void RemoveOverviewModeObserver(WmOverviewModeObserver* observer) = 0; |
| 92 | 93 |
| 93 private: | 94 private: |
| 94 static WmGlobals* instance_; | 95 static WmGlobals* instance_; |
| 95 }; | 96 }; |
| 96 | 97 |
| 97 } // namespace wm | 98 } // namespace wm |
| 98 } // namespace ash | 99 } // namespace ash |
| 99 | 100 |
| 100 #endif // ASH_WM_COMMON_WM_GLOBALS_H_ | 101 #endif // ASH_WM_COMMON_WM_GLOBALS_H_ |
| OLD | NEW |