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

Side by Side Diff: ui/views/controls/button/button.h

Issue 14631022: Add support for blue buttons. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 7 years, 6 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/controls/button/blue_button.cc ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_VIEWS_CONTROLS_BUTTON_BUTTON_H_ 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_BUTTON_H_
6 #define UI_VIEWS_CONTROLS_BUTTON_BUTTON_H_ 6 #define UI_VIEWS_CONTROLS_BUTTON_BUTTON_H_
7 7
8 #include "ui/views/view.h" 8 #include "ui/views/view.h"
9 9
10 namespace views { 10 namespace views {
(...skipping 20 matching lines...) Expand all
31 // Button states for various button sub-types. 31 // Button states for various button sub-types.
32 enum ButtonState { 32 enum ButtonState {
33 STATE_NORMAL = 0, 33 STATE_NORMAL = 0,
34 STATE_HOVERED, 34 STATE_HOVERED,
35 STATE_PRESSED, 35 STATE_PRESSED,
36 STATE_DISABLED, 36 STATE_DISABLED,
37 STATE_COUNT, 37 STATE_COUNT,
38 }; 38 };
39 39
40 // Button styles with associated images and border painters. 40 // Button styles with associated images and border painters.
41 // TODO(msw): Add "Blue Button", Menu, ComboBox, etc. 41 // TODO(msw): Add Menu, ComboBox, etc.
42 enum ButtonStyle { 42 enum ButtonStyle {
43 STYLE_BUTTON = 0, 43 STYLE_BUTTON = 0,
44 STYLE_TEXTBUTTON, 44 STYLE_TEXTBUTTON,
45 STYLE_NATIVE_TEXTBUTTON, 45 STYLE_NATIVE_TEXTBUTTON,
46 STYLE_COUNT, 46 STYLE_COUNT,
47 }; 47 };
48 48
49 void SetTooltipText(const string16& tooltip_text); 49 void SetTooltipText(const string16& tooltip_text);
50 50
51 int tag() const { return tag_; } 51 int tag() const { return tag_; }
(...skipping 28 matching lines...) Expand all
80 // The id tag associated with this button. Used to disambiguate buttons in 80 // The id tag associated with this button. Used to disambiguate buttons in
81 // the ButtonListener implementation. 81 // the ButtonListener implementation.
82 int tag_; 82 int tag_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(Button); 84 DISALLOW_COPY_AND_ASSIGN(Button);
85 }; 85 };
86 86
87 } // namespace views 87 } // namespace views
88 88
89 #endif // UI_VIEWS_CONTROLS_BUTTON_BUTTON_H_ 89 #endif // UI_VIEWS_CONTROLS_BUTTON_BUTTON_H_
OLDNEW
« no previous file with comments | « ui/views/controls/button/blue_button.cc ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698