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

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

Issue 2716403005: mash: Remove shelf app menu item objects. (Closed)
Patch Set: Address comments. 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
« no previous file with comments | « ash/common/shelf/shelf_controller.cc ('k') | ash/common/shelf/shelf_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..8ff4aed52bc2d1fac6bf9f76be34cf8c19bf2dc7 100644
--- a/ash/common/shelf/shelf_item_delegate.h
+++ b/ash/common/shelf/shelf_item_delegate.h
@@ -5,6 +5,8 @@
#ifndef ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_
#define ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_
+#include <stdint.h>
+
#include "ash/ash_export.h"
#include "ash/public/cpp/shelf_application_menu_item.h"
#include "ash/public/cpp/shelf_types.h"
@@ -35,6 +37,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, int event_flags) = 0;
+
// Closes all windows associated with this item.
virtual void Close() = 0;
« no previous file with comments | « ash/common/shelf/shelf_controller.cc ('k') | ash/common/shelf/shelf_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698