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

Unified Diff: ash/shelf/shelf_item_types.h

Issue 152223002: Renames LauncherID, LauncherItem and LauncherItems... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: OWNERS Created 6 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/shelf/shelf_item_delegate_manager.cc ('k') | ash/shelf/shelf_item_types.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/shelf/shelf_item_types.h
diff --git a/ash/shelf/shelf_item_types.h b/ash/shelf/shelf_item_types.h
index d18c41aad3db73702d44acd061afd8de28afb396..9dc83551a536fe3527d31eda92ccdb0369ff673e 100644
--- a/ash/shelf/shelf_item_types.h
+++ b/ash/shelf/shelf_item_types.h
@@ -5,11 +5,16 @@
#ifndef ASH_SHELF_SHELF_ITEM_TYPES_H_
#define ASH_SHELF_SHELF_ITEM_TYPES_H_
+#include <vector>
+
#include "ash/ash_export.h"
#include "base/strings/string16.h"
+#include "ui/gfx/image/image_skia.h"
namespace ash {
+typedef int ShelfID;
+
// The type of a shelf item.
enum ShelfItemType {
// Represents a running app panel.
@@ -49,6 +54,24 @@ enum ShelfItemStatus {
STATUS_ATTENTION,
};
+struct ASH_EXPORT ShelfItem {
+ ShelfItem();
+ ~ShelfItem();
+
+ ShelfItemType type;
+
+ // Image to display in the shelf.
+ gfx::ImageSkia image;
+
+ // Assigned by the model when the item is added.
+ ShelfID id;
+
+ // Running status.
+ ShelfItemStatus status;
+};
+
+typedef std::vector<ShelfItem> ShelfItems;
+
// ShelfItemDetails may be set on Window (by way of
// SetShelfItemDetailsForWindow) to make the window appear in the shelf. See
// ShelfWindowWatcher for details.
« no previous file with comments | « ash/shelf/shelf_item_delegate_manager.cc ('k') | ash/shelf/shelf_item_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698