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 #ifndef CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_POPUP_MENU_HELPER_MAC_H_
6 #define CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_POPUP_MENU_HELPER_MAC_H_
8 #include "content/browser/frame_host/popup_menu_helper_mac.h"
13 class RenderViewHostImpl
;
14 class RenderFrameHost
;
15 class RenderFrameHostImpl
;
17 // This class is similiar to PopupMenuHelperMac but positions the popup relative
18 // to the embedder, and issues a reply to the guest.
19 class BrowserPluginPopupMenuHelper
: public PopupMenuHelper
{
21 // Creates a BrowserPluginPopupMenuHelper that positions popups relative to
22 // |embedder_rvh| and will notify |guest_rfh| when a user selects or cancels
24 BrowserPluginPopupMenuHelper(RenderViewHost
* embedder_rvh
,
25 RenderFrameHost
* guest_rfh
);
28 RenderWidgetHostViewMac
* GetRenderWidgetHostView() const override
;
30 RenderViewHostImpl
* embedder_rvh_
;
32 DISALLOW_COPY_AND_ASSIGN(BrowserPluginPopupMenuHelper
);
35 } // namespace content
37 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_POPUP_MENU_HELPER_MAC_H_