OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |