summaryrefslogtreecommitdiffstats
path: root/chrome/views/native_button.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/views/native_button.h')
-rw-r--r--chrome/views/native_button.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome/views/native_button.h b/chrome/views/native_button.h
index 9a42439..935349f 100644
--- a/chrome/views/native_button.h
+++ b/chrome/views/native_button.h
@@ -80,6 +80,10 @@ class NativeButton : public NativeControl {
// 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 @@ class NativeButton : public NativeControl {
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_;