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

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

Issue 539543002: Fix two bugs in the extension actions toolbar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | chrome/browser/ui/views/toolbar/browser_actions_container.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/toolbar/browser_actions_container.h
diff --git a/chrome/browser/ui/views/toolbar/browser_actions_container.h b/chrome/browser/ui/views/toolbar/browser_actions_container.h
index ab09ad11aace709cea1a50bf2e9f353669bc486c..f3702c5aa560c5c1824198a68836a2d4c9d4e201 100644
--- a/chrome/browser/ui/views/toolbar/browser_actions_container.h
+++ b/chrome/browser/ui/views/toolbar/browser_actions_container.h
@@ -295,8 +295,13 @@ class BrowserActionsContainer
// Called when a browser action's visibility may have changed.
void OnBrowserActionVisibilityChanged();
- // Sets the initial container width.
- void SetContainerWidth();
+ // Returns the preferred width of the container in order to show all icons
+ // that should be visible and, optionally, the chevron.
+ int GetPreferredWidth();
+
+ // Sets the chevron to be visible or not based on whether all browser actions
+ // are displayed.
+ void SetChevronVisibility();
// Closes the overflow menu if open.
void CloseOverflowMenu();
« no previous file with comments | « no previous file | chrome/browser/ui/views/toolbar/browser_actions_container.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698