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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: mash/shelf/public/interfaces/context_menu.mojom
diff --git a/mash/shelf/public/interfaces/context_menu.mojom b/mash/shelf/public/interfaces/context_menu.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..41fbadbc8e95eed455529845ed2c303fa83d0007
--- /dev/null
+++ b/mash/shelf/public/interfaces/context_menu.mojom
@@ -0,0 +1,33 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+module mash.shelf.mojom;
+
+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
+ enum Type {
+ ITEM,
+ CHECK,
+ RADIO,
+ SEPARATOR,
+ SUBMENU,
+ };
+
+ Type type;
+ uint32 command_id;
+ string? label;
+ array<ContextMenuItem>? submenu;
+ bool enabled;
+ bool checked;
+ uint32 radio_group_id;
+};
+
+interface ContextMenu {
+ // TODO(msw) Generalize a profile prefs provider/observer, etc.
+ GetItemsAndInfo(uint32 shelf_item_type, int32 shelf_item_id) =>
+ (array<ContextMenuItem> items,
+ bool can_user_modify_shelf_auto_hide_behavior,
+ bool is_guest_session);
+
+ ExecuteCommand(int32 command_id, int32 event_flags);
+};

Powered by Google App Engine
This is Rietveld 408576698