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

Unified Diff: ash/frame/default_header_painter.cc

Issue 271913002: 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
Index: ash/frame/default_header_painter.cc
diff --git a/ash/frame/default_header_painter.cc b/ash/frame/default_header_painter.cc
index fd31d776e91913c78bc0c304370793280d4db70e..e8a46ef3861ce011e601500ce36af6de9fe54a62 100644
--- a/ash/frame/default_header_painter.cc
+++ b/ash/frame/default_header_painter.cc
@@ -200,8 +200,6 @@ void DefaultHeaderPainter::PaintHeader(gfx::Canvas* canvas, Mode mode) {
}
void DefaultHeaderPainter::LayoutHeader() {
- caption_button_container_->Layout();
-
gfx::Size caption_button_container_size =
caption_button_container_->GetPreferredSize();
caption_button_container_->SetBounds(
@@ -209,7 +207,7 @@ void DefaultHeaderPainter::LayoutHeader() {
0,
caption_button_container_size.width(),
caption_button_container_size.height());
-
+ caption_button_container_->Layout();
flackr 2014/05/22 15:46:18 Isn't there a risk that the caption button contain
jonross 2014/05/22 20:36:04 GetPreferredSize calculates based on visibility of
if (window_icon_) {
// Vertically center the window icon with respect to the caption button
// container.

Powered by Google App Engine
This is Rietveld 408576698