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

Unified Diff: ash/wm/panels/panel_layout_manager_unittest.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/panels/panel_layout_manager.cc ('k') | ash/wm/panels/panel_window_resizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/panels/panel_layout_manager_unittest.cc
diff --git a/ash/wm/panels/panel_layout_manager_unittest.cc b/ash/wm/panels/panel_layout_manager_unittest.cc
index 9bf9b691fc6fb4d669c5af681cc9648783545284..f05c9382ffa69246a1c6d17a23ff5d4e250a9f5e 100644
--- a/ash/wm/panels/panel_layout_manager_unittest.cc
+++ b/ash/wm/panels/panel_layout_manager_unittest.cc
@@ -9,12 +9,12 @@
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/public/cpp/window_properties.h"
#include "ash/root_window_controller.h"
+#include "ash/shelf/shelf.h"
#include "ash/shelf/shelf_button.h"
#include "ash/shelf/shelf_layout_manager.h"
#include "ash/shelf/shelf_model.h"
#include "ash/shelf/shelf_view.h"
#include "ash/shelf/shelf_widget.h"
-#include "ash/shelf/wm_shelf.h"
#include "ash/shell.h"
#include "ash/system/web_notification/web_notification_tray.h"
#include "ash/test/ash_test_base.h"
@@ -142,7 +142,7 @@ class PanelLayoutManagerTest : public test::AshTestBase {
shelf_view_test()->RunMessageLoopUntilAnimationsDone();
WmWindow* wm_panel = WmWindow::Get(panel);
- WmShelf* shelf = wm_panel->GetRootWindowController()->GetShelf();
+ Shelf* shelf = wm_panel->GetRootWindowController()->shelf();
gfx::Rect icon_bounds = shelf->GetScreenBoundsOfItemIconForWindow(wm_panel);
ASSERT_FALSE(icon_bounds.width() == 0 && icon_bounds.height() == 0);
@@ -178,7 +178,7 @@ class PanelLayoutManagerTest : public test::AshTestBase {
views::Widget* widget = GetCalloutWidgetForPanel(panel);
WmWindow* wm_panel = WmWindow::Get(panel);
- WmShelf* shelf = wm_panel->GetRootWindowController()->GetShelf();
+ Shelf* shelf = wm_panel->GetRootWindowController()->shelf();
gfx::Rect icon_bounds = shelf->GetScreenBoundsOfItemIconForWindow(wm_panel);
ASSERT_FALSE(icon_bounds.IsEmpty());
@@ -230,7 +230,7 @@ class PanelLayoutManagerTest : public test::AshTestBase {
test_api.RunMessageLoopUntilAnimationsDone();
}
- WmShelf* GetShelfForWindow(aura::Window* window) {
+ Shelf* GetShelfForWindow(aura::Window* window) {
return WmWindow::Get(window)->GetRootWindowController()->GetShelf();
}
@@ -240,7 +240,7 @@ class PanelLayoutManagerTest : public test::AshTestBase {
void SetShelfAutoHideBehavior(aura::Window* window,
ShelfAutoHideBehavior behavior) {
- WmShelf* shelf = GetShelfForWindow(window);
+ Shelf* shelf = GetShelfForWindow(window);
shelf->SetAutoHideBehavior(behavior);
test::ShelfViewTestAPI test_api(shelf->GetShelfViewForTesting());
test_api.RunMessageLoopUntilAnimationsDone();
@@ -248,7 +248,7 @@ class PanelLayoutManagerTest : public test::AshTestBase {
void SetShelfVisibilityState(aura::Window* window,
ShelfVisibilityState visibility_state) {
- WmShelf* shelf = GetShelfForWindow(window);
+ Shelf* shelf = GetShelfForWindow(window);
shelf->shelf_layout_manager()->SetState(visibility_state);
}
@@ -627,7 +627,7 @@ TEST_F(PanelLayoutManagerTest, FanWindows) {
int window_x1 = w1->GetBoundsInRootWindow().CenterPoint().x();
int window_x2 = w2->GetBoundsInRootWindow().CenterPoint().x();
int window_x3 = w3->GetBoundsInRootWindow().CenterPoint().x();
- WmShelf* shelf = GetPrimaryShelf();
+ Shelf* shelf = GetPrimaryShelf();
int icon_x1 =
shelf->GetScreenBoundsOfItemIconForWindow(WmWindow::Get(w1.get())).x();
int icon_x2 =
« no previous file with comments | « ash/wm/panels/panel_layout_manager.cc ('k') | ash/wm/panels/panel_window_resizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698