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

Unified Diff: content/browser/web_contents/web_contents_view_aura.cc

Issue 2026813003: Enable external popup menu in Blimp, part 2/2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/public/browser/render_frame_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/web_contents/web_contents_view_aura.cc
diff --git a/content/browser/web_contents/web_contents_view_aura.cc b/content/browser/web_contents/web_contents_view_aura.cc
index 43d368168f19f3f10837d0645615453c5546c027..2c9a76e1a0075c2585ce225c4445f68e4dd25c2e 100644
--- a/content/browser/web_contents/web_contents_view_aura.cc
+++ b/content/browser/web_contents/web_contents_view_aura.cc
@@ -1149,11 +1149,17 @@ void WebContentsViewAura::ShowPopupMenu(RenderFrameHost* render_frame_host,
const std::vector<MenuItem>& items,
bool right_aligned,
bool allow_multiple_selection) {
- NOTIMPLEMENTED() << " show " << items.size() << " menu items";
+ if (delegate_) {
+ delegate_->ShowPopupMenu(render_frame_host, bounds, item_height,
+ item_font_size, selected_item, items,
+ right_aligned, allow_multiple_selection);
+ }
}
void WebContentsViewAura::HidePopupMenu() {
- NOTIMPLEMENTED();
+ if (delegate_) {
+ delegate_->HidePopupMenu();
+ }
}
#endif
« no previous file with comments | « content/browser/frame_host/render_frame_host_impl.h ('k') | content/public/browser/render_frame_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698