diff options
author | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-18 20:10:55 +0000 |
---|---|---|
committer | derat@chromium.org <derat@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-18 20:10:55 +0000 |
commit | f2a9e3f812d05f0ac61cbae4b5e911f29913c9b2 (patch) | |
tree | 9275bb84a8a45d1a09c355130b11c1a0bf4b131b /ash | |
parent | 8e2873c61c8df204fb3ab74e4f525abfba630f50 (diff) | |
download | chromium_src-f2a9e3f812d05f0ac61cbae4b5e911f29913c9b2.zip chromium_src-f2a9e3f812d05f0ac61cbae4b5e911f29913c9b2.tar.gz chromium_src-f2a9e3f812d05f0ac61cbae4b5e911f29913c9b2.tar.bz2 |
aura: Move compact mode status area down a few pixels.
This matches the vertical position from non-Aura Chrome OS
builds. The font family and size used in the status area is
still wrong, but that'll be addressed separately.
BUG=107389
TEST=manual: visual inspection
Review URL: https://chromiumcodereview.appspot.com/9178031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118130 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash')
-rw-r--r-- | ash/wm/compact_status_area_layout_manager.cc | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/ash/wm/compact_status_area_layout_manager.cc b/ash/wm/compact_status_area_layout_manager.cc index fb36a27..c60d08d 100644 --- a/ash/wm/compact_status_area_layout_manager.cc +++ b/ash/wm/compact_status_area_layout_manager.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -10,8 +10,13 @@ #include "ui/views/widget/widget.h" namespace { + // Padding between the right edge of status area and right edge of screen. const int kRightEdgePad = 3; + +// Padding between the top of the status area and the top of the screen. +const int kTopEdgePad = 2; + } // namespace namespace ash { @@ -66,7 +71,7 @@ void CompactStatusAreaLayoutManager::LayoutStatusArea() { gfx::Rect widget_bounds = status_widget_->GetRestoredBounds(); widget_bounds.set_x( monitor_bounds.width() - widget_bounds.width() - kRightEdgePad); - widget_bounds.set_y(0); + widget_bounds.set_y(kTopEdgePad); status_widget_->SetBounds(widget_bounds); } |