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

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

Issue 2952823002: cros: Make SearchResultTileItemView layout per DisplayType customized (Closed)
Patch Set: 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
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..ff5fddb95aeb26109ea5dbda28e59e706b531140 100644
--- a/ui/app_list/views/tile_item_view.h
+++ b/ui/app_list/views/tile_item_view.h
@@ -59,6 +59,13 @@ class APP_LIST_EXPORT TileItemView : public views::CustomButton,
void ImageShadowAnimationProgressed(ImageShadowAnimator* animator) override;
protected:
+ // Overridden from views::View:
+ gfx::Size CalculatePreferredSize() const override;
xiyuan 2017/06/21 18:24:00 nit: Move GetTooltipText() with this.
Qiang(Joe) Xu 2017/06/21 18:50:12 Done.
+
+ views::ImageView* icon() const { return icon_; }
+ views::ImageView* badge() const { return badge_; }
+ views::Label* title() const { return title_; }
xiyuan 2017/06/21 18:24:00 nit: Move accessors after other methods in the sam
+
void SetIcon(const gfx::ImageSkia& icon);
void SetBadgeIcon(const gfx::ImageSkia& badge_icon);
void SetTitle(const base::string16& title);
@@ -66,8 +73,6 @@ class APP_LIST_EXPORT TileItemView : public views::CustomButton,
private:
void UpdateBackgroundColor();
- // Overridden from views::View:
- gfx::Size CalculatePreferredSize() const override;
bool GetTooltipText(const gfx::Point& p,
base::string16* tooltip) const override;

Powered by Google App Engine
This is Rietveld 408576698