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

Issue 2504793002: Scale bounds in DesktopWindowTreeHostMus and in calls to SetBounds. (Closed)

Created:
4 years, 1 month ago by riajiang
Modified:
4 years, 1 month ago
CC:
chromium-reviews, anandc+watch-blimp_chromium.org, sadrul, sriramsr+watch-blimp_chromium.org, bgoldman+watch-blimp_chromium.org, tfarina, maniscalco+watch-blimp_chromium.org, steimel+watch-blimp_chromium.org, gcasto+watch-blimp_chromium.org, shaktisahu+watch-blimp_chromium.org, nyquist+watch-blimp_chromium.org, perumaal+watch-blimp_chromium.org, marcinjb+watch-blimp_chromium.org, kmarshall+watch-blimp_chromium.org, lethalantidote+watch-blimp_chromium.org, kalyank, dtrainor+watch-blimp_chromium.org, scf+watch-blimp_chromium.org, khushalsagar+watch-blimp_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Scale bounds in DesktopWindowTreeHostMus and in calls to SetBounds. BUG=663524 TEST=views_aura_mus_unittests manual (with --force-device-scale-factor=2) Committed: https://crrev.com/7df1b3de855d7a398f12226e1749555f502736c4 Cr-Commit-Position: refs/heads/master@{#434106}

Patch Set 1 #

Patch Set 2 : scale factor #

Total comments: 7

Patch Set 3 : blimp #

Total comments: 3

Patch Set 4 : sadrul@'s comment #

Total comments: 2

Patch Set 5 : set bounds in dips #

Patch Set 6 : SetBounds + rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -20 lines) Patch
M blimp/client/app/linux/blimp_display_manager.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download
M blimp/client/public/contents/blimp_contents_view.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.cc View 1 2 3 4 5 6 chunks +25 lines, -17 lines 0 comments Download
M ui/views/mus/window_tree_host_mus.cc View 1 2 2 chunks +3 lines, -1 line 0 comments Download

Messages

