| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ASH_WM_COMMON_WM_GLOBALS_H_ |
| 6 #define ASH_WM_COMMON_WM_GLOBALS_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "ash/ash_export.h" |
| 11 |
| 12 namespace gfx { |
| 13 class Rect; |
| 14 } |
| 15 |
| 16 namespace ash { |
| 17 namespace wm { |
| 18 |
| 19 class WmWindow; |
| 20 |
| 21 // Used for accessing global state. |
| 22 class ASH_EXPORT WmGlobals { |
| 23 public: |
| 24 virtual ~WmGlobals() {} |
| 25 |
| 26 // This is necessary for a handful of places that is difficult to plumb |
| 27 // through context. |
| 28 static WmGlobals* Get(); |
| 29 |
| 30 virtual WmWindow* GetActiveWindow() = 0; |
| 31 |
| 32 // Returns the root window that newly created windows should be added to. |
| 33 // NOTE: this returns the root, newly created window should be added to the |
| 34 // appropriate container in the returned window. |
| 35 virtual WmWindow* GetRootWindowForNewWindows() = 0; |
| 36 |
| 37 // returns the list of more recently used windows excluding modals. |
| 38 virtual std::vector<WmWindow*> GetMruWindowListIgnoreModals() = 0; |
| 39 |
| 40 // Returns true if the first window shown on first run should be |
| 41 // unconditionally maximized, overriding the heuristic that normally chooses |
| 42 // the window size. |
| 43 virtual bool IsForceMaximizeOnFirstRun() = 0; |
| 44 |
| 45 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; |
| 46 }; |
| 47 |
| 48 } // namespace wm |
| 49 } // namespace ash |
| 50 |
| 51 #endif // ASH_WM_COMMON_WM_GLOBALS_H_ |
| OLD | NEW |