summaryrefslogtreecommitdiffstats
path: root/ui/views/examples/native_theme_button_example.cc
diff options
context:
space:
mode:
authortfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-14 16:25:56 +0000
committertfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-11-14 16:25:56 +0000
commitfca8dc0de7785069b2bb721aca6966fd11f45a0a (patch)
treec3f01985bec47ab376b00710abf20184f1110f22 /ui/views/examples/native_theme_button_example.cc
parente212a306bfbdaac64b4e1a5134dd42b7a0d773af (diff)
downloadchromium_src-fca8dc0de7785069b2bb721aca6966fd11f45a0a.zip
chromium_src-fca8dc0de7785069b2bb721aca6966fd11f45a0a.tar.gz
chromium_src-fca8dc0de7785069b2bb721aca6966fd11f45a0a.tar.bz2
views: Improve the constant names of the ButtonState enum.
We rename then to STATE_FOO, so it is less confusing: Rather than: if (state == views::CustomButton::BS_HOT) { ... } We now have: if (state == views::CustomButton::STATE_HOVERED) { ... } A bit more verbose, but much better to read. R=sky@chromium.org TBR=jochen@chromium.org # for content/shell Review URL: https://chromiumcodereview.appspot.com/11275272 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@167684 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/examples/native_theme_button_example.cc')
-rw-r--r--ui/views/examples/native_theme_button_example.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/views/examples/native_theme_button_example.cc b/ui/views/examples/native_theme_button_example.cc
index 8adbf03..8f12331 100644
--- a/ui/views/examples/native_theme_button_example.cc
+++ b/ui/views/examples/native_theme_button_example.cc
@@ -130,13 +130,13 @@ ui::NativeTheme::State ExampleNativeThemeButton::GetThemeState(
int selected = cb_state_->selected_index();
if (selected > 3) {
switch (state()) {
- case BS_DISABLED:
+ case STATE_DISABLED:
return ui::NativeTheme::kDisabled;
- case BS_NORMAL:
+ case STATE_NORMAL:
return ui::NativeTheme::kNormal;
- case BS_HOT:
+ case STATE_HOVERED:
return ui::NativeTheme::kHovered;
- case BS_PUSHED:
+ case STATE_PRESSED:
return ui::NativeTheme::kPressed;
default:
NOTREACHED();