OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_ | 5 #ifndef CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_ |
6 #define CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_ | 6 #define CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "ui/base/ui_base_types.h" | 11 #include "ui/base/ui_base_types.h" |
12 #include "ui/gfx/geometry/rect.h" | 12 #include "ui/gfx/geometry/rect.h" |
13 | 13 |
14 class Browser; | 14 class Browser; |
15 | 15 |
16 namespace gfx { | 16 namespace display { |
17 class Display; | 17 class Display; |
18 } | |
19 | |
20 namespace display { | |
21 using Display = gfx::Display; | |
22 class Screen; | 18 class Screen; |
23 } | 19 } |
24 | 20 |
25 /////////////////////////////////////////////////////////////////////////////// | 21 /////////////////////////////////////////////////////////////////////////////// |
26 // WindowSizer | 22 // WindowSizer |
27 // | 23 // |
28 // A class that determines the best new size and position for a window to be | 24 // A class that determines the best new size and position for a window to be |
29 // shown at based several factors, including the position and size of the last | 25 // shown at based several factors, including the position and size of the last |
30 // window of the same type, the last saved bounds of the window from the | 26 // window of the same type, the last saved bounds of the window from the |
31 // previous session, and default system metrics if neither of the above two | 27 // previous session, and default system metrics if neither of the above two |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 std::unique_ptr<TargetDisplayProvider> target_display_provider_; | 185 std::unique_ptr<TargetDisplayProvider> target_display_provider_; |
190 display::Screen* screen_; // not owned. | 186 display::Screen* screen_; // not owned. |
191 | 187 |
192 // Note that this browser handle might be NULL. | 188 // Note that this browser handle might be NULL. |
193 const Browser* browser_; | 189 const Browser* browser_; |
194 | 190 |
195 DISALLOW_COPY_AND_ASSIGN(WindowSizer); | 191 DISALLOW_COPY_AND_ASSIGN(WindowSizer); |
196 }; | 192 }; |
197 | 193 |
198 #endif // CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_ | 194 #endif // CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_ |
OLD | NEW |