Add remoting and PPAPI tests to GN build
[chromium-blink-merge.git] / content / browser / browser_plugin / browser_plugin_popup_menu_helper_mac.mm
blob413c96fd16b64fc044efdf045a6ca11cbff3fec4
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
3 // found in the LICENSE file.
5 #include "content/browser/browser_plugin/browser_plugin_popup_menu_helper_mac.h"
7 #include "content/browser/frame_host/render_frame_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"
11 namespace content {
13 BrowserPluginPopupMenuHelper::BrowserPluginPopupMenuHelper(
14     RenderViewHost* embedder_rvh, RenderFrameHost* guest_rfh)
15     : PopupMenuHelper(guest_rfh),
16       embedder_rvh_(static_cast<RenderViewHostImpl*>(embedder_rvh)) {
19 RenderWidgetHostViewMac*
20     BrowserPluginPopupMenuHelper::GetRenderWidgetHostView() const {
21   return static_cast<RenderWidgetHostViewMac*>(embedder_rvh_->GetView());
24 }  // namespace content