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

Unified Diff: ash/wm/frame_painter.cc

Issue 12212207: Support panel titles and Icons for v1 apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comment. Created 7 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 | « no previous file | ash/wm/panel_frame_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/frame_painter.cc
diff --git a/ash/wm/frame_painter.cc b/ash/wm/frame_painter.cc
index b6800698e771d305fffbd7c417e5d950e3481065..419cd3963729ad077ebe20e7e8082963602ffe1a 100644
--- a/ash/wm/frame_painter.cc
+++ b/ash/wm/frame_painter.cc
@@ -44,7 +44,7 @@ const int kBorderThickness = 0;
// Space between left edge of window and popup window icon.
const int kIconOffsetX = 9;
// Space between top of window and popup window icon.
-const int kIconOffsetY = 9;
+const int kIconOffsetY = 5;
// Height and width of window icon.
const int kIconSize = 16;
// Space between the title text and the caption buttons.
@@ -594,9 +594,10 @@ void FramePainter::LayoutHeader(views::NonClientFrameView* view,
immersive_size.height());
}
- if (window_icon_)
+ if (window_icon_) {
window_icon_->SetBoundsRect(
gfx::Rect(kIconOffsetX, kIconOffsetY, kIconSize, kIconSize));
+ }
}
void FramePainter::SchedulePaintForTitle(views::NonClientFrameView* view,
« no previous file with comments | « no previous file | ash/wm/panel_frame_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698