Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(820)

Side by Side Diff: chrome/browser/ui/window_sizer/window_sizer_common_unittest.h

Issue 10704022: browser: Move window sizer to subdir. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/window_sizer/window_sizer_aura.cc ('k') | chrome/browser/ui/window_sizer/window_sizer_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698