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

Side by Side Diff: ash/test/ash_test_base.cc

Issue 2899253002: chromeos: Rename ash::WmShelf to Shelf (Closed)
Patch Set: rebase Created 3 years, 7 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
« no previous file with comments | « ash/test/ash_test_base.h ('k') | ash/test/test_shell_delegate.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) 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 "ash/test/ash_test_base.h" 5 #include "ash/test/ash_test_base.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/display/extended_mouse_warp_controller.h" 10 #include "ash/display/extended_mouse_warp_controller.h"
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 182
183 ash_test_helper_->TearDown(); 183 ash_test_helper_->TearDown();
184 184
185 event_generator_.reset(); 185 event_generator_.reset();
186 // Some tests set an internal display id, 186 // Some tests set an internal display id,
187 // reset it here, so other tests will continue in a clean environment. 187 // reset it here, so other tests will continue in a clean environment.
188 display::Display::SetInternalDisplayId(display::kInvalidDisplayId); 188 display::Display::SetInternalDisplayId(display::kInvalidDisplayId);
189 } 189 }
190 190
191 // static 191 // static
192 WmShelf* AshTestBase::GetPrimaryShelf() { 192 Shelf* AshTestBase::GetPrimaryShelf() {
193 return Shell::GetPrimaryRootWindowController()->GetShelf(); 193 return Shell::GetPrimaryRootWindowController()->GetShelf();
194 } 194 }
195 195
196 // static 196 // static
197 SystemTray* AshTestBase::GetPrimarySystemTray() { 197 SystemTray* AshTestBase::GetPrimarySystemTray() {
198 return Shell::Get()->GetPrimarySystemTray(); 198 return Shell::Get()->GetPrimarySystemTray();
199 } 199 }
200 200
201 ui::test::EventGenerator& AshTestBase::GetEventGenerator() { 201 ui::test::EventGenerator& AshTestBase::GetEventGenerator() {
202 if (!event_generator_) { 202 if (!event_generator_) {
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 return display::Screen::GetScreen()->GetDisplayNearestWindow( 482 return display::Screen::GetScreen()->GetDisplayNearestWindow(
483 Shell::GetPrimaryRootWindow()); 483 Shell::GetPrimaryRootWindow());
484 } 484 }
485 485
486 display::Display AshTestBase::GetSecondaryDisplay() { 486 display::Display AshTestBase::GetSecondaryDisplay() {
487 return ash_test_helper_->GetSecondaryDisplay(); 487 return ash_test_helper_->GetSecondaryDisplay();
488 } 488 }
489 489
490 } // namespace test 490 } // namespace test
491 } // namespace ash 491 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/ash_test_base.h ('k') | ash/test/test_shell_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698