| 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 gfx { |
| 17 class Display; | 17 class Display; |
| 18 class Screen; | |
| 19 } | 18 } |
| 20 | 19 |
| 21 namespace display { | 20 namespace display { |
| 22 using Display = gfx::Display; | 21 using Display = gfx::Display; |
| 23 using Screen = gfx::Screen; | 22 class Screen; |
| 24 } | 23 } |
| 25 | 24 |
| 26 /////////////////////////////////////////////////////////////////////////////// | 25 /////////////////////////////////////////////////////////////////////////////// |
| 27 // WindowSizer | 26 // WindowSizer |
| 28 // | 27 // |
| 29 // A class that determines the best new size and position for a window to be | 28 // A class that determines the best new size and position for a window to be |
| 30 // shown at based several factors, including the position and size of the last | 29 // shown at based several factors, including the position and size of the last |
| 31 // window of the same type, the last saved bounds of the window from the | 30 // window of the same type, the last saved bounds of the window from the |
| 32 // previous session, and default system metrics if neither of the above two | 31 // previous session, and default system metrics if neither of the above two |
| 33 // conditions exist. The system has built-in providers for monitor metrics | 32 // conditions exist. The system has built-in providers for monitor metrics |
| (...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 std::unique_ptr<TargetDisplayProvider> target_display_provider_; | 189 std::unique_ptr<TargetDisplayProvider> target_display_provider_; |
| 191 display::Screen* screen_; // not owned. | 190 display::Screen* screen_; // not owned. |
| 192 | 191 |
| 193 // Note that this browser handle might be NULL. | 192 // Note that this browser handle might be NULL. |
| 194 const Browser* browser_; | 193 const Browser* browser_; |
| 195 | 194 |
| 196 DISALLOW_COPY_AND_ASSIGN(WindowSizer); | 195 DISALLOW_COPY_AND_ASSIGN(WindowSizer); |
| 197 }; | 196 }; |
| 198 | 197 |
| 199 #endif // CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_ | 198 #endif // CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_H_ |
| OLD | NEW |