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

Unified Diff: chrome/browser/ui/views/toolbar/browser_actions_container.cc

Issue 476873002: Make hiding an extension action cause it to go to the overflow menu (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 4 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: chrome/browser/ui/views/toolbar/browser_actions_container.cc
diff --git a/chrome/browser/ui/views/toolbar/browser_actions_container.cc b/chrome/browser/ui/views/toolbar/browser_actions_container.cc
index fce979e8569f67dc53847cbbeb2916a2a195742c..5a1859d071662423743881bdfd4d17e67086eb11 100644
--- a/chrome/browser/ui/views/toolbar/browser_actions_container.cc
+++ b/chrome/browser/ui/views/toolbar/browser_actions_container.cc
@@ -892,7 +892,12 @@ bool BrowserActionsContainer::ShowExtensionActionPopup(
}
void BrowserActionsContainer::ToolbarVisibleCountChanged() {
+ int old_container_width = container_width_;
SetContainerWidth();
+ if (old_container_width != container_width_) {
+ SaveDesiredSizeAndAnimate(gfx::Tween::EASE_OUT,
+ model_->GetVisibleIconCount());
+ }
}
void BrowserActionsContainer::ToolbarHighlightModeChanged(

Powered by Google App Engine
This is Rietveld 408576698