Chromium Code Reviews| Index: ui/app_list/views/tile_item_view.h |
| diff --git a/ui/app_list/views/tile_item_view.h b/ui/app_list/views/tile_item_view.h |
| index 62e1c2ef35d9f3458704a2c6f900dba47ed9f788..08cafd45dcbe62053b4742b523fc7614ef78d6af 100644 |
| --- a/ui/app_list/views/tile_item_view.h |
| +++ b/ui/app_list/views/tile_item_view.h |
| @@ -59,18 +59,23 @@ class APP_LIST_EXPORT TileItemView : public views::CustomButton, |
| void ImageShadowAnimationProgressed(ImageShadowAnimator* animator) override; |
| protected: |
| + // Overridden from views::View: |
| + gfx::Size CalculatePreferredSize() const override; |
| + bool GetTooltipText(const gfx::Point& p, |
| + base::string16* tooltip) const override; |
| + |
| + views::ImageView* GetIcon() const { return icon_; } |
|
xiyuan
2017/06/21 19:21:55
nit: GetIcon -> icon, here and other accessors.
S
Qiang(Joe) Xu
2017/06/21 20:29:35
Done.
|
| void SetIcon(const gfx::ImageSkia& icon); |
| + |
| + views::ImageView* GetBadge() const { return badge_; } |
|
weidongg
2017/06/21 18:56:42
If the badge is only used in SearchResultTitleItem
Qiang(Joe) Xu
2017/06/21 19:07:13
If we don't have badging requirement for suggested
weidongg
2017/06/21 19:45:33
That makes sense.
|
| void SetBadgeIcon(const gfx::ImageSkia& badge_icon); |
| + |
| + views::Label* GetTitle() const { return title_; } |
| void SetTitle(const base::string16& title); |
| private: |
| void UpdateBackgroundColor(); |
| - // Overridden from views::View: |
| - gfx::Size CalculatePreferredSize() const override; |
| - bool GetTooltipText(const gfx::Point& p, |
| - base::string16* tooltip) const override; |
| - |
| SkColor parent_background_color_; |
| std::unique_ptr<ImageShadowAnimator> image_shadow_animator_; |