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 f3702c5aa560c5c1824198a68836a2d4c9d4e201..9d9c6ed3bd1fbe679bcec58f1c693164adee82a0 100644 |
--- a/chrome/browser/ui/views/toolbar/browser_actions_container.h |
+++ b/chrome/browser/ui/views/toolbar/browser_actions_container.h |
@@ -248,6 +248,21 @@ class BrowserActionsContainer |
// unit tests. |
void TestSetIconVisibilityCount(size_t icons); |
+ // Returns the width of an icon, optionally with its padding. |
+ static int IconWidth(bool include_padding); |
+ |
+ // Returns the height of an icon. |
+ static int IconHeight(); |
+ |
+ // The maximum number of icons to show per row when in overflow mode (showing |
+ // icons in the application menu). |
+ // This is set by the active menu before display. |
+ static int icons_per_menu_row; |
Finnur
2014/09/10 10:48:28
So, two things I'm concerned about here:
1) Most
Devlin
2014/09/10 16:14:26
1) It's not really used to guide both types of con
Finnur
2014/09/11 09:12:43
How about we compromise on this by doing step 1.5
Devlin
2014/09/11 17:53:50
Done. :)
|
+ |
+ // Horizontal spacing between most items in the container, as well as after |
+ // the last item or chevron (if visible). |
+ static const int kItemSpacing; |
Finnur
2014/09/10 10:48:28
This is only used internally. Doesn't need to be p
Devlin
2014/09/10 16:14:26
This is also now used in ExtensionToolbarMenuView
Finnur
2014/09/11 09:12:43
Huh. I see that now.
|
+ |
// During testing we can disable animations by setting this flag to true, |
// so that the bar resizes instantly, instead of having to poll it while it |
// animates to open/closed status. |
@@ -261,18 +276,11 @@ class BrowserActionsContainer |
virtual void OnThemeChanged() OVERRIDE; |
private: |
- friend class BrowserActionView; // So it can access IconWidth(). |
- |
// A struct representing the position at which an action will be dropped. |
struct DropPosition; |
typedef std::vector<BrowserActionView*> BrowserActionViews; |
- // Returns the width of an icon, optionally with its padding. |
- static int IconWidth(bool include_padding); |
- |
- // Returns the height of an icon. |
- static int IconHeight(); |
// extensions::ExtensionToolbarModel::Observer implementation. |
virtual void ToolbarExtensionAdded(const extensions::Extension* extension, |