Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(190)

Unified Diff: chrome/browser/tab_contents/render_view_context_menu.h

Issue 130773004: Start moving context menu code to RenderFrame. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/tab_contents/render_view_context_menu.h
===================================================================
--- chrome/browser/tab_contents/render_view_context_menu.h (revision 247964)
+++ chrome/browser/tab_contents/render_view_context_menu.h (working copy)
@@ -28,6 +28,7 @@
class SpellCheckerSubMenuObserver;
namespace content {
+class RenderFrameHost;
class RenderViewHost;
class WebContents;
}
@@ -130,7 +131,7 @@
public:
static const size_t kMaxSelectionTextLength;
- RenderViewContextMenu(content::WebContents* web_contents,
+ RenderViewContextMenu(content::RenderFrameHost* render_frame_host,
const content::ContextMenuParams& params);
virtual ~RenderViewContextMenu();
@@ -180,6 +181,9 @@
content::ContextMenuParams params_;
content::WebContents* source_web_contents_;
+ // The RenderFrameHost's IDs.
+ int render_process_id_;
+ int render_frame_id_;
Profile* profile_;
ui::SimpleMenuModel menu_model_;

Powered by Google App Engine
This is Rietveld 408576698