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

Unified Diff: ash/wm/shelf_layout_manager.cc

Issue 9594011: ash uber tray: Make the tray background rounded. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 10 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/system/tray/system_tray.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/shelf_layout_manager.cc
diff --git a/ash/wm/shelf_layout_manager.cc b/ash/wm/shelf_layout_manager.cc
index 266af8f50edf561e6ffdf919d6e11fc71cf9acaa..322f184a22dbc69936aaa439bfe87f0049f0dc71 100644
--- a/ash/wm/shelf_layout_manager.cc
+++ b/ash/wm/shelf_layout_manager.cc
@@ -20,6 +20,8 @@ namespace internal {
namespace {
+const int kSystemTrayPadding = 10;
+
ui::Layer* GetLayer(views::Widget* widget) {
return widget->GetNativeView()->layer();
}
@@ -134,7 +136,7 @@ void ShelfLayoutManager::CalculateTargetBounds(bool visible,
int y = available_bounds.bottom() - (visible ? max_height_ : 0);
gfx::Rect status_bounds(status_->GetWindowScreenBounds());
target_bounds->status_bounds = gfx::Rect(
- available_bounds.right() - status_bounds.width(),
+ available_bounds.right() - status_bounds.width() - kSystemTrayPadding,
y + (max_height_ - status_bounds.height()) / 2,
status_bounds.width(), status_bounds.height());
gfx::Rect launcher_bounds(launcher_->GetWindowScreenBounds());
« no previous file with comments | « ash/system/tray/system_tray.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698