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

Unified Diff: chrome/browser/ui/ash/context_menu.h

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: chrome/browser/ui/ash/context_menu.h
diff --git a/chrome/browser/ui/ash/context_menu.h b/chrome/browser/ui/ash/context_menu.h
new file mode 100644
index 0000000000000000000000000000000000000000..69e6b1353d14e4cef6ca3337c4cb7e8eccaa963f
--- /dev/null
+++ b/chrome/browser/ui/ash/context_menu.h
@@ -0,0 +1,26 @@
+// 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.
+
+#ifndef CHROME_BROWSER_UI_ASH_CONTEXT_MENU_H_
+#define CHROME_BROWSER_UI_ASH_CONTEXT_MENU_H_
+
+#include "mash/shelf/public/interfaces/context_menu.mojom.h"
+
+// Chrome's delegate for mash context menus.
+class ContextMenu : public mash::shelf::mojom::ContextMenu {
+ public:
+ ContextMenu();
+ ~ContextMenu() override;
+
+ // mash::shelf::mojom::ContextMenu:
+ void GetItemsAndInfo(uint32_t shelf_item_type,
+ int32_t shelf_item_id,
+ const GetItemsAndInfoCallback& callback) override;
+ void ExecuteCommand(int32_t command_id, int32_t event_flags) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ContextMenu);
+};
+
+#endif // CHROME_BROWSER_UI_ASH_CONTEXT_MENU_H_

Powered by Google App Engine
This is Rietveld 408576698