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

Unified Diff: ui/views/controls/menu/menu_item_view.h

Issue 553233002: Dynamically calculate the number of extension icons to show per row in overflow (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: interactive uitest -> unittest 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
Index: ui/views/controls/menu/menu_item_view.h
diff --git a/ui/views/controls/menu/menu_item_view.h b/ui/views/controls/menu/menu_item_view.h
index 4f0ea441caa60e9eabdd3077309e947fc69151c0..97cf2156875793529d3286d5115cd8c02fe02268 100644
--- a/ui/views/controls/menu/menu_item_view.h
+++ b/ui/views/controls/menu/menu_item_view.h
@@ -265,6 +265,11 @@ class VIEWS_EXPORT MenuItemView : public View {
// Returns the preferred size of this item.
virtual gfx::Size GetPreferredSize() const OVERRIDE;
+ // Gets the preferred height for the given |width|. This is only different
+ // from GetPreferredSize().width() if the item has a child view with flexible
+ // dimensions.
+ virtual int GetHeightForWidth(int width) const OVERRIDE;
+
// Return the preferred dimensions of the item in pixel.
const MenuItemDimensions& GetDimensions() const;

Powered by Google App Engine
This is Rietveld 408576698