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

Unified Diff: ash/test/ash_test.cc

Issue 2808723004: Renames WmShell to ShellPort (Closed)
Patch Set: feedback Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ash/test/ash_test.cc
diff --git a/ash/test/ash_test.cc b/ash/test/ash_test.cc
index 86c95e43bb067c33f90e16328af9d4b355dc229c..0d7a8bd2ed927cac728480b54f42406d845381ef 100644
--- a/ash/test/ash_test.cc
+++ b/ash/test/ash_test.cc
@@ -7,11 +7,11 @@
#include "ash/root_window_controller.h"
#include "ash/shelf/wm_shelf.h"
#include "ash/shell.h"
+#include "ash/shell_port.h"
#include "ash/system/status_area_widget.h"
#include "ash/test/ash_test_impl.h"
#include "ash/test/test_session_state_delegate.h"
#include "ash/test/test_system_tray_delegate.h"
-#include "ash/wm_shell.h"
#include "ash/wm_window.h"
#include "base/memory/ptr_util.h"
#include "base/run_loop.h"
@@ -33,7 +33,7 @@ AshTest::~AshTest() {}
// static
WmShelf* AshTest::GetPrimaryShelf() {
- return WmShell::Get()
+ return ShellPort::Get()
->GetPrimaryRootWindow()
->GetRootWindowController()
->GetShelf();
@@ -91,7 +91,7 @@ std::unique_ptr<views::Widget> AshTest::CreateTestWidget(
params.delegate = delegate;
params.ownership = views::Widget::InitParams::WIDGET_OWNS_NATIVE_WIDGET;
params.bounds = bounds;
- WmShell::Get()
+ ShellPort::Get()
->GetPrimaryRootWindow()
->GetRootWindowController()
->ConfigureWidgetInitParamsForContainer(widget.get(), container_id,
@@ -108,7 +108,7 @@ display::Display AshTest::GetSecondaryDisplay() {
bool AshTest::SetSecondaryDisplayPlacement(
display::DisplayPlacement::Position position,
int offset) {
- if (WmShell::Get()->IsRunningInMash()) {
+ if (ShellPort::Get()->IsRunningInMash()) {
NOTIMPLEMENTED();
return false;
}
@@ -122,7 +122,7 @@ void AshTest::ConfigureWidgetInitParamsForDisplay(
}
void AshTest::ParentWindowInPrimaryRootWindow(WmWindow* window) {
- window->SetParentUsingContext(WmShell::Get()->GetPrimaryRootWindow(),
+ window->SetParentUsingContext(ShellPort::Get()->GetPrimaryRootWindow(),
gfx::Rect());
}

Powered by Google App Engine
This is Rietveld 408576698