Commit 772c3757 authored by xiyuan@chromium.org's avatar xiyuan@chromium.org

ash: Fix blurry app list bubble border.

BUG=140872
TEST=Verify app list bubble border is sharp.

R=sky@chromium.org

Review URL: https://chromiumcodereview.appspot.com/10826172

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@150167 0039d316-1c4b-4281-b951-d872f2087c98
parent 9aa1ebb7
......@@ -19,9 +19,9 @@ class AppListBubbleBorder : public views::BubbleBorder2 {
virtual ~AppListBubbleBorder();
private:
// views::ImagelessBubbleBorder overrides:
void PaintBackground(gfx::Canvas* canvas,
const gfx::Rect& bounds) const;
// views::BubbleBorder2 overrides:
virtual void PaintBackground(gfx::Canvas* canvas,
const gfx::Rect& bounds) const OVERRIDE;
// AppListView hosted inside this bubble.
const views::View* app_list_view_; // Owned by views hierarchy.
......
......@@ -74,14 +74,14 @@ void AppListView::InitAsBubble(
kArrowOffset));
views::BubbleDelegateView::CreateBubble(this);
// Resets default background since AppListBubbleBorder paints background.
GetBubbleFrameView()->set_background(NULL);
// Overrides border with AppListBubbleBorder.
bubble_border_ = new AppListBubbleBorder(this, search_box_view_);
GetBubbleFrameView()->SetBubbleBorder(bubble_border_);
SetBubbleArrowLocation(arrow_location);
// Resets default background since AppListBubbleBorder paints background.
GetBubbleFrameView()->set_background(NULL);
CreateModel();
}
......
......@@ -50,8 +50,8 @@ class VIEWS_EXPORT BubbleBorder2 : public BubbleBorder {
virtual int GetBorderThickness() const OVERRIDE;
protected:
void PaintBackground(gfx::Canvas* canvas,
const gfx::Rect& bounds) const;
virtual void PaintBackground(gfx::Canvas* canvas,
const gfx::Rect& bounds) const;
private:
// Gets arrow offset based on arrow location and |offset_|.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment