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

Unified Diff: ash/common/shelf/shelf_item_types.h

Issue 2627533002: Replace ShelfItemDelegate::GetTitle() with ShelfItem::title. (Closed)
Patch Set: Address comments. Created 3 years, 11 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 | « ash/common/shelf/shelf_item_delegate.h ('k') | ash/common/shelf/shelf_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/shelf/shelf_item_types.h
diff --git a/ash/common/shelf/shelf_item_types.h b/ash/common/shelf/shelf_item_types.h
index 998f33beddba4eae25a0096b7ba3200dc742c1ee..ea021bb7d78c9b6cb019ffe1af3037c6c1bf7009 100644
--- a/ash/common/shelf/shelf_item_types.h
+++ b/ash/common/shelf/shelf_item_types.h
@@ -10,6 +10,7 @@
#include "ash/ash_export.h"
#include "ash/common/shelf/shelf_constants.h"
+#include "base/strings/string16.h"
#include "ui/gfx/image/image_skia.h"
namespace ash {
@@ -73,6 +74,9 @@ struct ASH_EXPORT ShelfItem {
// The application id for this shelf item; only populated for some items.
std::string app_id;
+ // The title to display for tooltips, etc.
+ base::string16 title;
+
// Whether the tooltip should be shown on hover; generally true.
bool shows_tooltip = true;
« no previous file with comments | « ash/common/shelf/shelf_item_delegate.h ('k') | ash/common/shelf/shelf_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698