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

Unified Diff: chrome/browser/ui/views/app_list/linux/app_list_linux.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/linux/app_list_linux.cc
diff --git a/chrome/browser/ui/views/app_list/linux/app_list_linux.cc b/chrome/browser/ui/views/app_list/linux/app_list_linux.cc
index a8ef48aa44a34a434aad8839eec3cad87339ce4e..07b707dc2b64d452005d9927f3baba376f7aecc5 100644
--- a/chrome/browser/ui/views/app_list/linux/app_list_linux.cc
+++ b/chrome/browser/ui/views/app_list/linux/app_list_linux.cc
@@ -84,9 +84,8 @@ gfx::Point AppListLinux::FindAnchorPoint(const gfx::Size& view_size,
// static
void AppListLinux::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);
« no previous file with comments | « chrome/browser/ui/panels/panel_mouse_watcher_timer.cc ('k') | chrome/browser/ui/views/app_list/win/app_list_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698