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/basictypes.h" |
9 #include "base/gfx/rect.h" | 9 #include "base/gfx/rect.h" |
10 #include "testing/gtest/include/gtest/gtest_prod.h" | |
11 | 10 |
12 /////////////////////////////////////////////////////////////////////////////// | 11 /////////////////////////////////////////////////////////////////////////////// |
13 // WindowSizer | 12 // WindowSizer |
14 // | 13 // |
15 // A class that determines the best new size and position for a window to be | 14 // 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 | 15 // 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 | 16 // 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 | 17 // previous session, and default system metrics if neither of the above two |
19 // conditions exist. The system has built-in providers for monitor metrics | 18 // conditions exist. The system has built-in providers for monitor metrics |
20 // and persistent storage (using preferences) but can be overrided with mocks | 19 // and persistent storage (using preferences) but can be overrided with mocks |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 | 138 |
140 // Providers for persistent storage and monitor metrics. | 139 // Providers for persistent storage and monitor metrics. |
141 StateProvider* state_provider_; | 140 StateProvider* state_provider_; |
142 MonitorInfoProvider* monitor_info_provider_; | 141 MonitorInfoProvider* monitor_info_provider_; |
143 | 142 |
144 DISALLOW_EVIL_CONSTRUCTORS(WindowSizer); | 143 DISALLOW_EVIL_CONSTRUCTORS(WindowSizer); |
145 }; | 144 }; |
146 | 145 |
147 | 146 |
148 #endif // #ifndef CHROME_BROWSER_WINDOW_SIZER_H__ | 147 #endif // #ifndef CHROME_BROWSER_WINDOW_SIZER_H__ |
OLD | NEW |