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

Unified Diff: webkit/tools/test_shell/test_shell_webthemeengine.cc

Issue 2876036: Implement indeterminate checkbox for the generic theme.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/tools/test_shell/test_shell_webthemecontrol.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/tools/test_shell/test_shell_webthemeengine.cc
===================================================================
--- webkit/tools/test_shell/test_shell_webthemeengine.cc (revision 51479)
+++ webkit/tools/test_shell/test_shell_webthemeengine.cc (working copy)
@@ -111,6 +111,28 @@
ctype = Control::kCheckedBox_Type;
cstate = Control::kDisabled_State;
break;
+ case CBS_MIXEDNORMAL:
+ // Classic theme can't represent mixed state checkbox. We assume
+ // it's equivalent to unchecked.
+ CHECK_EQ(classic_state, DFCS_BUTTONCHECK);
+ ctype = Control::kIndeterminateCheckBox_Type;
+ cstate = Control::kNormal_State;
+ break;
+ case CBS_MIXEDHOT:
+ CHECK_EQ(classic_state, DFCS_BUTTONCHECK | DFCS_HOT);
+ ctype = Control::kIndeterminateCheckBox_Type;
+ cstate = Control::kHot_State;
+ break;
+ case CBS_MIXEDPRESSED:
+ CHECK_EQ(classic_state, DFCS_BUTTONCHECK | DFCS_PUSHED);
+ ctype = Control::kIndeterminateCheckBox_Type;
+ cstate = Control::kPressed_State;
+ break;
+ case CBS_MIXEDDISABLED:
+ CHECK_EQ(classic_state, DFCS_BUTTONCHECK | DFCS_INACTIVE);
+ ctype = Control::kIndeterminateCheckBox_Type;
+ cstate = Control::kDisabled_State;
+ break;
default:
NOTREACHED();
break;
« no previous file with comments | « webkit/tools/test_shell/test_shell_webthemecontrol.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698