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

Unified Diff: ui/views/controls/button/custom_button.cc

Issue 15061006: views: Switch Checkbox over to LabelButton. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: set the image for STATE_TOGGLED Created 7 years, 7 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/custom_button.cc
diff --git a/ui/views/controls/button/custom_button.cc b/ui/views/controls/button/custom_button.cc
index 65e367b1a0eb827910d9c6389c4d9c686a04fdb7..72d499d98fbbf0ff3c1b4b7fb23fad6dd01f12dc 100644
--- a/ui/views/controls/button/custom_button.cc
+++ b/ui/views/controls/button/custom_button.cc
@@ -274,6 +274,9 @@ void CustomButton::GetAccessibleState(ui::AccessibleViewState* state) {
case STATE_DISABLED:
state->state = ui::AccessibilityTypes::STATE_UNAVAILABLE;
break;
+ case STATE_TOGGLED:
+ state->state = ui::AccessibilityTypes::STATE_CHECKED;
+ break;
case STATE_NORMAL:
case STATE_COUNT:
// No additional accessibility state set for this button state.

Powered by Google App Engine
This is Rietveld 408576698