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

Unified Diff: chrome/views/native_button.h

Issue 6043: Added dangerous download prompting. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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: 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_;

Powered by Google App Engine
This is Rietveld 408576698