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

Unified Diff: chrome/views/controls/label.h

Issue 93142: Checkbox/RadioButton labels have to reserve space for the focus rects, even i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 8 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 | « chrome/views/controls/button/checkbox.cc ('k') | chrome/views/controls/label.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/views/controls/label.h
===================================================================
--- chrome/views/controls/label.h (revision 14445)
+++ chrome/views/controls/label.h (working copy)
@@ -190,6 +190,9 @@
void set_paint_as_focused(bool paint_as_focused) {
paint_as_focused_ = paint_as_focused;
}
+ void set_has_focus_border(bool has_focus_border) {
+ has_focus_border_ = has_focus_border;
+ }
private:
// These tests call CalculateDrawStringParams in order to verify the
@@ -241,6 +244,10 @@
// When embedded in a larger control that is focusable, setting this flag
// allows this view to be painted as focused even when it is itself not.
bool paint_as_focused_;
+ // When embedded in a larger control that is focusable, setting this flag
+ // allows this view to reserve space for a focus border that it otherwise
+ // might not have because it is not itself focusable.
+ bool has_focus_border_;
DISALLOW_COPY_AND_ASSIGN(Label);
};
« no previous file with comments | « chrome/views/controls/button/checkbox.cc ('k') | chrome/views/controls/label.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698