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

Unified Diff: content/browser/renderer_host/render_view_host_impl.cc

Issue 197533008: Mac: ExternalPopupMenu::close should hide a showing popup menu. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: alignment Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_view_host_impl.cc
diff --git a/content/browser/renderer_host/render_view_host_impl.cc b/content/browser/renderer_host/render_view_host_impl.cc
index 0d7e469f1205156ed8f18d0f4e96ac2f68fab84d..cc6cc0bd53f003d6294efc20bbc6d5e85270f328 100644
--- a/content/browser/renderer_host/render_view_host_impl.cc
+++ b/content/browser/renderer_host/render_view_host_impl.cc
@@ -1142,6 +1142,7 @@ bool RenderViewHostImpl::OnMessageReceived(const IPC::Message& msg) {
OnCancelDesktopNotification)
#if defined(OS_MACOSX) || defined(OS_ANDROID)
IPC_MESSAGE_HANDLER(ViewHostMsg_ShowPopup, OnShowPopup)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_HidePopup, OnHidePopup)
#endif
IPC_MESSAGE_HANDLER(ViewHostMsg_RunFileChooser, OnRunFileChooser)
IPC_MESSAGE_HANDLER(ViewHostMsg_DidAccessInitialDocument,
@@ -1896,6 +1897,12 @@ void RenderViewHostImpl::OnShowPopup(
params.allow_multiple_selection);
}
}
+
+void RenderViewHostImpl::OnHidePopup() {
+ RenderViewHostDelegateView* view = delegate_->GetDelegateView();
+ if (view)
+ view->HidePopupMenu();
+}
#endif
void RenderViewHostImpl::SetState(RenderViewHostImplState rvh_state) {

Powered by Google App Engine
This is Rietveld 408576698