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

Side by Side 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 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/web_contents/web_contents_view_aura.h" 5 #include "content/browser/web_contents/web_contents_view_aura.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after
1142 1142
1143 #if defined(USE_EXTERNAL_POPUP_MENU) 1143 #if defined(USE_EXTERNAL_POPUP_MENU)
1144 void WebContentsViewAura::ShowPopupMenu(RenderFrameHost* render_frame_host, 1144 void WebContentsViewAura::ShowPopupMenu(RenderFrameHost* render_frame_host,
1145 const gfx::Rect& bounds, 1145 const gfx::Rect& bounds,
1146 int item_height, 1146 int item_height,
1147 double item_font_size, 1147 double item_font_size,
1148 int selected_item, 1148 int selected_item,
1149 const std::vector<MenuItem>& items, 1149 const std::vector<MenuItem>& items,
1150 bool right_aligned, 1150 bool right_aligned,
1151 bool allow_multiple_selection) { 1151 bool allow_multiple_selection) {
1152 NOTIMPLEMENTED() << " show " << items.size() << " menu items"; 1152 if (delegate_) {
1153 delegate_->ShowPopupMenu(render_frame_host, bounds, item_height,
1154 item_font_size, selected_item, items,
1155 right_aligned, allow_multiple_selection);
1156 }
1153 } 1157 }
1154 1158
1155 void WebContentsViewAura::HidePopupMenu() { 1159 void WebContentsViewAura::HidePopupMenu() {
1156 NOTIMPLEMENTED(); 1160 if (delegate_) {
1161 delegate_->HidePopupMenu();
1162 }
1157 } 1163 }
1158 #endif 1164 #endif
1159 1165
1160 } // namespace content 1166 } // namespace content
OLDNEW
« 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