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

Side by Side Diff: mash/shelf/public/interfaces/context_menu.mojom

Issue 1760743002: Add simple mash context menu support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase; use test items; cleanup. Created 4 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
(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 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698