| 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_COMMON_UNITTEST_H_ | 5 #ifndef CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_COMMON_UNITTEST_H_ |
| 6 #define CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_COMMON_UNITTEST_H_ | 6 #define CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_COMMON_UNITTEST_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "chrome/browser/ui/window_sizer/window_sizer.h" | 11 #include "chrome/browser/ui/window_sizer/window_sizer.h" |
| 12 #include "chrome/test/base/test_browser_window.h" | 12 #include "chrome/test/base/test_browser_window.h" |
| 13 #include "content/public/test/test_browser_thread.h" | |
| 14 #include "ui/gfx/rect.h" | 13 #include "ui/gfx/rect.h" |
| 15 | 14 |
| 16 // Some standard primary monitor sizes (no task bar). | 15 // Some standard primary monitor sizes (no task bar). |
| 17 static const gfx::Rect p1024x768(0, 0, 1024, 768); | 16 static const gfx::Rect p1024x768(0, 0, 1024, 768); |
| 18 static const gfx::Rect p1280x1024(0, 0, 1280, 1024); | 17 static const gfx::Rect p1280x1024(0, 0, 1280, 1024); |
| 19 static const gfx::Rect p1600x1200(0, 0, 1600, 1200); | 18 static const gfx::Rect p1600x1200(0, 0, 1600, 1200); |
| 20 static const gfx::Rect p1680x1050(0, 0, 1680, 1050); | 19 static const gfx::Rect p1680x1050(0, 0, 1680, 1050); |
| 21 static const gfx::Rect p1920x1200(0, 0, 1920, 1200); | 20 static const gfx::Rect p1920x1200(0, 0, 1920, 1200); |
| 22 | 21 |
| 23 // Represents a 1024x768 monitor that is the secondary monitor, arranged to | 22 // Represents a 1024x768 monitor that is the secondary monitor, arranged to |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 // the WindowSizer. | 128 // the WindowSizer. |
| 130 // The |display_config| is the primary display configuration used. | 129 // The |display_config| is the primary display configuration used. |
| 131 ui::WindowShowState GetWindowShowState( | 130 ui::WindowShowState GetWindowShowState( |
| 132 ui::WindowShowState show_state_persisted, | 131 ui::WindowShowState show_state_persisted, |
| 133 ui::WindowShowState show_state_last, | 132 ui::WindowShowState show_state_last, |
| 134 Source source, | 133 Source source, |
| 135 const Browser* browser, | 134 const Browser* browser, |
| 136 const gfx::Rect& display_config); | 135 const gfx::Rect& display_config); |
| 137 | 136 |
| 138 #endif // CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_COMMON_UNITTEST_H_ | 137 #endif // CHROME_BROWSER_UI_WINDOW_SIZER_WINDOW_SIZER_COMMON_UNITTEST_H_ |
| OLD | NEW |