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

Side by Side Diff: ui/app_list/views/app_list_item_view.h

Issue 1154323002: Use app list item shadow for app list folders. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_arrow_keys_crash
Patch Set: fix mac compile Created 5 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 unified diff | Download patch
« no previous file with comments | « ui/app_list/test/app_list_test_model.cc ('k') | ui/app_list/views/app_list_item_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_
6 #define UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 26 matching lines...) Expand all
37 public AppListItemObserver, 37 public AppListItemObserver,
38 public ImageShadowAnimator::Delegate { 38 public ImageShadowAnimator::Delegate {
39 public: 39 public:
40 // Internal class name. 40 // Internal class name.
41 static const char kViewClassName[]; 41 static const char kViewClassName[];
42 42
43 AppListItemView(AppsGridView* apps_grid_view, AppListItem* item); 43 AppListItemView(AppsGridView* apps_grid_view, AppListItem* item);
44 ~AppListItemView() override; 44 ~AppListItemView() override;
45 45
46 // Set the icon of this image, adding a drop shadow if |has_shadow|. 46 // Set the icon of this image, adding a drop shadow if |has_shadow|.
47 void SetIcon(const gfx::ImageSkia& icon, bool has_shadow); 47 void SetIcon(const gfx::ImageSkia& icon);
48 48
49 void SetItemName(const base::string16& display_name, 49 void SetItemName(const base::string16& display_name,
50 const base::string16& full_name); 50 const base::string16& full_name);
51 void SetItemIsInstalling(bool is_installing); 51 void SetItemIsInstalling(bool is_installing);
52 bool is_highlighted() { return is_highlighted_; } // for unit test 52 bool is_highlighted() { return is_highlighted_; } // for unit test
53 void SetItemIsHighlighted(bool is_highlighted); 53 void SetItemIsHighlighted(bool is_highlighted);
54 void SetItemPercentDownloaded(int percent_downloaded); 54 void SetItemPercentDownloaded(int percent_downloaded);
55 55
56 void Prerender(); 56 void Prerender();
57 57
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 172
173 // A timer to defer showing drag UI when mouse is pressed. 173 // A timer to defer showing drag UI when mouse is pressed.
174 base::OneShotTimer<AppListItemView> mouse_drag_timer_; 174 base::OneShotTimer<AppListItemView> mouse_drag_timer_;
175 175
176 DISALLOW_COPY_AND_ASSIGN(AppListItemView); 176 DISALLOW_COPY_AND_ASSIGN(AppListItemView);
177 }; 177 };
178 178
179 } // namespace app_list 179 } // namespace app_list
180 180
181 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_ 181 #endif // UI_APP_LIST_VIEWS_APP_LIST_ITEM_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/test/app_list_test_model.cc ('k') | ui/app_list/views/app_list_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698