Total messages: 35 (19 generated)
riajiang
sadrul@ and sky@, PTAL. Thanks!
4 years, 1 month ago (2016-11-16 22:27:26 UTC) #8
sadrul
https://codereview.chromium.org/2504793002/diff/40001/ash/host/ash_window_tree_host_unified.cc File ash/host/ash_window_tree_host_unified.cc (right): https://codereview.chromium.org/2504793002/diff/40001/ash/host/ash_window_tree_host_unified.cc#newcode55 ash/host/ash_window_tree_host_unified.cc:55: window->SetBounds(gfx::ConvertRectToPixel(compositor()->device_scale_factor(), It may make sense to rename PlatformWindow::SetBounds() to ...
4 years, 1 month ago (2016-11-17 20:26:22 UTC) #9
riajiang
https://codereview.chromium.org/2504793002/diff/40001/ash/host/ash_window_tree_host_unified.cc File ash/host/ash_window_tree_host_unified.cc (right): https://codereview.chromium.org/2504793002/diff/40001/ash/host/ash_window_tree_host_unified.cc#newcode55 ash/host/ash_window_tree_host_unified.cc:55: window->SetBounds(gfx::ConvertRectToPixel(compositor()->device_scale_factor(), On 2016/11/17 20:26:21, sadrul wrote: > It may ...
4 years, 1 month ago (2016-11-17 21:43:28 UTC) #10
sadrul
https://codereview.chromium.org/2504793002/diff/40001/blimp/client/app/linux/blimp_display_manager.cc File blimp/client/app/linux/blimp_display_manager.cc (right): https://codereview.chromium.org/2504793002/diff/40001/blimp/client/app/linux/blimp_display_manager.cc#newcode45 blimp/client/app/linux/blimp_display_manager.cc:45: gfx::Rect(window_size))); On 2016/11/17 21:43:28, riajiang wrote: > On 2016/11/17 ...
4 years, 1 month ago (2016-11-18 01:23:55 UTC) #11
riajiang
https://codereview.chromium.org/2504793002/diff/40001/blimp/client/app/linux/blimp_display_manager.cc File blimp/client/app/linux/blimp_display_manager.cc (right): https://codereview.chromium.org/2504793002/diff/40001/blimp/client/app/linux/blimp_display_manager.cc#newcode45 blimp/client/app/linux/blimp_display_manager.cc:45: gfx::Rect(window_size))); On 2016/11/18 01:23:55, sadrul wrote: > On 2016/11/17 ...
4 years, 1 month ago (2016-11-18 01:49:34 UTC) #12
riajiang
also +dtrainor@ for blimp, thanks! https://codereview.chromium.org/2504793002/diff/40001/blimp/client/app/linux/blimp_display_manager.cc File blimp/client/app/linux/blimp_display_manager.cc (right): https://codereview.chromium.org/2504793002/diff/40001/blimp/client/app/linux/blimp_display_manager.cc#newcode45 blimp/client/app/linux/blimp_display_manager.cc:45: gfx::Rect(window_size))); On 2016/11/18 01:49:34, ...
4 years, 1 month ago (2016-11-18 20:19:12 UTC) #14
David Trainor- moved to gerrit
lgtm https://codereview.chromium.org/2504793002/diff/60001/blimp/client/public/contents/blimp_contents_view.h File blimp/client/public/contents/blimp_contents_view.h (right): https://codereview.chromium.org/2504793002/diff/60001/blimp/client/public/contents/blimp_contents_view.h#newcode46 blimp/client/public/contents/blimp_contents_view.h:46: // in pixels and |device_scale_factor| is in terms ...
4 years, 1 month ago (2016-11-21 16:56:52 UTC) #15
sadrul
https://codereview.chromium.org/2504793002/diff/60001/ash/host/ash_window_tree_host_unified.cc File ash/host/ash_window_tree_host_unified.cc (right): https://codereview.chromium.org/2504793002/diff/60001/ash/host/ash_window_tree_host_unified.cc#newcode56 ash/host/ash_window_tree_host_unified.cc:56: initial_bounds)); Hm, I actually think this doesn't need to ...
4 years, 1 month ago (2016-11-21 17:39:50 UTC) #16
riajiang
https://codereview.chromium.org/2504793002/diff/60001/ash/host/ash_window_tree_host_unified.cc File ash/host/ash_window_tree_host_unified.cc (right): https://codereview.chromium.org/2504793002/diff/60001/ash/host/ash_window_tree_host_unified.cc#newcode56 ash/host/ash_window_tree_host_unified.cc:56: initial_bounds)); On 2016/11/21 17:39:50, sadrul wrote: > Hm, I ...
4 years, 1 month ago (2016-11-21 19:24:23 UTC) #18
sadrul
lgtm
4 years, 1 month ago (2016-11-21 20:22:28 UTC) #19
sky
I will approve this if you say it's too painful to convert WindowTreeHost now, but ...
4 years, 1 month ago (2016-11-21 22:27:25 UTC) #20
riajiang
On 2016/11/21 22:27:25, sky wrote: > I will approve this if you say it's too ...
4 years, 1 month ago (2016-11-22 15:54:20 UTC) #21
sky
I'm going to LGTM this as the rename shouldn't hold this patch up. The general ...
4 years, 1 month ago (2016-11-22 20:44:19 UTC) #22
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/2504793002/160001
4 years, 1 month ago (2016-11-23 02:47:57 UTC) #30
commit-bot: I haz the power
Committed patchset #6 (id:160001)
4 years, 1 month ago (2016-11-23 03:55:20 UTC) #33
commit-bot: I haz the power
4 years, 1 month ago (2016-11-23 03:57:40 UTC) #35
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/7df1b3de855d7a398f12226e1749555f502736c4
Cr-Commit-Position: refs/heads/master@{#434106}

Powered by Google App Engine
This is Rietveld 408576698