Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / ui / views / controls / menu / menu_item_view.h
index 4f0ea44..97cf215 100644 (file)
@@ -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;