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

Issue 1003863005: Fix tab drag and drop with hi-dpi. (Closed)

Created:
5 years, 9 months ago by stapelberg
Modified:
5 years, 9 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, tfarina, tdanderson+views_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix tab drag and drop with hi-dpi. This change converts between DIP and pixels in a few places that were not converted before, but are necessary for drag & drop of tabs to work correctly. R=sadrul@chromium.org BUG=458804, 143619 Committed: https://crrev.com/53630bda6cd2145038f20108d13fb1cf4b979472 Cr-Commit-Position: refs/heads/master@{#321787}

Patch Set 1 #

Total comments: 8

Patch Set 2 : rename functions for clarity #

Total comments: 8

Patch Set 3 : Fix tab drag and drop with hi-dpi. #

Total comments: 5

Patch Set 4 : move conversion into window_finder_x11.cc #

Patch Set 5 : noop whitespace changes #

Total comments: 4

Patch Set 6 : Fix tab drag and drop with hi-dpi. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+50 lines, -19 lines) Patch
M chrome/browser/ui/views/tabs/window_finder_x11.cc View 1 2 3 4 5 2 chunks +16 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_screen_x11.cc View 1 2 4 chunks +19 lines, -4 lines 0 comments Download
M ui/views/widget/desktop_aura/x11_topmost_window_finder.h View 1 2 3 4 5 2 chunks +7 lines, -7 lines 0 comments Download
M ui/views/widget/desktop_aura/x11_topmost_window_finder.cc View 1 2 3 4 5 5 chunks +8 lines, -7 lines 0 comments Download

Messages

Total messages: 18 (3 generated)
stapelberg
5 years, 9 months ago (2015-03-15 21:51:18 UTC) #1
sadrul
Does this address drag-drop with other apps, or from a web-page, or does this only ...
5 years, 9 months ago (2015-03-17 15:56:06 UTC) #2
stapelberg
https://codereview.chromium.org/1003863005/diff/1/ui/views/widget/desktop_aura/desktop_screen_x11.cc File ui/views/widget/desktop_aura/desktop_screen_x11.cc (right): https://codereview.chromium.org/1003863005/diff/1/ui/views/widget/desktop_aura/desktop_screen_x11.cc#newcode53 ui/views/widget/desktop_aura/desktop_screen_x11.cc:53: gfx::Point ScreenToDIPPoint(const gfx::Point& pixel_point) { On 2015/03/17 15:56:06, sadrul ...
5 years, 9 months ago (2015-03-19 08:25:44 UTC) #3
sadrul
https://codereview.chromium.org/1003863005/diff/20001/ui/views/widget/desktop_aura/desktop_screen_x11.cc File ui/views/widget/desktop_aura/desktop_screen_x11.cc (right): https://codereview.chromium.org/1003863005/diff/20001/ui/views/widget/desktop_aura/desktop_screen_x11.cc#newcode156 ui/views/widget/desktop_aura/desktop_screen_x11.cc:156: return finder.FindLocalProcessWindowAt(point, std::set<aura::Window*>()); Do we need to changes in ...
5 years, 9 months ago (2015-03-19 23:46:58 UTC) #4
sadrul
https://codereview.chromium.org/1003863005/diff/20001/ui/views/widget/desktop_aura/x11_topmost_window_finder.cc File ui/views/widget/desktop_aura/x11_topmost_window_finder.cc (right): https://codereview.chromium.org/1003863005/diff/20001/ui/views/widget/desktop_aura/x11_topmost_window_finder.cc#newcode103 ui/views/widget/desktop_aura/x11_topmost_window_finder.cc:103: screen_position_client->ConvertPointFromScreen(window, &window_loc); Oh, also, does this do the right ...
5 years, 9 months ago (2015-03-19 23:47:40 UTC) #5
stapelberg
https://codereview.chromium.org/1003863005/diff/20001/ui/views/widget/desktop_aura/desktop_screen_x11.cc File ui/views/widget/desktop_aura/desktop_screen_x11.cc (right): https://codereview.chromium.org/1003863005/diff/20001/ui/views/widget/desktop_aura/desktop_screen_x11.cc#newcode156 ui/views/widget/desktop_aura/desktop_screen_x11.cc:156: return finder.FindLocalProcessWindowAt(point, std::set<aura::Window*>()); On 2015/03/19 23:46:58, sadrul wrote: > ...
5 years, 9 months ago (2015-03-20 08:34:40 UTC) #6
sadrul
https://codereview.chromium.org/1003863005/diff/20001/ui/views/widget/desktop_aura/x11_topmost_window_finder.cc File ui/views/widget/desktop_aura/x11_topmost_window_finder.cc (right): https://codereview.chromium.org/1003863005/diff/20001/ui/views/widget/desktop_aura/x11_topmost_window_finder.cc#newcode103 ui/views/widget/desktop_aura/x11_topmost_window_finder.cc:103: screen_position_client->ConvertPointFromScreen(window, &window_loc); On 2015/03/20 08:34:40, stapelberg wrote: > On ...
5 years, 9 months ago (2015-03-20 17:40:24 UTC) #7
stapelberg
https://codereview.chromium.org/1003863005/diff/20001/ui/views/widget/desktop_aura/x11_topmost_window_finder.cc File ui/views/widget/desktop_aura/x11_topmost_window_finder.cc (right): https://codereview.chromium.org/1003863005/diff/20001/ui/views/widget/desktop_aura/x11_topmost_window_finder.cc#newcode103 ui/views/widget/desktop_aura/x11_topmost_window_finder.cc:103: screen_position_client->ConvertPointFromScreen(window, &window_loc); On 2015/03/20 17:40:23, sadrul wrote: > On ...
5 years, 9 months ago (2015-03-20 21:48:07 UTC) #8
sadrul
LGTM! (you will need another owner for the change in chrome/) https://codereview.chromium.org/1003863005/diff/40001/chrome/browser/ui/views/tabs/tab_drag_controller.cc File chrome/browser/ui/views/tabs/tab_drag_controller.cc (right): ...
5 years, 9 months ago (2015-03-20 22:02:03 UTC) #9
stapelberg
https://codereview.chromium.org/1003863005/diff/80001/chrome/browser/ui/views/tabs/window_finder_x11.cc File chrome/browser/ui/views/tabs/window_finder_x11.cc (right): https://codereview.chromium.org/1003863005/diff/80001/chrome/browser/ui/views/tabs/window_finder_x11.cc#newcode25 chrome/browser/ui/views/tabs/window_finder_x11.cc:25: On 2015/03/20 22:02:03, sadrul wrote: > These two functions ...
5 years, 9 months ago (2015-03-20 23:17:05 UTC) #10
stapelberg
sky, could you please take a look at this for OWNERS approval? Thank you!
5 years, 9 months ago (2015-03-20 23:18:49 UTC) #12
sky
LGTM
5 years, 9 months ago (2015-03-23 15:36:06 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1003863005/100001
5 years, 9 months ago (2015-03-23 15:38:42 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 9 months ago (2015-03-23 16:18:46 UTC) #17
commit-bot: I haz the power
5 years, 9 months ago (2015-03-23 16:19:33 UTC) #18
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/53630bda6cd2145038f20108d13fb1cf4b979472
Cr-Commit-Position: refs/heads/master@{#321787}

Powered by Google App Engine
This is Rietveld 408576698