Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(528)

Unified Diff: ui/app_list/views/tile_item_view.h

Issue 2952823002: cros: Make SearchResultTileItemView layout per DisplayType customized (Closed)
Patch Set: feedback Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/app_list/views/search_result_tile_item_view.cc ('k') | ui/app_list/views/tile_item_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « ui/app_list/views/search_result_tile_item_view.cc ('k') | ui/app_list/views/tile_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698