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

Issue 924853002: linux/x11: Fix setting window bounds in High DPI. (Closed)

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

Description

linux/x11: Fix window positioning/sizing in High DPI. Make the appropriate conversions between pixel-space and dip-space coordinates/sizes depending on the display's device scale factor. BUG=400837 R=pkotwicz@chromium.org, sky@chromium.org Committed: https://chromium.googlesource.com/chromium/src/+/b19dc5bf24871e40e986f0f024946b1c281e77c4

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Total comments: 4

Patch Set 4 : . #

Total comments: 27

Patch Set 5 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+206 lines, -161 lines) Patch
M ui/aura/window_tree_host.h View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h View 1 2 3 4 4 chunks +19 lines, -13 lines 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 2 3 4 27 chunks +185 lines, -146 lines 0 comments Download

Messages

Total messages: 24 (4 generated)
sadrul
5 years, 10 months ago (2015-02-13 13:42:53 UTC) #2
pkotwicz
This seems to be similar to what we do on Desktop Windows. However, I wonder ...
5 years, 10 months ago (2015-02-13 19:23:20 UTC) #4
sadrul
On 2015/02/13 19:23:20, pkotwicz wrote: > This seems to be similar to what we do ...
5 years, 10 months ago (2015-02-13 19:52:26 UTC) #5
sadrul
+erg@ Peter: Mind reviewing the whole CL?
5 years, 10 months ago (2015-02-18 15:15:37 UTC) #7
pkotwicz
I would suggest adding methods to do rect conversion to WindowTreeHost
5 years, 10 months ago (2015-02-18 15:24:24 UTC) #8
sadrul
On 2015/02/18 15:24:24, pkotwicz wrote: > I would suggest adding methods to do rect conversion ...
5 years, 10 months ago (2015-02-18 15:33:08 UTC) #9
pkotwicz
I think that the benefit of having less coordinate systems to think about outweighs the ...
5 years, 10 months ago (2015-02-18 16:39:48 UTC) #10
sadrul
On 2015/02/18 16:39:48, pkotwicz wrote: > I think that the benefit of having less coordinate ...
5 years, 10 months ago (2015-02-18 17:19:24 UTC) #11
sadrul
I have updated the CL to have DesktopWindowTreeHostX11 override GetRootTransform() to return the right thing, ...
5 years, 10 months ago (2015-02-18 20:13:02 UTC) #12
sky
All these conversions make me sad. LGTM
5 years, 10 months ago (2015-02-18 22:32:33 UTC) #13
Elliot Glaysher
On 2015/02/18 22:32:33, sky wrote: > All these conversions make me sad. LGTM Sadness. Sadness ...
5 years, 10 months ago (2015-02-18 22:53:51 UTC) #14
pkotwicz
I didn't get through the entire CL. If you are changing DesktopWindowTreeHostX11::bounds_ to DesktopWindowTreeHostX11::bounds_in_pixels to ...
5 years, 10 months ago (2015-02-18 22:58:51 UTC) #15
pkotwicz
I think this CL needs more work as I described in comment #15 NLGTM
5 years, 10 months ago (2015-02-18 22:59:52 UTC) #16
pkotwicz
I think this CL needs more work as I described in comment #15 Not LGTM
5 years, 10 months ago (2015-02-18 23:00:16 UTC) #17
sadrul
On 2015/02/18 22:58:51, pkotwicz wrote: > I didn't get through the entire CL. If you ...
5 years, 10 months ago (2015-02-18 23:33:58 UTC) #18
sadrul
On 2015/02/18 22:53:51, Elliot Glaysher wrote: > On 2015/02/18 22:32:33, sky wrote: > > All ...
5 years, 10 months ago (2015-02-18 23:54:30 UTC) #20
pkotwicz
LGTM after you have addressed the comments Please update the .h file with the new ...
5 years, 10 months ago (2015-02-19 03:07:21 UTC) #21
sadrul
https://codereview.chromium.org/924853002/diff/60001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc File ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc (right): https://codereview.chromium.org/924853002/diff/60001/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc#newcode421 ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc:421: transient_parent_rect.width() >= size_in_pixels.width()) { On 2015/02/19 03:07:20, pkotwicz wrote: ...
5 years, 10 months ago (2015-02-24 00:11:28 UTC) #22
commit-bot: I haz the power
Patchset 5 (id:??) landed as https://crrev.com/b19dc5bf24871e40e986f0f024946b1c281e77c4 Cr-Commit-Position: refs/heads/master@{#317733}
5 years, 10 months ago (2015-02-24 01:55:26 UTC) #23
sadrul
5 years, 10 months ago (2015-02-24 02:02:22 UTC) #24
Message was sent while issue was closed.
Committed patchset #5 (id:80001) manually as
b19dc5bf24871e40e986f0f024946b1c281e77c4 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698