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

Side by Side 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, 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_ 5 #ifndef ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_
6 #define ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_ 6 #define ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/public/cpp/shelf_application_menu_item.h" 9 #include "ash/public/cpp/shelf_application_menu_item.h"
10 #include "ash/public/cpp/shelf_types.h" 10 #include "ash/public/cpp/shelf_types.h"
(...skipping 17 matching lines...) Expand all
28 int64_t display_id, 28 int64_t display_id,
29 ShelfLaunchSource source) = 0; 29 ShelfLaunchSource source) = 0;
30 30
31 // A helper to call ItemSelected with a source and default arguments. 31 // A helper to call ItemSelected with a source and default arguments.
32 ShelfAction ItemSelectedBySource(ShelfLaunchSource source); 32 ShelfAction ItemSelectedBySource(ShelfLaunchSource source);
33 33
34 // Returns any application menu items that should appear for this shelf item. 34 // Returns any application menu items that should appear for this shelf item.
35 // |event_flags| specifies the flags of the event which triggered this menu. 35 // |event_flags| specifies the flags of the event which triggered this menu.
36 virtual ShelfAppMenuItemList GetAppMenuItems(int event_flags) = 0; 36 virtual ShelfAppMenuItemList GetAppMenuItems(int event_flags) = 0;
37 37
38 // Called on invocation of a shelf item's application menu command.
39 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.
40
38 // Closes all windows associated with this item. 41 // Closes all windows associated with this item.
39 virtual void Close() = 0; 42 virtual void Close() = 0;
40 43
41 DISALLOW_COPY_AND_ASSIGN(ShelfItemDelegate); 44 DISALLOW_COPY_AND_ASSIGN(ShelfItemDelegate);
42 }; 45 };
43 46
44 } // namespace ash 47 } // namespace ash
45 48
46 #endif // ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_ 49 #endif // ASH_COMMON_SHELF_SHELF_ITEM_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698