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

Unified Diff: ash/public/cpp/shelf_item_delegate.cc

Issue 2791803002: mash: Move LauncherItemController to ash, rename ShelfItemDelegate. (Closed)
Patch Set: Move shelf_item_delegate to ash/public/cpp, cleanup. Created 3 years, 8 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/public/cpp/shelf_item_delegate.cc
diff --git a/ash/public/cpp/shelf_item_delegate.cc b/ash/public/cpp/shelf_item_delegate.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a5c5cad15ffa374be557c6c8029d4441724ba56c
--- /dev/null
+++ b/ash/public/cpp/shelf_item_delegate.cc
@@ -0,0 +1,25 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "ash/public/cpp/shelf_item_delegate.h"
+
+namespace ash {
+
+ShelfItemDelegate::ShelfItemDelegate(const ash::AppLaunchId& app_launch_id)
+ : app_launch_id_(app_launch_id),
+ shelf_id_(0),
James Cook 2017/04/04 15:34:45 nit: Is there a constant for invalid?
msw 2017/04/04 18:53:09 Done. (kInvalidShelfID)
+ image_set_by_controller_(false) {}
+
+ShelfItemDelegate::~ShelfItemDelegate() {}
+
+MenuItemList ShelfItemDelegate::GetAppMenuItems(int event_flags) {
+ return MenuItemList();
+}
+
+AppWindowLauncherItemController*
+ShelfItemDelegate::AsAppWindowLauncherItemController() {
+ return nullptr;
+}
+
+} // namespace ash

Powered by Google App Engine
This is Rietveld 408576698