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

Side by Side Diff: content/browser/web_contents/web_contents_view_aura.cc

Issue 1992393002: Enable external popup menu in Blimp, part 1/2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and update blimp_engine.gn 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
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 1122 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698