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

Unified Diff: ash/shelf/alternate_app_list_button.cc

Issue 23928004: ash:Shelf - Update position and hit box of status area. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: maybe Created 7 years, 3 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/shelf/overflow_button.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/alternate_app_list_button.cc
diff --git a/ash/shelf/alternate_app_list_button.cc b/ash/shelf/alternate_app_list_button.cc
index 7bcb84bc6bc8873b5942441e874198cc447f5cf6..7c7298d4c7f167b24dd9a8c99901d6c905a5d9c8 100644
--- a/ash/shelf/alternate_app_list_button.cc
+++ b/ash/shelf/alternate_app_list_button.cc
@@ -25,9 +25,6 @@
namespace ash {
namespace internal {
-namespace {
-const int kImagePaddingFromShelf = 5;
-} // namespace
// static
const int AlternateAppListButton::kImageBoundsSize = 7;
@@ -110,15 +107,15 @@ void AlternateAppListButton::OnPaint(gfx::Canvas* canvas) {
background_bounds.set_size(background_image->size());
if (alignment == SHELF_ALIGNMENT_LEFT) {
background_bounds.set_x(contents_bounds.width() -
- kImagePaddingFromShelf - background_image->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) {
- background_bounds.set_x(kImagePaddingFromShelf);
+ background_bounds.set_x(ShelfLayoutManager::kShelfItemInset);
background_bounds.set_y(contents_bounds.y() +
(contents_bounds.height() - background_image->height()) / 2);
} else {
- background_bounds.set_y(kImagePaddingFromShelf);
+ background_bounds.set_y(ShelfLayoutManager::kShelfItemInset);
background_bounds.set_x(contents_bounds.x() +
(contents_bounds.width() - background_image->width()) / 2);
}
« no previous file with comments | « no previous file | ash/shelf/overflow_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698