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

Unified Diff: ui/views/controls/button/menu_button.h

Issue 10829038: (Views only) Resize the menu buttons on the Website Settings UI to fit the button text (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 8 years, 5 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: ui/views/controls/button/menu_button.h
diff --git a/ui/views/controls/button/menu_button.h b/ui/views/controls/button/menu_button.h
index 857a31d29fd07bb9b0401f920cbc9821f8c7a4e6..2a05fdb8afb3e77ca041838c6e5a93a373cafa07 100644
--- a/ui/views/controls/button/menu_button.h
+++ b/ui/views/controls/button/menu_button.h
@@ -30,6 +30,10 @@ class VIEWS_EXPORT MenuButton : public TextButton {
public:
static const char kViewClassName[];
+ // How much padding to put on the left and right of the menu marker.
+ static const int kMenuMarkerPaddingLeft;
+ static const int kMenuMarkerPaddingRight;
+
// Create a Button.
MenuButton(ButtonListener* listener,
const string16& text,
@@ -37,9 +41,11 @@ class VIEWS_EXPORT MenuButton : public TextButton {
bool show_menu_marker);
virtual ~MenuButton();
+ bool show_menu_marker() const { return show_menu_marker_; }
void set_menu_marker(const gfx::ImageSkia* menu_marker) {
menu_marker_ = menu_marker;
}
+ const gfx::ImageSkia* menu_marker() const { return menu_marker_; }
const gfx::Point& menu_offset() const { return menu_offset_; }
void set_menu_offset(int x, int y) { menu_offset_.SetPoint(x, y); }

Powered by Google App Engine
This is Rietveld 408576698