- add sources.
[platform/framework/web/crosswalk.git] / src / content / browser / browser_plugin / browser_plugin_popup_menu_helper_mac.mm
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.
4
5 #include "content/browser/browser_plugin/browser_plugin_popup_menu_helper_mac.h"
6
7 #include "content/browser/renderer_host/render_view_host_impl.h"
8 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
9
10 namespace content {
11
12 BrowserPluginPopupMenuHelper::BrowserPluginPopupMenuHelper(
13     RenderViewHost* embedder_rvh, RenderViewHost* guest_rvh)
14     : PopupMenuHelper(guest_rvh),
15       embedder_rvh_(static_cast<RenderViewHostImpl*>(embedder_rvh)) {
16 }
17
18 RenderWidgetHostViewMac*
19     BrowserPluginPopupMenuHelper::GetRenderWidgetHostView() const {
20   return static_cast<RenderWidgetHostViewMac*>(embedder_rvh_->GetView());
21 }
22
23 }  // namespace content