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

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

Issue 12771021: Make painting app list items more efficient by caching the labels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to comments Created 7 years, 9 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/app_list.gyp ('k') | ui/app_list/views/app_list_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/app_list_item_view.h
diff --git a/ui/app_list/views/app_list_item_view.h b/ui/app_list/views/app_list_item_view.h
index a037de2542ea180f72285f44394ef7e98e8ad50b..c2f9d05a40c66033a95d1ad727810087a2ffd414 100644
--- a/ui/app_list/views/app_list_item_view.h
+++ b/ui/app_list/views/app_list_item_view.h
@@ -28,6 +28,7 @@ namespace app_list {
class AppListItemModel;
class AppsGridView;
+class CachedLabel;
class APP_LIST_EXPORT AppListItemView : public views::CustomButton,
public views::ContextMenuController,
@@ -95,7 +96,7 @@ class APP_LIST_EXPORT AppListItemView : public views::CustomButton,
AppsGridView* apps_grid_view_; // Owned by views hierarchy.
views::ImageView* icon_; // Owned by views hierarchy.
- views::Label* title_; // Owned by views hierarchy.
+ CachedLabel* title_; // Owned by views hierarchy.
scoped_ptr<views::MenuRunner> context_menu_runner_;
« no previous file with comments | « ui/app_list/app_list.gyp ('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