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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_popup_menu_helper_mac.mm

Issue 1413643002: Separate RenderViewHost from RenderWidgetHost, part 2: public implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/browser_plugin/browser_plugin_popup_menu_helper_mac.h" 5 #include "content/browser/browser_plugin/browser_plugin_popup_menu_helper_mac.h"
6 6
7 #include "content/browser/frame_host/render_frame_host_impl.h" 7 #include "content/browser/frame_host/render_frame_host_impl.h"
8 #include "content/browser/renderer_host/render_view_host_impl.h" 8 #include "content/browser/renderer_host/render_view_host_impl.h"
9 #include "content/browser/renderer_host/render_widget_host_view_mac.h" 9 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
10 #include "content/public/browser/render_widget_host.h"
10 11
11 namespace content { 12 namespace content {
12 13
13 BrowserPluginPopupMenuHelper::BrowserPluginPopupMenuHelper( 14 BrowserPluginPopupMenuHelper::BrowserPluginPopupMenuHelper(
14 RenderViewHost* embedder_rvh, RenderFrameHost* guest_rfh) 15 RenderViewHost* embedder_rvh, RenderFrameHost* guest_rfh)
15 : PopupMenuHelper(guest_rfh), 16 : PopupMenuHelper(guest_rfh),
16 embedder_rvh_(static_cast<RenderViewHostImpl*>(embedder_rvh)) { 17 embedder_rvh_(static_cast<RenderViewHostImpl*>(embedder_rvh)) {
17 } 18 }
18 19
19 RenderWidgetHostViewMac* 20 RenderWidgetHostViewMac*
20 BrowserPluginPopupMenuHelper::GetRenderWidgetHostView() const { 21 BrowserPluginPopupMenuHelper::GetRenderWidgetHostView() const {
21 return static_cast<RenderWidgetHostViewMac*>(embedder_rvh_->GetView()); 22 return static_cast<RenderWidgetHostViewMac*>(
23 embedder_rvh_->GetWidget()->GetView());
22 } 24 }
23 25
24 } // namespace content 26 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/browser_plugin/browser_plugin_guest.cc ('k') | content/browser/devtools/devtools_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698