| 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 <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "ash/ash_export.h" | 12 #include "ash/ash_export.h" |
| 13 | 13 |
| 14 namespace gfx { | 14 namespace gfx { |
| 15 class Rect; | 15 class Rect; |
| 16 } | 16 } |
| 17 | 17 |
| 18 namespace ash { | 18 namespace ash { |
| 19 |
| 20 class UserMetricsRecorder; |
| 21 |
| 19 namespace wm { | 22 namespace wm { |
| 20 | 23 |
| 21 class WmActivationObserver; | 24 class WmActivationObserver; |
| 22 class WmWindow; | 25 class WmWindow; |
| 23 | 26 |
| 24 // Used for accessing global state. | 27 // Used for accessing global state. |
| 25 class ASH_EXPORT WmGlobals { | 28 class ASH_EXPORT WmGlobals { |
| 26 public: | 29 public: |
| 27 virtual ~WmGlobals() {} | 30 virtual ~WmGlobals() {} |
| 28 | 31 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 48 // unconditionally maximized, overriding the heuristic that normally chooses | 51 // unconditionally maximized, overriding the heuristic that normally chooses |
| 49 // the window size. | 52 // the window size. |
| 50 virtual bool IsForceMaximizeOnFirstRun() = 0; | 53 virtual bool IsForceMaximizeOnFirstRun() = 0; |
| 51 | 54 |
| 52 // See aura::client::CursorClient for details on these. | 55 // See aura::client::CursorClient for details on these. |
| 53 virtual void LockCursor() = 0; | 56 virtual void LockCursor() = 0; |
| 54 virtual void UnlockCursor() = 0; | 57 virtual void UnlockCursor() = 0; |
| 55 | 58 |
| 56 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; | 59 virtual std::vector<WmWindow*> GetAllRootWindows() = 0; |
| 57 | 60 |
| 61 virtual UserMetricsRecorder* GetUserMetricsRecorder() = 0; |
| 62 |
| 58 virtual void AddActivationObserver(WmActivationObserver* observer) = 0; | 63 virtual void AddActivationObserver(WmActivationObserver* observer) = 0; |
| 59 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0; | 64 virtual void RemoveActivationObserver(WmActivationObserver* observer) = 0; |
| 60 }; | 65 }; |
| 61 | 66 |
| 62 } // namespace wm | 67 } // namespace wm |
| 63 } // namespace ash | 68 } // namespace ash |
| 64 | 69 |
| 65 #endif // ASH_WM_COMMON_WM_GLOBALS_H_ | 70 #endif // ASH_WM_COMMON_WM_GLOBALS_H_ |
| OLD | NEW |