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

Unified Diff: ui/app_list/views/all_apps_tile_item_view.cc

Issue 2253253002: [Merge to M53][Chrome OS] Change layout of the launcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 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/all_apps_tile_item_view.h ('k') | ui/app_list/views/start_page_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/all_apps_tile_item_view.cc
diff --git a/ui/app_list/views/all_apps_tile_item_view.cc b/ui/app_list/views/all_apps_tile_item_view.cc
index 0fa781fb600883042f86fbb88d16e7fc848f39f3..dc9e854ef063cc7ea699df111fba94ac61242ec0 100644
--- a/ui/app_list/views/all_apps_tile_item_view.cc
+++ b/ui/app_list/views/all_apps_tile_item_view.cc
@@ -18,13 +18,17 @@ AllAppsTileItemView::AllAppsTileItemView(ContentsView* contents_view)
: contents_view_(contents_view) {
SetTitle(l10n_util::GetStringUTF16(IDS_APP_LIST_ALL_APPS));
SetHoverStyle(TileItemView::HOVER_STYLE_ANIMATE_SHADOW);
- ResourceBundle& rb = ResourceBundle::GetSharedInstance();
- SetIcon(*rb.GetImageNamed(IDR_ALL_APPS_DROP_DOWN).ToImageSkia());
+ UpdateIcon();
}
AllAppsTileItemView::~AllAppsTileItemView() {
}
+void AllAppsTileItemView::UpdateIcon() {
+ ResourceBundle& rb = ResourceBundle::GetSharedInstance();
+ SetIcon(*rb.GetImageNamed(IDR_ALL_APPS_DROP_DOWN).ToImageSkia());
+}
+
void AllAppsTileItemView::ButtonPressed(views::Button* sender,
const ui::Event& event) {
UMA_HISTOGRAM_ENUMERATION(kPageOpenedHistogram, AppListModel::STATE_APPS,
« no previous file with comments | « ui/app_list/views/all_apps_tile_item_view.h ('k') | ui/app_list/views/start_page_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698