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

Unified Diff: ash/shelf/shelf_model.h

Issue 2833173002: mash: Support ShelfModel access in Chrome. (Closed)
Patch Set: Address comments; fix test failures. Created 3 years, 7 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: ash/shelf/shelf_model.h
diff --git a/ash/shelf/shelf_model.h b/ash/shelf/shelf_model.h
index 6e6b665e93e321429e0dd53a2ff1e94938e68979..fca50d83dbce0e7e6005fdf8ccf63f8770038758 100644
--- a/ash/shelf/shelf_model.h
+++ b/ash/shelf/shelf_model.h
@@ -19,15 +19,19 @@ namespace ash {
class ShelfItemDelegate;
class ShelfModelObserver;
+// An id for the AppList item, which is added in the ShelfModel constructor.
+// Generated as crx_file::id_util::GenerateId("org.chromium.applist")
+ASH_EXPORT extern const char kAppListId[];
+
// Model used for shelf items. Owns ShelfItemDelegates but does not create them.
+// TODO(msw): Move this to ash/public/cpp and use ASH_PUBLIC_EXPORT.
class ASH_EXPORT ShelfModel {
public:
ShelfModel();
~ShelfModel();
// Pins an app with |app_id| to shelf. A running instance will get pinned.
- // In case there is no running instance a new shelf item is created and
- // pinned.
+ // If there is no running instance, a new shelf item is created and pinned.
void PinAppWithID(const std::string& app_id);
// Check if the app with |app_id_| is pinned to the shelf.

Powered by Google App Engine
This is Rietveld 408576698