summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents/render_view_context_menu_gtk.cc
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-03 22:45:44 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-03 22:45:44 +0000
commitbb81f384b9ed7b1da8e2f703ced60dabc629309d (patch)
treed179afc3124a548f16e847b2394c2f914d861ac4 /chrome/browser/tab_contents/render_view_context_menu_gtk.cc
parent6dad490f3125744e012b974c01f9c911b8e4b519 (diff)
downloadchromium_src-bb81f384b9ed7b1da8e2f703ced60dabc629309d.zip
chromium_src-bb81f384b9ed7b1da8e2f703ced60dabc629309d.tar.gz
chromium_src-bb81f384b9ed7b1da8e2f703ced60dabc629309d.tar.bz2
Convert the remaining Browser::GetSelectedTabContents() calls to GetSelectedWebContents, and update all dependent code.
BUG=98716 TBR=joi Review URL: http://codereview.chromium.org/9074012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116226 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents/render_view_context_menu_gtk.cc')
-rw-r--r--chrome/browser/tab_contents/render_view_context_menu_gtk.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/tab_contents/render_view_context_menu_gtk.cc b/chrome/browser/tab_contents/render_view_context_menu_gtk.cc
index 5ee3d84..fb8f52a 100644
--- a/chrome/browser/tab_contents/render_view_context_menu_gtk.cc
+++ b/chrome/browser/tab_contents/render_view_context_menu_gtk.cc
@@ -17,6 +17,8 @@
#include "ui/gfx/gtk_util.h"
#include "webkit/glue/context_menu.h"
+using content::WebContents;
+
namespace {
// A callback function for gtk_container_foreach(). This callback just checks
@@ -72,7 +74,7 @@ GtkWidget* GetMenuItemByID(ui::MenuModel* model,
} // namespace
RenderViewContextMenuGtk::RenderViewContextMenuGtk(
- TabContents* web_contents,
+ WebContents* web_contents,
const ContextMenuParams& params,
guint32 triggering_event_time)
: RenderViewContextMenu(web_contents, params),
@@ -87,7 +89,7 @@ void RenderViewContextMenuGtk::PlatformInit() {
if (params_.is_editable) {
RenderWidgetHostViewGtk* rwhv = static_cast<RenderWidgetHostViewGtk*>(
- source_tab_contents_->GetRenderWidgetHostView());
+ source_web_contents_->GetRenderWidgetHostView());
#if !defined(TOOLKIT_VIEWS)
if (rwhv) {
MenuGtk* menu = menu_gtk_.get();