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

Side by Side Diff: content/shell/browser/shell_web_contents_view_delegate_win.cc

Issue 130773004: Start moving context menu code to RenderFrame. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/shell/browser/shell_web_contents_view_delegate.h" 5 #include "content/shell/browser/shell_web_contents_view_delegate.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "content/public/browser/render_process_host.h" 8 #include "content/public/browser/render_process_host.h"
9 #include "content/public/browser/render_view_host.h" 9 #include "content/public/browser/render_view_host.h"
10 #include "content/public/browser/render_widget_host_view.h" 10 #include "content/public/browser/render_widget_host_view.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 63
64 ShellWebContentsViewDelegate::ShellWebContentsViewDelegate( 64 ShellWebContentsViewDelegate::ShellWebContentsViewDelegate(
65 WebContents* web_contents) 65 WebContents* web_contents)
66 : web_contents_(web_contents) { 66 : web_contents_(web_contents) {
67 } 67 }
68 68
69 ShellWebContentsViewDelegate::~ShellWebContentsViewDelegate() { 69 ShellWebContentsViewDelegate::~ShellWebContentsViewDelegate() {
70 } 70 }
71 71
72 void ShellWebContentsViewDelegate::ShowContextMenu( 72 void ShellWebContentsViewDelegate::ShowContextMenu(
73 RenderFrameHost* render_frame_host,
73 const ContextMenuParams& params) { 74 const ContextMenuParams& params) {
74 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree)) 75 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree))
75 return; 76 return;
76 77
77 params_ = params; 78 params_ = params;
78 bool has_link = !params_.unfiltered_link_url.is_empty(); 79 bool has_link = !params_.unfiltered_link_url.is_empty();
79 bool has_selection = !params_.selection_text.empty(); 80 bool has_selection = !params_.selection_text.empty();
80 81
81 HMENU menu = CreateMenu(); 82 HMENU menu = CreateMenu();
82 HMENU sub_menu = CreatePopupMenu(); 83 HMENU sub_menu = CreatePopupMenu();
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
245 return false; 246 return false;
246 } 247 }
247 248
248 void ShellWebContentsViewDelegate::TakeFocus(bool reverse) { 249 void ShellWebContentsViewDelegate::TakeFocus(bool reverse) {
249 } 250 }
250 251
251 void ShellWebContentsViewDelegate::SizeChanged(const gfx::Size& size) { 252 void ShellWebContentsViewDelegate::SizeChanged(const gfx::Size& size) {
252 } 253 }
253 254
254 } // namespace content 255 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698