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

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

Issue 2718563008: mash: Use mojo for ShelfItemDelegate and [app] MenuItem. (Closed)
Patch Set: Cleanup; fix ash_shell compile and a couple tests. Created 3 years, 9 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/common/shelf/shelf_view.h
diff --git a/ash/common/shelf/shelf_view.h b/ash/common/shelf/shelf_view.h
index 3f1858b5cdba4a162882e9eafa8b03466589b55e..073f2f10c3d98b6c8cd3a77168bd1c8693f1a2f2 100644
--- a/ash/common/shelf/shelf_view.h
+++ b/ash/common/shelf/shelf_view.h
@@ -292,6 +292,15 @@ class ASH_EXPORT ShelfView : public views::View,
void OnSetShelfItemDelegate(ShelfID id,
ShelfItemDelegate* item_delegate) override;
+ // Handles the result of an item selection, records the |action| taken and
+ // optionally shows an application menu with the given |menu_items|.
+ void AfterItemSelected(const ShelfItem& item,
+ views::Button* sender,
+ std::unique_ptr<ui::Event> event,
+ views::InkDrop* ink_drop,
+ ShelfAction action,
+ ShelfItemDelegate::MenuItemList menu_items);
+
// Show a list of all running items for this shelf |item|; it only shows a
// menu if there are multiple running items. |source| specifies the view
// responsible for showing the menu, and the bubble will point towards it.

Powered by Google App Engine
This is Rietveld 408576698