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

Issue 2806783002: ash: Do not constrain window bounds if requested (Closed)

Created:
3 years, 8 months ago by Dominik Laskowski
Modified:
3 years, 8 months ago
Reviewers:
mtomasz, oshima, reveman
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

ash: Do not constrain window bounds if requested If a client requests to set window bounds directly, Ash should not interfere, e.g. by constraining them to the workspace size. ARC windows are maximized to the display rather than the workspace. However, Ash would constrain the ShellSurface bounds to the workspace size. As a result, if the shelf was positioned to the left, the right edge of the window would be displaced from that of the display by the width of the shelf, so the app was unresponsive to input in that gap. BUG=709616 TEST=Print window hierarchy using debug shortcut, and verify that the bounds of a maximized ShellSurface match the display bounds. Review-Url: https://codereview.chromium.org/2806783002 Cr-Commit-Position: refs/heads/master@{#464242} Committed: https://chromium.googlesource.com/chromium/src/+/ef7d5fbdaadfd3c2ed18d662d2ef754e5d208c76

Patch Set 1 #

Patch Set 2 : Fix tests #

Total comments: 2

Patch Set 3 : Remove dead code #

Unified diffs Side-by-side diffs Delta from patch set Stats (+20 lines, -24 lines) Patch
M ash/wm/default_state.cc View 1 2 6 chunks +6 lines, -3 lines 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_manager.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/maximize_mode/maximize_mode_window_state.cc View 1 2 1 chunk +1 line, -4 lines 0 comments Download
M ash/wm/window_state.h View 1 2 2 chunks +5 lines, -8 lines 0 comments Download
M ash/wm/window_state_unittest.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M components/exo/shell_surface.cc View 1 2 3 chunks +3 lines, -4 lines 0 comments Download

Messages

Total messages: 29 (18 generated)
Dominik Laskowski
PTAL.
3 years, 8 months ago (2017-04-07 21:03:08 UTC) #4
mtomasz
I don't see any difference in Play store behavior before and after this patch applied ...
3 years, 8 months ago (2017-04-11 02:36:36 UTC) #12
mtomasz
Ignore my question. I found the difference.
3 years, 8 months ago (2017-04-11 04:06:51 UTC) #13
reveman
lgtm
3 years, 8 months ago (2017-04-11 16:43:32 UTC) #14
Dominik Laskowski
Ping.
3 years, 8 months ago (2017-04-12 21:16:00 UTC) #15
Dominik Laskowski
Ping.
3 years, 8 months ago (2017-04-12 21:16:02 UTC) #16
oshima
lgtm https://codereview.chromium.org/2806783002/diff/20001/ash/common/wm/maximize_mode/maximize_mode_window_state.cc File ash/common/wm/maximize_mode/maximize_mode_window_state.cc (right): https://codereview.chromium.org/2806783002/diff/20001/ash/common/wm/maximize_mode/maximize_mode_window_state.cc#newcode159 ash/common/wm/maximize_mode/maximize_mode_window_state.cc:159: if (window_state->allow_set_bounds_direct()) { this is slate code. can ...
3 years, 8 months ago (2017-04-12 22:27:24 UTC) #17
oshima
On 2017/04/12 22:27:24, oshima wrote: > lgtm > > https://codereview.chromium.org/2806783002/diff/20001/ash/common/wm/maximize_mode/maximize_mode_window_state.cc > File ash/common/wm/maximize_mode/maximize_mode_window_state.cc (right): > ...
3 years, 8 months ago (2017-04-12 22:27:44 UTC) #18
Dominik Laskowski
https://codereview.chromium.org/2806783002/diff/20001/ash/common/wm/maximize_mode/maximize_mode_window_state.cc File ash/common/wm/maximize_mode/maximize_mode_window_state.cc (right): https://codereview.chromium.org/2806783002/diff/20001/ash/common/wm/maximize_mode/maximize_mode_window_state.cc#newcode159 ash/common/wm/maximize_mode/maximize_mode_window_state.cc:159: if (window_state->allow_set_bounds_direct()) { On 2017/04/12 22:27:24, oshima wrote: > ...
3 years, 8 months ago (2017-04-12 22:45:40 UTC) #21
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/2806783002/40001
3 years, 8 months ago (2017-04-12 23:42:56 UTC) #26
commit-bot: I haz the power
3 years, 8 months ago (2017-04-13 02:07:08 UTC) #29
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/ef7d5fbdaadfd3c2ed18d662d2ef...

Powered by Google App Engine
This is Rietveld 408576698