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

Side by Side 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 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 #ifndef CHROME_BROWSER_UI_ASH_CONTEXT_MENU_H_
6 #define CHROME_BROWSER_UI_ASH_CONTEXT_MENU_H_
7
8 #include "mash/shelf/public/interfaces/context_menu.mojom.h"
9
10 // Chrome's delegate for mash context menus.
11 class ContextMenu : public mash::shelf::mojom::ContextMenu {
12 public:
13 ContextMenu();
14 ~ContextMenu() override;
15
16 // mash::shelf::mojom::ContextMenu:
17 void GetItemsAndInfo(uint32_t shelf_item_type,
18 int32_t shelf_item_id,
19 const GetItemsAndInfoCallback& callback) override;
20 void ExecuteCommand(int32_t command_id, int32_t event_flags) override;
21
22 private:
23 DISALLOW_COPY_AND_ASSIGN(ContextMenu);
24 };
25
26 #endif // CHROME_BROWSER_UI_ASH_CONTEXT_MENU_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698