• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2012 The Chromium Embedded Framework Authors. All rights
2 // reserved. Use of this source code is governed by a BSD-style license that can
3 // be found in the LICENSE file.
4 
5 #ifndef CEF_LIBCEF_BROWSER_NATIVE_MENU_RUNNER_LINUX_H_
6 #define CEF_LIBCEF_BROWSER_NATIVE_MENU_RUNNER_LINUX_H_
7 #pragma once
8 
9 #include "libcef/browser/menu_runner.h"
10 
11 #include "ui/views/controls/menu/menu_runner.h"
12 
13 class CefMenuRunnerLinux : public CefMenuRunner {
14  public:
15   CefMenuRunnerLinux();
16 
17   // CefMenuRunner methods.
18   bool RunContextMenu(AlloyBrowserHostImpl* browser,
19                       CefMenuModelImpl* model,
20                       const content::ContextMenuParams& params) override;
21   void CancelContextMenu() override;
22   bool FormatLabel(std::u16string& label) override;
23 
24  private:
25   std::unique_ptr<views::MenuRunner> menu_;
26 };
27 
28 #endif  // CEF_LIBCEF_BROWSER_NATIVE_MENU_RUNNER_LINUX_H_
29