OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 module mash.shelf.mojom; | |
6 | |
7 struct ContextMenuItem { | |
sky
2016/03/18 20:30:57
I have a feeling we're going to need this structur
sky
2016/03/18 20:31:34
Ignore me on this one. While I think we'll need th
| |
8 enum Type { | |
9 ITEM, | |
10 CHECK, | |
11 RADIO, | |
12 SEPARATOR, | |
13 SUBMENU, | |
14 }; | |
15 | |
16 Type type; | |
17 uint32 command_id; | |
18 string? label; | |
19 array<ContextMenuItem>? submenu; | |
20 bool enabled; | |
21 bool checked; | |
22 uint32 radio_group_id; | |
23 }; | |
24 | |
25 interface ContextMenu { | |
26 // TODO(msw) Generalize a profile prefs provider/observer, etc. | |
27 GetItemsAndInfo(uint32 shelf_item_type, int32 shelf_item_id) => | |
28 (array<ContextMenuItem> items, | |
29 bool can_user_modify_shelf_auto_hide_behavior, | |
30 bool is_guest_session); | |
31 | |
32 ExecuteCommand(int32 command_id, int32 event_flags); | |
33 }; | |
OLD | NEW |