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

Unified Diff: ash/app_list/app_list_presenter_delegate.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 | « no previous file | ash/ash.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/app_list/app_list_presenter_delegate.cc
diff --git a/ash/app_list/app_list_presenter_delegate.cc b/ash/app_list/app_list_presenter_delegate.cc
index 92f78d49aa5d3c76e66c79d30f9d23b421fe3096..d128d468ad34c49ca641791da44f7fbddeb2b662 100644
--- a/ash/app_list/app_list_presenter_delegate.cc
+++ b/ash/app_list/app_list_presenter_delegate.cc
@@ -5,6 +5,7 @@
#include "ash/app_list/app_list_presenter_delegate.h"
#include "ash/ash_switches.h"
+#include "ash/common/shelf/shelf_types.h"
#include "ash/common/shell_window_ids.h"
#include "ash/display/window_tree_host_manager.h"
#include "ash/root_window_controller.h"
@@ -46,12 +47,12 @@ views::BubbleBorder::Arrow GetBubbleArrow(aura::Window* window) {
gfx::Vector2d GetAnchorPositionOffsetToShelf(const gfx::Rect& button_bounds,
views::Widget* widget) {
DCHECK(Shell::HasInstance());
- wm::ShelfAlignment shelf_alignment =
+ ShelfAlignment shelf_alignment =
Shelf::ForWindow(widget->GetNativeView()->GetRootWindow())->alignment();
gfx::Point anchor(button_bounds.CenterPoint());
switch (shelf_alignment) {
- case wm::SHELF_ALIGNMENT_BOTTOM:
- case wm::SHELF_ALIGNMENT_BOTTOM_LOCKED:
+ case SHELF_ALIGNMENT_BOTTOM:
+ case SHELF_ALIGNMENT_BOTTOM_LOCKED:
if (base::i18n::IsRTL()) {
int screen_width = widget->GetWorkAreaBoundsInScreen().width();
return gfx::Vector2d(
@@ -61,10 +62,10 @@ gfx::Vector2d GetAnchorPositionOffsetToShelf(const gfx::Rect& button_bounds,
}
return gfx::Vector2d(
std::max(kMinimalAnchorPositionOffset - anchor.x(), 0), 0);
- case wm::SHELF_ALIGNMENT_LEFT:
+ case SHELF_ALIGNMENT_LEFT:
return gfx::Vector2d(
0, std::max(kMinimalAnchorPositionOffset - anchor.y(), 0));
- case wm::SHELF_ALIGNMENT_RIGHT:
+ case SHELF_ALIGNMENT_RIGHT:
return gfx::Vector2d(
0, std::max(kMinimalAnchorPositionOffset - anchor.y(), 0));
}
« no previous file with comments | « no previous file | ash/ash.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698