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 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1133 | 1133 |
1134 void WebContentsViewAura::OnWindowVisibilityChanged(aura::Window* window, | 1134 void WebContentsViewAura::OnWindowVisibilityChanged(aura::Window* window, |
1135 bool visible) { | 1135 bool visible) { |
1136 // Ignore any visibility changes in the hierarchy below. | 1136 // Ignore any visibility changes in the hierarchy below. |
1137 if (window != window_.get() && window_->Contains(window)) | 1137 if (window != window_.get() && window_->Contains(window)) |
1138 return; | 1138 return; |
1139 | 1139 |
1140 web_contents_->UpdateWebContentsVisibility(visible); | 1140 web_contents_->UpdateWebContentsVisibility(visible); |
1141 } | 1141 } |
1142 | 1142 |
| 1143 #if defined(USE_EXTERNAL_POPUP_MENU) |
| 1144 void WebContentsViewAura::ShowPopupMenu(RenderFrameHost* render_frame_host, |
| 1145 const gfx::Rect& bounds, |
| 1146 int item_height, |
| 1147 double item_font_size, |
| 1148 int selected_item, |
| 1149 const std::vector<MenuItem>& items, |
| 1150 bool right_aligned, |
| 1151 bool allow_multiple_selection) { |
| 1152 NOTIMPLEMENTED() << " show " << items.size() << " menu items"; |
| 1153 } |
| 1154 |
| 1155 void WebContentsViewAura::HidePopupMenu() { |
| 1156 NOTIMPLEMENTED(); |
| 1157 } |
| 1158 #endif |
| 1159 |
1143 } // namespace content | 1160 } // namespace content |
OLD | NEW |