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

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

Issue 2018753003: Moves ash/wm/common back into ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove BUILD.gn again Created 4 years, 6 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/switchable_windows.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/wm/common/ash_wm_common_export.h" 8 #include "ash/ash_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 display { 12 namespace display {
13 class Display; 13 class Display;
14 } 14 }
15 15
16 namespace gfx { 16 namespace gfx {
17 class Rect; 17 class Rect;
18 } 18 }
19 19
20 namespace ash { 20 namespace ash {
21 namespace wm { 21 namespace wm {
22 class WmGlobals; 22 class WmGlobals;
23 class WmWindow; 23 class WmWindow;
24 } 24 }
25 25
26 namespace test { 26 namespace test {
27 class WindowPositionerTest; 27 class WindowPositionerTest;
28 } 28 }
29 29
30 // WindowPositioner is used by the browser to move new popups automatically to 30 // WindowPositioner is used by the browser to move new popups automatically to
31 // a usable position on the closest work area (of the active window). 31 // a usable position on the closest work area (of the active window).
32 class ASH_WM_COMMON_EXPORT WindowPositioner { 32 class ASH_EXPORT WindowPositioner {
33 public: 33 public:
34 // When the screen resolution width is smaller then this size, The algorithm 34 // When the screen resolution width is smaller then this size, The algorithm
35 // will default to maximized. 35 // will default to maximized.
36 static int GetForceMaximizedWidthLimit(); 36 static int GetForceMaximizedWidthLimit();
37 37
38 // The number of pixels which are kept free top, left and right when a window 38 // The number of pixels which are kept free top, left and right when a window
39 // gets positioned to its default location. 39 // gets positioned to its default location.
40 static const int kDesktopBorderSize; 40 static const int kDesktopBorderSize;
41 41
42 // Maximum width of a window even if there is more room on the desktop. 42 // 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
123 // The last used position. 123 // The last used position.
124 int last_popup_position_x_; 124 int last_popup_position_x_;
125 int last_popup_position_y_; 125 int last_popup_position_y_;
126 126
127 DISALLOW_COPY_AND_ASSIGN(WindowPositioner); 127 DISALLOW_COPY_AND_ASSIGN(WindowPositioner);
128 }; 128 };
129 129
130 } // namespace ash 130 } // namespace ash
131 131
132 #endif // ASH_WM_COMMON_WINDOW_POSITIONER_H_ 132 #endif // ASH_WM_COMMON_WINDOW_POSITIONER_H_
OLDNEW
« no previous file with comments | « ash/wm/common/switchable_windows.h ('k') | ash/wm/common/window_positioning_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698