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