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

Unified Diff: ash/wm/frame_painter.cc

Issue 11363250: Allow Chrome apps to create Ash Panels (apps v2) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address feedback and add unit test for PanelLayoutManager minimize/restore Created 8 years, 1 month 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
Index: ash/wm/frame_painter.cc
diff --git a/ash/wm/frame_painter.cc b/ash/wm/frame_painter.cc
index a4b4c70151c03bb1fc9caec7a3169370a0fd23a8..884cd50ceb2e2338be3d839aa6fb7f51e9ec8037 100644
--- a/ash/wm/frame_painter.cc
+++ b/ash/wm/frame_painter.cc
@@ -492,8 +492,10 @@ void FramePainter::PaintHeaderContentSeparator(views::NonClientFrameView* view,
kHeaderContentSeparatorColor);
}
-int FramePainter::HeaderContentSeparatorSize() const {
- return kHeaderContentSeparatorSize;
+int FramePainter::HeaderHeight() const {
+ int bottom_y = std::max(size_button_->bounds().bottom(),
+ close_button_->bounds().bottom());
+ return (bottom_y - 1) + kHeaderContentSeparatorSize;
James Cook 2012/11/20 22:08:41 nit: Consider documenting that the -1 is because t
}
void FramePainter::PaintTitleBar(views::NonClientFrameView* view,

Powered by Google App Engine
This is Rietveld 408576698