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

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

Issue 2751763002: Make USE_EXTERNAL_POPUP_MENU local to content. (Closed)
Patch Set: rebase Created 3 years, 9 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/BUILD.gn » ('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 1309 matching lines...) Expand 10 before | Expand all | Expand 10 after
1320 1320
1321 void WebContentsViewAura::OnWindowVisibilityChanged(aura::Window* window, 1321 void WebContentsViewAura::OnWindowVisibilityChanged(aura::Window* window,
1322 bool visible) { 1322 bool visible) {
1323 // Ignore any visibility changes in the hierarchy below. 1323 // Ignore any visibility changes in the hierarchy below.
1324 if (window != window_.get() && window_->Contains(window)) 1324 if (window != window_.get() && window_->Contains(window))
1325 return; 1325 return;
1326 1326
1327 web_contents_->UpdateWebContentsVisibility(visible); 1327 web_contents_->UpdateWebContentsVisibility(visible);
1328 } 1328 }
1329 1329
1330 #if defined(USE_EXTERNAL_POPUP_MENU) 1330 #if BUILDFLAG(USE_EXTERNAL_POPUP_MENU)
1331 void WebContentsViewAura::ShowPopupMenu(RenderFrameHost* render_frame_host, 1331 void WebContentsViewAura::ShowPopupMenu(RenderFrameHost* render_frame_host,
1332 const gfx::Rect& bounds, 1332 const gfx::Rect& bounds,
1333 int item_height, 1333 int item_height,
1334 double item_font_size, 1334 double item_font_size,
1335 int selected_item, 1335 int selected_item,
1336 const std::vector<MenuItem>& items, 1336 const std::vector<MenuItem>& items,
1337 bool right_aligned, 1337 bool right_aligned,
1338 bool allow_multiple_selection) { 1338 bool allow_multiple_selection) {
1339 NOTIMPLEMENTED() << " show " << items.size() << " menu items"; 1339 NOTIMPLEMENTED() << " show " << items.size() << " menu items";
1340 } 1340 }
1341 1341
1342 void WebContentsViewAura::HidePopupMenu() { 1342 void WebContentsViewAura::HidePopupMenu() {
1343 NOTIMPLEMENTED(); 1343 NOTIMPLEMENTED();
1344 } 1344 }
1345 #endif 1345 #endif
1346 1346
1347 } // namespace content 1347 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.h ('k') | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698