blob: d6309b900c3970a79d64aee487b47a19f83a1946 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_WIN_H_
#define CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_WIN_H_
#pragma once
#include "chrome/browser/ui/views/tab_contents/render_view_context_menu_views.h"
namespace content {
class WebContents;
}
// Windows specific implementation of the render view context menu.
class RenderViewContextMenuWin : public RenderViewContextMenuViews {
public:
RenderViewContextMenuWin(content::WebContents* web_contents,
const content::ContextMenuParams& params);
virtual ~RenderViewContextMenuWin();
// Set this menu to show for an external tab contents. This
// only has an effect before Init() is called.
void SetExternal();
// SimpleMenuModel::Delegate implementation.
virtual bool IsCommandIdVisible(int command_id) const OVERRIDE;
virtual void ExecuteCommand(int command_id) OVERRIDE;
virtual void ExecuteCommand(int command_id, int event_flags) OVERRIDE;
private:
DISALLOW_COPY_AND_ASSIGN(RenderViewContextMenuWin);
};
#endif // CHROME_BROWSER_TAB_CONTENTS_RENDER_VIEW_CONTEXT_MENU_WIN_H_
|