| 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_COMMON_UNITTEST_H_ | 5 #ifndef CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_COMMON_UNITTEST_H_ |
| 6 #define CHROME_BROWSER_UI_WINDOW_SIZER_COMMON_UNITTEST_H_ | 6 #define CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_COMMON_UNITTEST_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 // Some standard monitor sizes (no task bar). | 9 // Some standard monitor sizes (no task bar). |
| 10 static const gfx::Rect tentwentyfour(0, 0, 1024, 768); | 10 static const gfx::Rect tentwentyfour(0, 0, 1024, 768); |
| 11 static const gfx::Rect twelveeighty(0, 0, 1280, 1024); | 11 static const gfx::Rect twelveeighty(0, 0, 1280, 1024); |
| 12 static const gfx::Rect sixteenhundred(0, 0, 1600, 1200); | 12 static const gfx::Rect sixteenhundred(0, 0, 1600, 1200); |
| 13 static const gfx::Rect sixteeneighty(0, 0, 1680, 1050); | 13 static const gfx::Rect sixteeneighty(0, 0, 1680, 1050); |
| 14 static const gfx::Rect nineteentwenty(0, 0, 1920, 1200); | 14 static const gfx::Rect nineteentwenty(0, 0, 1920, 1200); |
| 15 | 15 |
| 16 // Represents a 1024x768 monitor that is not the primary monitor, arranged to | 16 // Represents a 1024x768 monitor that is not the primary monitor, arranged to |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 TestStateProvider* sp = new TestStateProvider; | 185 TestStateProvider* sp = new TestStateProvider; |
| 186 if (source == PERSISTED) | 186 if (source == PERSISTED) |
| 187 sp->SetPersistentState(state, work_area, true); | 187 sp->SetPersistentState(state, work_area, true); |
| 188 else if (source == LAST_ACTIVE) | 188 else if (source == LAST_ACTIVE) |
| 189 sp->SetLastActiveState(state, true); | 189 sp->SetLastActiveState(state, true); |
| 190 | 190 |
| 191 WindowSizer sizer(sp, mip, browser); | 191 WindowSizer sizer(sp, mip, browser); |
| 192 sizer.DetermineWindowBounds(passed_in, out_bounds); | 192 sizer.DetermineWindowBounds(passed_in, out_bounds); |
| 193 } | 193 } |
| 194 | 194 |
| 195 #endif // CHROME_BROWSER_UI_WINDOW_SIZER_COMMON_UNITTEST_H_ | 195 #endif // CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_COMMON_UNITTEST_H_ |
| OLD | NEW |