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

Unified Diff: chrome/browser/ui/views/app_list/win/app_list_win.cc

Issue 1608733002: Remove ui/gfx/screen_type_delegate.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@metro-mode-4
Patch Set: and another rebase Created 4 years, 11 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/app_list/win/app_list_win.cc
diff --git a/chrome/browser/ui/views/app_list/win/app_list_win.cc b/chrome/browser/ui/views/app_list/win/app_list_win.cc
index f2d4e820b655dcb67411ad94786acec1ac8ef8d5..462b627f1ce38f678da9ef59b08c20ef847f98fb 100644
--- a/chrome/browser/ui/views/app_list/win/app_list_win.cc
+++ b/chrome/browser/ui/views/app_list/win/app_list_win.cc
@@ -79,9 +79,8 @@ gfx::Point AppListWin::FindAnchorPoint(const gfx::Size& view_size,
// static
void AppListWin::MoveNearCursor(app_list::AppListView* view) {
- gfx::Point cursor = gfx::Screen::GetNativeScreen()->GetCursorScreenPoint();
- gfx::Screen* screen =
- gfx::Screen::GetScreenFor(view->GetWidget()->GetNativeView());
+ gfx::Screen* screen = gfx::Screen::GetScreen();
+ gfx::Point cursor = screen->GetCursorScreenPoint();
gfx::Display display = screen->GetDisplayNearestPoint(cursor);
view->SetBubbleArrow(views::BubbleBorder::FLOAT);

Powered by Google App Engine
This is Rietveld 408576698