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

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

Issue 2952823002: cros: Make SearchResultTileItemView layout per DisplayType customized (Closed)
Patch Set: nits 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..f981bb1d92cae58518c2f4fd5dda4a61cdfb510a 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* icon() const { return icon_; }
void SetIcon(const gfx::ImageSkia& icon);
+
+ views::ImageView* badge() const { return badge_; }
void SetBadgeIcon(const gfx::ImageSkia& badge_icon);
+
+ views::Label* title() 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