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

Unified Diff: ui/app_list/app_list_item_model.h

Issue 23709003: Display an app's short name in the app launcher (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Set both title and full name together in AppListItemModel Created 7 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 | « chrome/browser/ui/app_list/extension_app_item.cc ('k') | ui/app_list/app_list_item_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/app_list_item_model.h
diff --git a/ui/app_list/app_list_item_model.h b/ui/app_list/app_list_item_model.h
index 1fa806403304c71d27c160675734d0f9817874b5..2fe0897bf8610fe07e4b40fa71165c4f988d3e75 100644
--- a/ui/app_list/app_list_item_model.h
+++ b/ui/app_list/app_list_item_model.h
@@ -31,8 +31,9 @@ class APP_LIST_EXPORT AppListItemModel {
const gfx::ImageSkia& icon() const { return icon_; }
bool has_shadow() const { return has_shadow_; }
- void SetTitle(const std::string& title);
+ void SetName(const std::string& title, const std::string& full_name);
benwells 2013/08/30 06:25:07 Nit: I'd prefer SetTitleAndFullName.
tmdiep 2013/08/30 07:29:52 Done.
const std::string& title() const { return title_; }
+ const std::string& full_name() const { return full_name_; }
void SetHighlighted(bool highlighted);
bool highlighted() const { return highlighted_; }
@@ -58,6 +59,7 @@ class APP_LIST_EXPORT AppListItemModel {
gfx::ImageSkia icon_;
bool has_shadow_;
std::string title_;
+ std::string full_name_;
bool highlighted_;
bool is_installing_;
int percent_downloaded_;
« no previous file with comments | « chrome/browser/ui/app_list/extension_app_item.cc ('k') | ui/app_list/app_list_item_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698