summaryrefslogtreecommitdiffstats
path: root/ui/views/controls/focusable_border.cc
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-23 01:39:40 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-11-23 01:39:40 +0000
commit7ad32c18010362411a0c7de4dd5f47c8651fab61 (patch)
tree0f9ea8c667f7ac4f2b84b68b280ba238b13b8b53 /ui/views/controls/focusable_border.cc
parent4efa463dabe88c16e7bff460c23a92b640ab5bcf (diff)
downloadchromium_src-7ad32c18010362411a0c7de4dd5f47c8651fab61.zip
chromium_src-7ad32c18010362411a0c7de4dd5f47c8651fab61.tar.gz
chromium_src-7ad32c18010362411a0c7de4dd5f47c8651fab61.tar.bz2
Add GetMinimumSize() for Borders, and make LabelButton auto-size to at least as
large as its border requires. BUG=311269 TEST=none R=msw@chromium.org Review URL: https://codereview.chromium.org/82483003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@236912 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/controls/focusable_border.cc')
-rw-r--r--ui/views/controls/focusable_border.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/views/controls/focusable_border.cc b/ui/views/controls/focusable_border.cc
index f062e96..c3a4af4 100644
--- a/ui/views/controls/focusable_border.cc
+++ b/ui/views/controls/focusable_border.cc
@@ -60,6 +60,10 @@ gfx::Insets FocusableBorder::GetInsets() const {
return insets_;
}
+gfx::Size FocusableBorder::GetMinimumSize() const {
+ return gfx::Size();
+}
+
void FocusableBorder::SetInsets(int top, int left, int bottom, int right) {
insets_.Set(top, left, bottom, right);
}