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

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

Issue 1943603002: Makes ash/wm/common a library (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge again Created 4 years, 7 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_parenting_utils.h ('k') | ash/wm/common/window_positioning_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_WINDOW_POSITIONER_H_ 5 #ifndef ASH_WM_COMMON_WINDOW_POSITIONER_H_
6 #define ASH_WM_COMMON_WINDOW_POSITIONER_H_ 6 #define ASH_WM_COMMON_WINDOW_POSITIONER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/wm/common/ash_wm_common_export.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
11 11
12 namespace gfx { 12 namespace gfx {
13 class Display; 13 class Display;
14 class Rect; 14 class Rect;
15 } 15 }
16 16
17 namespace display { 17 namespace display {
18 using Display = gfx::Display; 18 using Display = gfx::Display;
19 } 19 }
20 20
21 namespace ash { 21 namespace ash {
22 namespace wm { 22 namespace wm {
23 class WmGlobals; 23 class WmGlobals;
24 class WmWindow; 24 class WmWindow;
25 } 25 }
26 26
27 namespace test { 27 namespace test {
28 class WindowPositionerTest; 28 class WindowPositionerTest;
29 } 29 }
30 30
31 // WindowPositioner is used by the browser to move new popups automatically to 31 // WindowPositioner is used by the browser to move new popups automatically to
32 // a usable position on the closest work area (of the active window). 32 // a usable position on the closest work area (of the active window).
33 class ASH_EXPORT WindowPositioner { 33 class ASH_WM_COMMON_EXPORT WindowPositioner {
34 public: 34 public:
35 // When the screen resolution width is smaller then this size, The algorithm 35 // When the screen resolution width is smaller then this size, The algorithm
36 // will default to maximized. 36 // will default to maximized.
37 static int GetForceMaximizedWidthLimit(); 37 static int GetForceMaximizedWidthLimit();
38 38
39 // The number of pixels which are kept free top, left and right when a window 39 // The number of pixels which are kept free top, left and right when a window
40 // gets positioned to its default location. 40 // gets positioned to its default location.
41 static const int kDesktopBorderSize; 41 static const int kDesktopBorderSize;
42 42
43 // Maximum width of a window even if there is more room on the desktop. 43 // Maximum width of a window even if there is more room on the desktop.
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 // The last used position. 124 // The last used position.
125 int last_popup_position_x_; 125 int last_popup_position_x_;
126 int last_popup_position_y_; 126 int last_popup_position_y_;
127 127
128 DISALLOW_COPY_AND_ASSIGN(WindowPositioner); 128 DISALLOW_COPY_AND_ASSIGN(WindowPositioner);
129 }; 129 };
130 130
131 } // namespace ash 131 } // namespace ash
132 132
133 #endif // ASH_WM_COMMON_WINDOW_POSITIONER_H_ 133 #endif // ASH_WM_COMMON_WINDOW_POSITIONER_H_
OLDNEW
« no previous file with comments | « ash/wm/common/window_parenting_utils.h ('k') | ash/wm/common/window_positioning_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698