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

Issue 2579883002: Scale bounds in aura-mus client-lib and NativeWidgetMus in hdpi mode. (Closed)

Created:
4 years ago by riajiang
Modified:
4 years ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, kalyank, tfarina, kylechar
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Scale bounds in aura-mus client-lib and NativeWidgetMus in hdpi mode. Also use the correct device scale factor in WindowTreeHostMus. BUG=646942 TEST=manual (with --force-device-scale-factor=2) aura_unittests Committed: https://crrev.com/d02d32f9400a58ea0c9e5beb1ecc25f5beefe484 Cr-Commit-Position: refs/heads/master@{#440224}

Patch Set 1 #

Total comments: 10

Patch Set 2 : address sky@'s and sadrul@'s comments #

Patch Set 3 : change a comment about pixels #

Total comments: 12

Patch Set 4 : sadrul@'s comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -43 lines) Patch
M ui/aura/mus/window_port_mus.h View 1 1 chunk +2 lines, -2 lines 0 comments Download
M ui/aura/mus/window_port_mus.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 2 3 7 chunks +29 lines, -21 lines 0 comments Download
M ui/aura/mus/window_tree_client_unittest.cc View 1 4 chunks +72 lines, -0 lines 0 comments Download
M ui/aura/mus/window_tree_host_mus.h View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M ui/aura/mus/window_tree_host_mus.cc View 1 2 3 3 chunks +7 lines, -10 lines 0 comments Download
M ui/views/mus/native_widget_mus.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/views/mus/native_widget_mus.cc View 1 5 chunks +16 lines, -2 lines 0 comments Download

Messages

Total messages: 27 (15 generated)
riajiang
Hi sadrul@ and sky@, PTAL. Thanks!
4 years ago (2016-12-15 21:32:14 UTC) #4
sky
Can you write tests for this too? https://codereview.chromium.org/2579883002/diff/40001/ui/aura/mus/window_port_mus.h File ui/aura/mus/window_port_mus.h (right): https://codereview.chromium.org/2579883002/diff/40001/ui/aura/mus/window_port_mus.h#newcode136 ui/aura/mus/window_port_mus.h:136: // Applies ...
4 years ago (2016-12-15 22:07:32 UTC) #5
sadrul
https://codereview.chromium.org/2579883002/diff/40001/ui/aura/mus/window_tree_client.cc File ui/aura/mus/window_tree_client.cc (right): https://codereview.chromium.org/2579883002/diff/40001/ui/aura/mus/window_tree_client.cc#newcode928 ui/aura/mus/window_tree_client.cc:928: window->GetWindow()->bounds()) != bounds) Some conversions are happening in WindowPortMus, ...
4 years ago (2016-12-16 18:14:08 UTC) #6
chromium-reviews
We can keep all conversions in WindowTreeClient, but then ScopedServerChange would be in DIP and ...
4 years ago (2016-12-16 19:45:23 UTC) #7
sky
I agree with Sadrul. If possible centralize the conversion in WindowTreeClient. The less places that ...
4 years ago (2016-12-16 20:37:03 UTC) #8
riajiang
Also added tests. PTAL. Thanks! https://codereview.chromium.org/2579883002/diff/40001/ui/aura/mus/window_port_mus.h File ui/aura/mus/window_port_mus.h (right): https://codereview.chromium.org/2579883002/diff/40001/ui/aura/mus/window_port_mus.h#newcode136 ui/aura/mus/window_port_mus.h:136: // Applies to BOUNDS. ...
4 years ago (2016-12-19 23:51:55 UTC) #11
sadrul
https://codereview.chromium.org/2579883002/diff/100001/ui/aura/mus/window_tree_client.cc File ui/aura/mus/window_tree_client.cc (right): https://codereview.chromium.org/2579883002/diff/100001/ui/aura/mus/window_tree_client.cc#newcode539 ui/aura/mus/window_tree_client.cc:539: const gfx::Rect& revert_bounds) { Let's call this revert_bounds_in_pixels https://codereview.chromium.org/2579883002/diff/100001/ui/aura/mus/window_tree_client.cc#newcode541 ...
4 years ago (2016-12-21 16:22:45 UTC) #16
riajiang
https://codereview.chromium.org/2579883002/diff/100001/ui/aura/mus/window_tree_client.cc File ui/aura/mus/window_tree_client.cc (right): https://codereview.chromium.org/2579883002/diff/100001/ui/aura/mus/window_tree_client.cc#newcode539 ui/aura/mus/window_tree_client.cc:539: const gfx::Rect& revert_bounds) { On 2016/12/21 16:22:44, sadrul wrote: ...
4 years ago (2016-12-21 17:48:33 UTC) #18
sadrul
lgtm
4 years ago (2016-12-21 19:30:10 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2579883002/140001
4 years ago (2016-12-21 19:33:49 UTC) #21
commit-bot: I haz the power
Committed patchset #4 (id:140001)
4 years ago (2016-12-21 21:34:44 UTC) #24
commit-bot: I haz the power
4 years ago (2016-12-21 21:37:17 UTC) #26
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d02d32f9400a58ea0c9e5beb1ecc25f5beefe484
Cr-Commit-Position: refs/heads/master@{#440224}

Powered by Google App Engine
This is Rietveld 408576698