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

Unified Diff: ui/app_list/app_list_item_model.cc

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: Addressed review comments 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
Index: ui/app_list/app_list_item_model.cc
diff --git a/ui/app_list/app_list_item_model.cc b/ui/app_list/app_list_item_model.cc
index c9aedb59be8e2163cae7483fa95937efb7f0d3df..4f1c213b5a65c6cba31583074f782fd7842413dd 100644
--- a/ui/app_list/app_list_item_model.cc
+++ b/ui/app_list/app_list_item_model.cc
@@ -32,6 +32,16 @@ void AppListItemModel::SetTitle(const std::string& title) {
FOR_EACH_OBSERVER(AppListItemModelObserver, observers_, ItemTitleChanged());
}
+void AppListItemModel::SetFullName(const std::string& full_name) {
+ if (full_name_ == full_name)
+ return;
+
+ full_name_ = full_name;
+ FOR_EACH_OBSERVER(AppListItemModelObserver,
+ observers_,
+ ItemFullNameChanged());
+}
+
void AppListItemModel::SetHighlighted(bool highlighted) {
if (highlighted_ == highlighted)
return;

Powered by Google App Engine
This is Rietveld 408576698