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

Unified Diff: chrome/browser/ui/views/toolbar/toolbar_button.cc

Issue 2751833004: Reland "Add display::GetDisplayNearestView" (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/toolbar/toolbar_button.cc
diff --git a/chrome/browser/ui/views/toolbar/toolbar_button.cc b/chrome/browser/ui/views/toolbar/toolbar_button.cc
index c66f40eebe561ec70e9f8bab5ae07355ee34d75b..e529cf66a34dc5c48c0ac509a6fbabca5db3fb43 100644
--- a/chrome/browser/ui/views/toolbar/toolbar_button.cc
+++ b/chrome/browser/ui/views/toolbar/toolbar_button.cc
@@ -184,7 +184,7 @@ void ToolbarButton::ShowDropDownMenu(ui::MenuSourceType source_type) {
// the menu button exists.
gfx::NativeView view = GetWidget()->GetNativeView();
display::Display display =
- display::Screen::GetScreen()->GetDisplayNearestWindow(view);
+ display::Screen::GetScreen()->GetDisplayNearestView(view);
int left_bound = display.bounds().x();
#else
// The window might be positioned over the edge between two screens. We'll

Powered by Google App Engine
This is Rietveld 408576698