OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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_WINDOW_SIZER_H__ | 5 #ifndef CHROME_BROWSER_WINDOW_SIZER_H__ |
6 #define CHROME_BROWSER_WINDOW_SIZER_H__ | 6 #define CHROME_BROWSER_WINDOW_SIZER_H__ |
7 | 7 |
| 8 #include "base/basictypes.h" |
8 #include "base/gfx/rect.h" | 9 #include "base/gfx/rect.h" |
9 #include "base/logging.h" | |
10 #include "testing/gtest/include/gtest/gtest_prod.h" | 10 #include "testing/gtest/include/gtest/gtest_prod.h" |
11 | 11 |
12 /////////////////////////////////////////////////////////////////////////////// | 12 /////////////////////////////////////////////////////////////////////////////// |
13 // WindowSizer | 13 // WindowSizer |
14 // | 14 // |
15 // A class that determines the best new size and position for a window to be | 15 // A class that determines the best new size and position for a window to be |
16 // shown at based several factors, including the position and size of the last | 16 // shown at based several factors, including the position and size of the last |
17 // window of the same type, the last saved bounds of the window from the | 17 // window of the same type, the last saved bounds of the window from the |
18 // previous session, and default system metrics if neither of the above two | 18 // previous session, and default system metrics if neither of the above two |
19 // conditions exist. The system has built-in providers for monitor metrics | 19 // conditions exist. The system has built-in providers for monitor metrics |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 139 |
140 // Providers for persistent storage and monitor metrics. | 140 // Providers for persistent storage and monitor metrics. |
141 StateProvider* state_provider_; | 141 StateProvider* state_provider_; |
142 MonitorInfoProvider* monitor_info_provider_; | 142 MonitorInfoProvider* monitor_info_provider_; |
143 | 143 |
144 DISALLOW_EVIL_CONSTRUCTORS(WindowSizer); | 144 DISALLOW_EVIL_CONSTRUCTORS(WindowSizer); |
145 }; | 145 }; |
146 | 146 |
147 | 147 |
148 #endif // #ifndef CHROME_BROWSER_WINDOW_SIZER_H__ | 148 #endif // #ifndef CHROME_BROWSER_WINDOW_SIZER_H__ |
OLD | NEW |