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

Unified Diff: ash/frame/default_header_painter.cc

Issue 309973002: Revert of Animate window control changes in TouchView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 7 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/frame/custom_frame_view_ash.cc ('k') | chrome/browser/ui/views/frame/browser_header_painter_ash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/frame/default_header_painter.cc
diff --git a/ash/frame/default_header_painter.cc b/ash/frame/default_header_painter.cc
index e8a46ef3861ce011e601500ce36af6de9fe54a62..fd31d776e91913c78bc0c304370793280d4db70e 100644
--- a/ash/frame/default_header_painter.cc
+++ b/ash/frame/default_header_painter.cc
@@ -200,6 +200,8 @@
}
void DefaultHeaderPainter::LayoutHeader() {
+ caption_button_container_->Layout();
+
gfx::Size caption_button_container_size =
caption_button_container_->GetPreferredSize();
caption_button_container_->SetBounds(
@@ -207,7 +209,7 @@
0,
caption_button_container_size.width(),
caption_button_container_size.height());
- caption_button_container_->Layout();
+
if (window_icon_) {
// Vertically center the window icon with respect to the caption button
// container.
« no previous file with comments | « ash/frame/custom_frame_view_ash.cc ('k') | chrome/browser/ui/views/frame/browser_header_painter_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698