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

Unified Diff: ash/common/wm/panels/panel_window_resizer.cc

Issue 2036353002: mash: Move ash/common/wm/shelf to ash/common/shelf (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again Created 4 years, 6 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/common/wm/panels/panel_layout_manager.cc ('k') | ash/common/wm/shelf/wm_shelf.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/wm/panels/panel_window_resizer.cc
diff --git a/ash/common/wm/panels/panel_window_resizer.cc b/ash/common/wm/panels/panel_window_resizer.cc
index 15f6b92ca04986e1b619b043bc87fbab4d9a0dcd..9fc3ca355cb14e481b44e4c6d02d9c19eca640ad 100644
--- a/ash/common/wm/panels/panel_window_resizer.cc
+++ b/ash/common/wm/panels/panel_window_resizer.cc
@@ -4,9 +4,9 @@
#include "ash/common/wm/panels/panel_window_resizer.h"
+#include "ash/common/shelf/wm_shelf.h"
#include "ash/common/shell_window_ids.h"
#include "ash/common/wm/panels/panel_layout_manager.h"
-#include "ash/common/wm/shelf/wm_shelf.h"
#include "ash/common/wm/window_parenting_utils.h"
#include "ash/common/wm/window_state.h"
#include "ash/common/wm_lookup.h"
@@ -122,22 +122,22 @@ bool PanelWindowResizer::AttachToLauncher(const gfx::Rect& bounds,
gfx::Rect launcher_bounds = GetTarget()->GetParent()->ConvertRectFromScreen(
panel_layout_manager->shelf()->GetWindow()->GetBoundsInScreen());
switch (panel_layout_manager->shelf()->GetAlignment()) {
- case wm::SHELF_ALIGNMENT_BOTTOM:
- case wm::SHELF_ALIGNMENT_BOTTOM_LOCKED:
+ case SHELF_ALIGNMENT_BOTTOM:
+ case SHELF_ALIGNMENT_BOTTOM_LOCKED:
if (bounds.bottom() >=
(launcher_bounds.y() - kPanelSnapToLauncherDistance)) {
should_attach = true;
offset->set_y(launcher_bounds.y() - bounds.height() - bounds.y());
}
break;
- case wm::SHELF_ALIGNMENT_LEFT:
+ case SHELF_ALIGNMENT_LEFT:
if (bounds.x() <=
(launcher_bounds.right() + kPanelSnapToLauncherDistance)) {
should_attach = true;
offset->set_x(launcher_bounds.right() - bounds.x());
}
break;
- case wm::SHELF_ALIGNMENT_RIGHT:
+ case SHELF_ALIGNMENT_RIGHT:
if (bounds.right() >=
(launcher_bounds.x() - kPanelSnapToLauncherDistance)) {
should_attach = true;
« no previous file with comments | « ash/common/wm/panels/panel_layout_manager.cc ('k') | ash/common/wm/shelf/wm_shelf.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698