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

Unified Diff: ash/shelf/app_list_button.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/root_window_controller.cc ('k') | ash/shelf/overflow_bubble_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/app_list_button.cc
diff --git a/ash/shelf/app_list_button.cc b/ash/shelf/app_list_button.cc
index a57e12378802c6ebd7720ab4f09aae6c80058aa8..76b0177bd07a5d2b346eee8026437a8967510587 100644
--- a/ash/shelf/app_list_button.cc
+++ b/ash/shelf/app_list_button.cc
@@ -123,14 +123,14 @@ void AppListButton::OnPaint(gfx::Canvas* canvas) {
gfx::Rect contents_bounds = GetContentsBounds();
gfx::Rect background_bounds, forground_bounds;
- wm::ShelfAlignment alignment = shelf_view_->shelf()->alignment();
+ ShelfAlignment alignment = shelf_view_->shelf()->alignment();
background_bounds.set_size(background_image->size());
- if (alignment == wm::SHELF_ALIGNMENT_LEFT) {
+ if (alignment == SHELF_ALIGNMENT_LEFT) {
background_bounds.set_x(contents_bounds.width() -
ShelfLayoutManager::kShelfItemInset - background_image->width());
background_bounds.set_y(contents_bounds.y() +
(contents_bounds.height() - background_image->height()) / 2);
- } else if (alignment == wm::SHELF_ALIGNMENT_RIGHT) {
+ } else if (alignment == SHELF_ALIGNMENT_RIGHT) {
background_bounds.set_x(ShelfLayoutManager::kShelfItemInset);
background_bounds.set_y(contents_bounds.y() +
(contents_bounds.height() - background_image->height()) / 2);
« no previous file with comments | « ash/root_window_controller.cc ('k') | ash/shelf/overflow_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698