| 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 #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 Loading... |
| 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 |
| OLD | NEW |