Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: content/browser/browser_plugin/browser_plugin_popup_menu_helper_mac.mm

Issue 2888803002: Handle WebContentsViewMac being destroyed while a <select> menu is showing. (Closed)
Patch Set: respond to comments Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #include "content/browser/browser_plugin/browser_plugin_popup_menu_helper_mac.h" 5 #include "content/browser/browser_plugin/browser_plugin_popup_menu_helper_mac.h"
6 6
7 #include "content/browser/frame_host/render_frame_host_impl.h" 7 #include "content/browser/frame_host/render_frame_host_impl.h"
8 #include "content/browser/renderer_host/render_widget_host_view_mac.h" 8 #include "content/browser/renderer_host/render_widget_host_view_mac.h"
9 #include "content/public/browser/render_widget_host.h" 9 #include "content/public/browser/render_widget_host.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 BrowserPluginPopupMenuHelper::BrowserPluginPopupMenuHelper( 13 BrowserPluginPopupMenuHelper::BrowserPluginPopupMenuHelper(
14 RenderFrameHostImpl* embedder_rfh, 14 RenderFrameHostImpl* embedder_rfh,
15 RenderFrameHost* guest_rfh) 15 RenderFrameHost* guest_rfh)
16 : PopupMenuHelper(guest_rfh), embedder_rfh_(embedder_rfh) {} 16 : PopupMenuHelper(this, guest_rfh), embedder_rfh_(embedder_rfh) {}
17 17
18 RenderWidgetHostViewMac* 18 RenderWidgetHostViewMac*
19 BrowserPluginPopupMenuHelper::GetRenderWidgetHostView() const { 19 BrowserPluginPopupMenuHelper::GetRenderWidgetHostView() const {
20 return static_cast<RenderWidgetHostViewMac*>(embedder_rfh_->GetView()); 20 return static_cast<RenderWidgetHostViewMac*>(embedder_rfh_->GetView());
21 } 21 }
22 22
23 void BrowserPluginPopupMenuHelper::OnMenuClosed() {
24 // BrowserPluginGuest doesn't support cancellation of popup menus, so the
25 // MenuHelper is its own delegate and OnMenuClosed() is ignored.
26 }
27
23 } // namespace content 28 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698