Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git] / src / ui / views / controls / button / label_button.h
index 0bbe7fe..7f602fa 100644 (file)
@@ -61,6 +61,7 @@ class VIEWS_EXPORT LabelButton : public CustomButton,
 
   // Call set_min_size(gfx::Size()) to clear the monotonically increasing size.
   void set_min_size(const gfx::Size& min_size) { min_size_ = min_size; }
+  void set_min_width(const int min_width) { min_size_.set_width(min_width); }
   void set_max_size(const gfx::Size& max_size) { max_size_ = max_size; }
 
   // Get or set the option to handle the return key; false by default.
@@ -132,6 +133,10 @@ class VIEWS_EXPORT LabelButton : public CustomButton,
   ImageView* image_;
   Label* label_;
 
+  // The cached font lists in the normal and bold style.
+  gfx::FontList cached_normal_font_list_;
+  gfx::FontList cached_bold_font_list_;
+
   // The images and colors for each button state.
   gfx::ImageSkia button_state_images_[STATE_COUNT];
   SkColor button_state_colors_[STATE_COUNT];