Rename Animate as Begin(Main)Frame
[chromium-blink-merge.git] / content / browser / browser_plugin / browser_plugin_popup_menu_helper_mac.h
blob2b4623710017e825f264d939bd89036f9ea784b1
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/renderer_host/popup_menu_helper_mac.h"
10 namespace content {
11 class RenderViewHost;
12 class RenderViewHostImpl;
14 // This class is similiar to PopupMenuHelperMac but positions the popup relative
15 // to the embedder, and issues a reply to the guest.
16 class BrowserPluginPopupMenuHelper : public PopupMenuHelper {
17 public:
18 // Creates a BrowserPluginPopupMenuHelper that positions popups relative to
19 // |embedder_rvh| and will notify |guest_rvh| when a user selects or cancels
20 // the popup.
21 BrowserPluginPopupMenuHelper(RenderViewHost* embedder_rvh,
22 RenderViewHost* guest_rvh);
24 private:
25 virtual RenderWidgetHostViewMac* GetRenderWidgetHostView() const OVERRIDE;
27 RenderViewHostImpl* embedder_rvh_;
29 DISALLOW_COPY_AND_ASSIGN(BrowserPluginPopupMenuHelper);
32 } // namespace content
34 #endif // CONTENT_BROWSER_BROWSER_PLUGIN_BROWSER_PLUGIN_POPUP_MENU_HELPER_MAC_H_