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

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

Issue 2716403005: mash: Remove shelf app menu item objects. (Closed)
Patch Set: Fix ash_shell compile Created 3 years, 10 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_item_delegate.h
diff --git a/ash/common/shelf/shelf_item_delegate.h b/ash/common/shelf/shelf_item_delegate.h
index ce7dd17c3e6549e8a99eef6e98c731ff5d537592..3d58b06a0990b1a743e945793fde434e0a0e8afa 100644
--- a/ash/common/shelf/shelf_item_delegate.h
+++ b/ash/common/shelf/shelf_item_delegate.h
@@ -35,6 +35,9 @@ class ASH_EXPORT ShelfItemDelegate {
// |event_flags| specifies the flags of the event which triggered this menu.
virtual ShelfAppMenuItemList GetAppMenuItems(int event_flags) = 0;
+ // Called on invocation of a shelf item's application menu command.
+ virtual void ExecuteCommand(uint32_t command_id, int32_t event_flags) = 0;
James Cook 2017/03/01 19:50:48 nit: #include <stdint.h> Also, event_flags is int
msw 2017/03/02 02:59:20 Done.
+
// Closes all windows associated with this item.
virtual void Close() = 0;

Powered by Google App Engine
This is Rietveld 408576698