Index: chrome/views/native_button.h |
=================================================================== |
--- chrome/views/native_button.h (revision 2758) |
+++ chrome/views/native_button.h (working copy) |
@@ -80,6 +80,10 @@ |
// Assigns an accessible string name. |
void SetAccessibleName(const std::wstring& name); |
+ // Sets whether the min size of this button should follow the Windows |
+ // guidelines. Default is true. Set this to false if you want slim buttons. |
+ void set_enforce_dlu_min_size(bool value) { enforce_dlu_min_size_ = value; } |
+ |
protected: |
virtual HWND CreateNativeControl(HWND parent_container); |
@@ -106,6 +110,10 @@ |
void Clicked(); |
+ // Whether the button preferred size should follow the Microsoft layout |
+ // guidelines. Default is true. |
+ bool enforce_dlu_min_size_; |
+ |
std::wstring label_; |
ChromeFont font_; |
Listener* listener_; |