Fix link in German terms of service.
[chromium-blink-merge.git] / content / shell / browser / shell_web_contents_view_delegate.h
bloba1cdd81343ecb1a3c9b6bca281e8c1ec65f935cd
1 // Copyright 2013 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.
5 #ifndef CONTENT_SHELL_BROWSER_SHELL_WEB_CONTENTS_VIEW_DELEGATE_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_WEB_CONTENTS_VIEW_DELEGATE_H_
8 #include "content/public/browser/web_contents.h"
9 #include "content/public/browser/web_contents_view_delegate.h"
10 #include "content/public/common/context_menu_params.h"
12 namespace content {
14 class ShellWebContentsViewDelegate : public WebContentsViewDelegate {
15 public:
16 explicit ShellWebContentsViewDelegate(WebContents* web_contents);
17 ~ShellWebContentsViewDelegate() override;
19 // Overridden from WebContentsViewDelegate:
20 void ShowContextMenu(RenderFrameHost* render_frame_host,
21 const ContextMenuParams& params) override;
23 #if defined(OS_MACOSX)
24 void ActionPerformed(int id);
25 #elif defined(OS_WIN)
26 void MenuItemSelected(int selection);
27 #endif
29 private:
30 WebContents* web_contents_;
31 ContextMenuParams params_;
33 DISALLOW_COPY_AND_ASSIGN(ShellWebContentsViewDelegate);
36 } // namespace content
38 #endif // CONTENT_SHELL_BROWSER_SHELL_WEB_CONTENTS_VIEW_DELEGATE_H_