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

Unified Diff: ash/wm/custom_frame_view_ash.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/custom_frame_view_ash.cc
diff --git a/ash/wm/custom_frame_view_ash.cc b/ash/wm/custom_frame_view_ash.cc
index 48a4ff7d6514176648e0ae1091e4438af2fe525d..079d7e31036e4b14e3de8937b9d46371dac1113a 100644
--- a/ash/wm/custom_frame_view_ash.cc
+++ b/ash/wm/custom_frame_view_ash.cc
@@ -177,10 +177,7 @@ int CustomFrameViewAsh::NonClientTopBorderHeight() const {
if (frame_->IsFullscreen())
return 0;
- // Reserve enough space to see the buttons, including any offset from top and
- // reserving space for the separator line.
- return close_button_->bounds().bottom() +
- frame_painter_->HeaderContentSeparatorSize();
+ return frame_painter_->HeaderHeight();
}
} // namespace ash
« no previous file with comments | « ash/shell/panel_window.cc ('k') | ash/wm/frame_painter.h » ('j') | ash/wm/frame_painter.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698