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

Side by Side Diff: trunk/src/ash/shelf/shelf_widget_unittest.cc

Issue 59153004: Revert 233787 "Eliminate Shell::RootWindowList in favor of aura:..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month 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 | « trunk/src/ash/shelf/shelf_layout_manager_unittest.cc ('k') | trunk/src/ash/shell.h » ('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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 "ash/shelf/shelf_widget.h" 5 #include "ash/shelf/shelf_widget.h"
6 6
7 #include "ash/launcher/launcher.h" 7 #include "ash/launcher/launcher.h"
8 #include "ash/launcher/launcher_button.h" 8 #include "ash/launcher/launcher_button.h"
9 #include "ash/launcher/launcher_model.h" 9 #include "ash/launcher/launcher_model.h"
10 #include "ash/root_window_controller.h" 10 #include "ash/root_window_controller.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 { 82 {
83 SCOPED_TRACE("Single Left"); 83 SCOPED_TRACE("Single Left");
84 TestLauncherAlignment(Shell::GetPrimaryRootWindow(), 84 TestLauncherAlignment(Shell::GetPrimaryRootWindow(),
85 SHELF_ALIGNMENT_LEFT, 85 SHELF_ALIGNMENT_LEFT,
86 "47,0 353x400"); 86 "47,0 353x400");
87 } 87 }
88 if (!SupportsMultipleDisplays()) 88 if (!SupportsMultipleDisplays())
89 return; 89 return;
90 90
91 UpdateDisplay("300x300,500x500"); 91 UpdateDisplay("300x300,500x500");
92 aura::Window::Windows root_windows = Shell::GetAllRootWindows(); 92 Shell::RootWindowList root_windows = Shell::GetAllRootWindows();
93 { 93 {
94 SCOPED_TRACE("Primary Bottom"); 94 SCOPED_TRACE("Primary Bottom");
95 TestLauncherAlignment(root_windows[0], 95 TestLauncherAlignment(root_windows[0],
96 SHELF_ALIGNMENT_BOTTOM, 96 SHELF_ALIGNMENT_BOTTOM,
97 "0,0 300x253"); 97 "0,0 300x253");
98 } 98 }
99 { 99 {
100 SCOPED_TRACE("Primary Right"); 100 SCOPED_TRACE("Primary Right");
101 TestLauncherAlignment(root_windows[0], 101 TestLauncherAlignment(root_windows[0],
102 SHELF_ALIGNMENT_RIGHT, 102 SHELF_ALIGNMENT_RIGHT,
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 const int status_width = 185 const int status_width =
186 shelf->status_area_widget()->GetWindowBoundsInScreen().width(); 186 shelf->status_area_widget()->GetWindowBoundsInScreen().width();
187 EXPECT_GT(status_width, 0); 187 EXPECT_GT(status_width, 0);
188 EXPECT_EQ(status_width, 188 EXPECT_EQ(status_width,
189 shelf->GetContentsView()->width() - 189 shelf->GetContentsView()->width() -
190 test::LauncherTestAPI(launcher).shelf_view()->width()); 190 test::LauncherTestAPI(launcher).shelf_view()->width());
191 } 191 }
192 #endif 192 #endif
193 193
194 } // namespace ash 194 } // namespace ash
OLDNEW
« no previous file with comments | « trunk/src/ash/shelf/shelf_layout_manager_unittest.cc ('k') | trunk/src/ash/shell.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698