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

Side by Side Diff: ash/dip_unittest.cc

Issue 11017079: Remove Shell::shelf()|status_area_widget()|launcher() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 2 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
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/display/display_controller_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include <algorithm> 5 #include <algorithm>
6 #include <vector> 6 #include <vector>
7 7
8 #include "ash/launcher/launcher.h" 8 #include "ash/launcher/launcher.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "ash/test/ash_test_base.h" 10 #include "ash/test/ash_test_base.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 EXPECT_EQ("0,0 2000x1800", display_2x.bounds_in_pixel().ToString()); 56 EXPECT_EQ("0,0 2000x1800", display_2x.bounds_in_pixel().ToString());
57 57
58 // Aura and views coordinates are in DIP, so they their bounds do not change. 58 // Aura and views coordinates are in DIP, so they their bounds do not change.
59 EXPECT_EQ("0,0 1000x900", display_2x.bounds().ToString()); 59 EXPECT_EQ("0,0 1000x900", display_2x.bounds().ToString());
60 work_area = display_2x.work_area(); 60 work_area = display_2x.work_area();
61 EXPECT_EQ("0,0 1000x852", work_area.ToString()); 61 EXPECT_EQ("0,0 1000x852", work_area.ToString());
62 EXPECT_EQ("0,0,48,0", display_2x.bounds().InsetsFrom(work_area).ToString()); 62 EXPECT_EQ("0,0,48,0", display_2x.bounds().InsetsFrom(work_area).ToString());
63 63
64 // Sanity check if the workarea's inset hight is same as 64 // Sanity check if the workarea's inset hight is same as
65 // the launcher's height. 65 // the launcher's height.
66 Launcher* launcher = Shell::GetInstance()->launcher(); 66 Launcher* launcher = Launcher::ForPrimaryDisplay();
67 EXPECT_EQ( 67 EXPECT_EQ(
68 display_2x.bounds().InsetsFrom(work_area).height(), 68 display_2x.bounds().InsetsFrom(work_area).height(),
69 launcher->widget()->GetNativeView()->layer()->bounds().height()); 69 launcher->widget()->GetNativeView()->layer()->bounds().height());
70 } 70 }
71 71
72 } // namespace ash 72 } // namespace ash
OLDNEW
« no previous file with comments | « ash/accelerators/accelerator_controller.cc ('k') | ash/display/display_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698