Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(35)

Side by Side Diff: ash/wm/common/wm_globals.h

Issue 1900443002: Removes aura dependencies from WindowPositioner (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nuke GetWorkAreaForWindowInParent and fix windows Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/wm/common/window_positioning_utils.cc ('k') | ash/wm/common/wm_root_window_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ash/wm/common/window_positioning_utils.cc ('k') | ash/wm/common/wm_root_window_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698