• 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_WIN_H_
6 #define CEF_LIBCEF_BROWSER_NATIVE_MENU_RUNNER_WIN_H_
7 #pragma once
8 
9 #include "libcef/browser/menu_runner.h"
10 
11 #include "libcef/browser/native/native_menu_win.h"
12 
13 class CefMenuRunnerWin : public CefMenuRunner {
14  public:
15   CefMenuRunnerWin();
16 
17   // CefMenuRunner methods.
18   bool RunContextMenu(AlloyBrowserHostImpl* browser,
19                       CefMenuModelImpl* model,
20                       const content::ContextMenuParams& params) override;
21 
22  private:
23   std::unique_ptr<views::CefNativeMenuWin> menu_;
24 };
25 
26 #endif  // CEF_LIBCEF_BROWSER_NATIVE_MENU_RUNNER_WIN_H_
27