// 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_