Index: ui/views/controls/label.h |
diff --git a/ui/views/controls/label.h b/ui/views/controls/label.h |
index 4ecbfe12f70b8700bfc13ef6a0d6e9c3d62bb8af..300b17dcf5f0d3b1ab7abe15fecbfdaa1a71c78d 100644 |
--- a/ui/views/controls/label.h |
+++ b/ui/views/controls/label.h |
@@ -150,6 +150,8 @@ class VIEWS_EXPORT Label : public View { |
FRIEND_TEST_ALL_PREFIXES(LabelTest, ResetRenderTextData); |
FRIEND_TEST_ALL_PREFIXES(LabelTest, MultilineSupportedRenderText); |
FRIEND_TEST_ALL_PREFIXES(LabelTest, TextChangeWithoutLayout); |
+ FRIEND_TEST_ALL_PREFIXES(LabelFocusTest, FocusBounds); |
+ FRIEND_TEST_ALL_PREFIXES(LabelFocusTest, EmptyLabel); |
void Init(const base::string16& text, const gfx::FontList& font_list); |
@@ -165,6 +167,8 @@ class VIEWS_EXPORT Label : public View { |
// Set up |lines_| to actually be painted. |
void MaybeBuildRenderTextLines(); |
+ gfx::Rect GetFocusBounds(); |
+ |
// Get the text broken into lines as needed to fit the given |width|. |
std::vector<base::string16> GetLinesForWidth(int width) const; |