summaryrefslogtreecommitdiffstats
path: root/ui/views/bubble/bubble_border.cc
diff options
context:
space:
mode:
authorvarunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-04 00:39:58 +0000
committervarunjain@chromium.org <varunjain@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-08-04 00:39:58 +0000
commit62fffee065933a9be261ef76ccc4450f0e400f31 (patch)
tree42a22f3cc8000ad62dd8bcc0b9a5ae97b4e74319 /ui/views/bubble/bubble_border.cc
parent92daaa430772d8affc2797a3670bae088ff826c8 (diff)
downloadchromium_src-62fffee065933a9be261ef76ccc4450f0e400f31.zip
chromium_src-62fffee065933a9be261ef76ccc4450f0e400f31.tar.gz
chromium_src-62fffee065933a9be261ef76ccc4450f0e400f31.tar.bz2
aura: Fix launcher tooltips:
1. Refactor out app_list_bubble_border so that it can be used for launcher tooltip border. 2. UI polish: increase padding, make tooltip single line, reduce maximum tooltip width. BUG=133292 TEST=manual Review URL: https://chromiumcodereview.appspot.com/10834140 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149987 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/views/bubble/bubble_border.cc')
-rw-r--r--ui/views/bubble/bubble_border.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/views/bubble/bubble_border.cc b/ui/views/bubble/bubble_border.cc
index a82382c..881f082 100644
--- a/ui/views/bubble/bubble_border.cc
+++ b/ui/views/bubble/bubble_border.cc
@@ -212,7 +212,7 @@ void BubbleBorder::GetInsetsForArrowLocation(gfx::Insets* insets,
insets->Set(top, left, bottom, right);
}
-int BubbleBorder::border_thickness() const {
+int BubbleBorder::GetBorderThickness() const {
return images_->border_thickness;
}
@@ -505,7 +505,7 @@ void BubbleBackground::Paint(gfx::Canvas* canvas, views::View* view) const {
paint.setColor(border_->background_color());
SkPath path;
gfx::Rect bounds(view->GetContentsBounds());
- bounds.Inset(-border_->border_thickness(), -border_->border_thickness());
+ bounds.Inset(-border_->GetBorderThickness(), -border_->GetBorderThickness());
SkScalar radius = SkIntToScalar(BubbleBorder::GetCornerRadius());
path.addRoundRect(gfx::RectToSkRect(bounds), radius, radius);
canvas->DrawPath(path, paint);