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

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

Issue 12330002: Add views::Button style enum for LabelButton [native] styling, etc. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync and merge. Created 7 years, 10 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
« no previous file with comments | « ui/app_list/views/signin_view.cc ('k') | ui/views/controls/button/custom_button.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/button/button.h
diff --git a/ui/views/controls/button/button.h b/ui/views/controls/button/button.h
index 0563c1db291f42c61dee87984da09053d9862bfa..50180e483b0ed9306468d05db64ac02d03d9b6e6 100644
--- a/ui/views/controls/button/button.h
+++ b/ui/views/controls/button/button.h
@@ -28,6 +28,24 @@ class VIEWS_EXPORT Button : public View {
public:
virtual ~Button();
+ // Button states for various button sub-types.
+ // TODO(msw): Add toggled state for checkboxes, radio buttons, etc.
+ enum ButtonState {
+ STATE_NORMAL = 0,
+ STATE_HOVERED,
+ STATE_PRESSED,
+ STATE_DISABLED,
+ STATE_COUNT,
+ };
+
+ // Button styles with associated images and border painters.
+ // TODO(msw): Add "Chrome Style", Checkbox, Radio, Menu, ComboBox, etc.
+ enum ButtonStyle {
+ STYLE_TEXTBUTTON = 0,
+ STYLE_NATIVE_TEXTBUTTON,
+ STYLE_COUNT,
+ };
+
void SetTooltipText(const string16& tooltip_text);
int tag() const { return tag_; }
« no previous file with comments | « ui/app_list/views/signin_view.cc ('k') | ui/views/controls/button/custom_button.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698