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

Unified Diff: ui/views/widget/desktop_aura/x11_topmost_window_finder.cc

Issue 1003863005: Fix tab drag and drop with hi-dpi. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix tab drag and drop with hi-dpi. Created 5 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: ui/views/widget/desktop_aura/x11_topmost_window_finder.cc
diff --git a/ui/views/widget/desktop_aura/x11_topmost_window_finder.cc b/ui/views/widget/desktop_aura/x11_topmost_window_finder.cc
index d59b46cf3798755f1bfc8a11995b0723e64cbc18..f4228e217976e0bdd41d94027def58a5a380214a 100644
--- a/ui/views/widget/desktop_aura/x11_topmost_window_finder.cc
+++ b/ui/views/widget/desktop_aura/x11_topmost_window_finder.cc
@@ -19,9 +19,9 @@ X11TopmostWindowFinder::~X11TopmostWindowFinder() {
}
aura::Window* X11TopmostWindowFinder::FindLocalProcessWindowAt(
- const gfx::Point& screen_loc,
+ const gfx::Point& screen_loc_in_pixels,
const std::set<aura::Window*>& ignore) {
- screen_loc_ = screen_loc;
+ screen_loc_ = screen_loc_in_pixels;
ignore_ = ignore;
std::vector<aura::Window*> local_process_windows =
@@ -40,8 +40,9 @@ aura::Window* X11TopmostWindowFinder::FindLocalProcessWindowAt(
return DesktopWindowTreeHostX11::GetContentWindowForXID(toplevel_);
}
-XID X11TopmostWindowFinder::FindWindowAt(const gfx::Point& screen_loc) {
- screen_loc_ = screen_loc;
+XID X11TopmostWindowFinder::FindWindowAt(
+ const gfx::Point& screen_loc_in_pixels) {
+ screen_loc_ = screen_loc_in_pixels;
ui::EnumerateTopLevelWindows(this);
return toplevel_;
}

Powered by Google App Engine
This is Rietveld 408576698