diff options
author | arv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-23 01:29:53 +0000 |
---|---|---|
committer | arv@google.com <arv@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-23 01:29:53 +0000 |
commit | 58bf86404acb1f5976f38ece94174c0ec3f0c1fa (patch) | |
tree | bb91c537b1daf808e4e0c6410494ef6aa871c05f /chrome/browser/window_sizer_unittest.cc | |
parent | d22935f1a195ec87e16043fe054bdef99cda783a (diff) | |
download | chromium_src-58bf86404acb1f5976f38ece94174c0ec3f0c1fa.zip chromium_src-58bf86404acb1f5976f38ece94174c0ec3f0c1fa.tar.gz chromium_src-58bf86404acb1f5976f38ece94174c0ec3f0c1fa.tar.bz2 |
Tweak thumbnail sizes a bit so it the NNTP looks better side by side on
a 1920x1200 screen.
Also, tweak the default size of new windows slightly. In case we decide
to use side by side windows size the window in such a way that 2
windows fit on the screen and have the kWindowTilePixels spacing
between each other and the screen edges.
BUG=None
TEST=Show two windows side. On a 1920x1200 screen they should both be
showing the thumbnails in normal size.
Review URL: http://codereview.chromium.org/155930
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@21364 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/window_sizer_unittest.cc')
-rw-r--r-- | chrome/browser/window_sizer_unittest.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/window_sizer_unittest.cc b/chrome/browser/window_sizer_unittest.cc index 36e9257..c58b31a 100644 --- a/chrome/browser/window_sizer_unittest.cc +++ b/chrome/browser/window_sizer_unittest.cc @@ -263,7 +263,7 @@ TEST(WindowSizerTest, DefaultSizeCase) { false, DEFAULT, &window_bounds, &maximized); EXPECT_FALSE(maximized); EXPECT_EQ(gfx::Rect(kWindowTilePixels, kWindowTilePixels, - 840 - kWindowTilePixels * 3, + 840 - static_cast<int>(kWindowTilePixels * 1.5), 1050 - kWindowTilePixels * 2), window_bounds); } @@ -275,7 +275,7 @@ TEST(WindowSizerTest, DefaultSizeCase) { false, DEFAULT, &window_bounds, &maximized); EXPECT_FALSE(maximized); EXPECT_EQ(gfx::Rect(kWindowTilePixels, kWindowTilePixels, - 960 - kWindowTilePixels * 3, + 960 - static_cast<int>(kWindowTilePixels * 1.5), 1200 - kWindowTilePixels * 2), window_bounds); } |