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

Unified Diff: ash/shelf/app_list_button.cc

Issue 1914093002: Refactors DockedWindowLayoutManager in terms of ash/wm/common (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@nuke_aura_window
Patch Set: comment Created 4 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
« 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 d1ee54b7854ba05358783d47f9bbf4ef8b0f52b6..a57e12378802c6ebd7720ab4f09aae6c80058aa8 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;
- ShelfAlignment alignment = shelf_view_->shelf()->alignment();
+ wm::ShelfAlignment alignment = shelf_view_->shelf()->alignment();
background_bounds.set_size(background_image->size());
- if (alignment == SHELF_ALIGNMENT_LEFT) {
+ if (alignment == wm::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 == SHELF_ALIGNMENT_RIGHT) {
+ } else if (alignment == wm::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