| Index: content/shell/browser/shell_web_contents_view_delegate.h
|
| diff --git a/content/shell/browser/shell_web_contents_view_delegate.h b/content/shell/browser/shell_web_contents_view_delegate.h
|
| index 8b08aba2f6e3719454ff9ffbc0311b0f0d7f3a86..0a537a5562bbbe555837796055d32dabfd0b54f3 100644
|
| --- a/content/shell/browser/shell_web_contents_view_delegate.h
|
| +++ b/content/shell/browser/shell_web_contents_view_delegate.h
|
| @@ -5,12 +5,22 @@
|
| #ifndef CONTENT_SHELL_BROWSER_SHELL_WEB_CONTENTS_VIEW_DELEGATE_H_
|
| #define CONTENT_SHELL_BROWSER_SHELL_WEB_CONTENTS_VIEW_DELEGATE_H_
|
|
|
| +#include <memory>
|
| +
|
| #include "base/macros.h"
|
| #include "build/build_config.h"
|
| #include "content/public/browser/web_contents.h"
|
| #include "content/public/browser/web_contents_view_delegate.h"
|
| #include "content/public/common/context_menu_params.h"
|
|
|
| +namespace ui {
|
| +class SimpleMenuModel;
|
| +}
|
| +
|
| +namespace views {
|
| +class MenuRunner;
|
| +}
|
| +
|
| namespace content {
|
|
|
| class ShellWebContentsViewDelegate : public WebContentsViewDelegate {
|
| @@ -24,13 +34,18 @@ class ShellWebContentsViewDelegate : public WebContentsViewDelegate {
|
|
|
| #if defined(OS_MACOSX)
|
| void ActionPerformed(int id);
|
| -#elif defined(OS_WIN)
|
| - void MenuItemSelected(int selection);
|
| #endif
|
|
|
| private:
|
| WebContents* web_contents_;
|
| +#if defined(OS_MACOSX)
|
| ContextMenuParams params_;
|
| +#endif
|
| +
|
| +#if defined(TOOLKIT_VIEWS)
|
| + std::unique_ptr<ui::SimpleMenuModel> context_menu_model_;
|
| + std::unique_ptr<views::MenuRunner> context_menu_runner_;
|
| +#endif
|
|
|
| DISALLOW_COPY_AND_ASSIGN(ShellWebContentsViewDelegate);
|
| };
|
|
|