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