Index: chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc |
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc b/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc |
index 19d916148cd326f012dea84d4b5fa3150ac6025a..8fe72bf14d97cfaab3e1290a5e70bc9864106018 100644 |
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc |
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.cc |
@@ -4,6 +4,8 @@ |
#include "chrome/browser/ui/views/frame/browser_non_client_frame_view_ash.h" |
+#include <algorithm> |
+ |
#include "ash/ash_switches.h" |
#include "ash/frame/caption_buttons/frame_caption_button_container_view.h" |
#include "ash/frame/default_header_painter.h" |
@@ -377,6 +379,22 @@ gfx::ImageSkia BrowserNonClientFrameViewAsh::GetFaviconForTabIconView() { |
} |
/////////////////////////////////////////////////////////////////////////////// |
+// views::View: |
+ |
+void BrowserNonClientFrameViewAsh:: |
+ ChildPreferredSizeChanged(views::View* child) { |
+// FrameCaptionButtonContainerView animates the visibility changes in |
+// UpdateSizeButtonVisibility(false). Due to this a new size is not |
+// available |
flackr
2014/05/16 18:40:12
nit: bad wrapping.
jonross
2014/05/16 19:50:01
Done.
|
+// until the completion of the animation. Layout it response to the |
flackr
2014/05/16 18:40:12
s/it/in
jonross
2014/05/16 19:50:01
Done.
|
+// preferred |
+// size changes. |
+ if (child != caption_button_container_) |
+ return; |
+ frame()->GetRootView()->Layout(); |
+} |
+ |
+/////////////////////////////////////////////////////////////////////////////// |
// BrowserNonClientFrameViewAsh, private: |
int BrowserNonClientFrameViewAsh::GetTabStripLeftInset() const { |