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

Issue 2225683005: [ash-md] Prevents auto-positioning after cancelling overview (Closed)

Created:
4 years, 4 months ago by varkha
Modified:
4 years, 4 months ago
Reviewers:
hariank, oshima, reveman
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[ash-md] Prevents auto-positioning after cancelling overview This fixes the bug differently. Rother than disabling the auto-positioning for specific types of display metrics changes it is disabled for any display metrics changes but only after Shutdown has been called. Consider a situation when display metrics change while overview mode is active - it should respond by auto-positioning windows. BUG=634489 Committed: https://crrev.com/e1280a8d37f97c49f121a6628a3b7543add3a68c Cr-Commit-Position: refs/heads/master@{#410648}

Patch Set 1 #

Total comments: 2

Patch Set 2 : [ash-md] Prevents auto-positioning after cancelling overview (simpler) #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -6 lines) Patch
M ash/common/wm/overview/window_selector.cc View 1 2 chunks +6 lines, -6 lines 2 comments Download

Messages

Total messages: 16 (7 generated)
varkha
Please consider this alternative to https://codereview.chromium.org/2225523002. I think this is a safer approach with fewer ...
4 years, 4 months ago (2016-08-08 21:43:38 UTC) #2
oshima
https://codereview.chromium.org/2225683005/diff/1/ash/common/wm/overview/window_selector.cc File ash/common/wm/overview/window_selector.cc (right): https://codereview.chromium.org/2225683005/diff/1/ash/common/wm/overview/window_selector.cc#newcode385 ash/common/wm/overview/window_selector.cc:385: shutting_down_ = true; can we just remove observer?
4 years, 4 months ago (2016-08-08 22:47:37 UTC) #3
varkha
https://codereview.chromium.org/2225683005/diff/1/ash/common/wm/overview/window_selector.cc File ash/common/wm/overview/window_selector.cc (right): https://codereview.chromium.org/2225683005/diff/1/ash/common/wm/overview/window_selector.cc#newcode385 ash/common/wm/overview/window_selector.cc:385: shutting_down_ = true; On 2016/08/08 22:47:37, oshima wrote: > ...
4 years, 4 months ago (2016-08-08 23:45:35 UTC) #4
oshima
lgtm with one q. https://codereview.chromium.org/2225683005/diff/20001/ash/common/wm/overview/window_selector.cc File ash/common/wm/overview/window_selector.cc (left): https://codereview.chromium.org/2225683005/diff/20001/ash/common/wm/overview/window_selector.cc#oldcode558 ash/common/wm/overview/window_selector.cc:558: if (metrics != DISPLAY_METRIC_WORK_AREA) { ...
4 years, 4 months ago (2016-08-09 10:59:56 UTC) #9
varkha
https://codereview.chromium.org/2225683005/diff/20001/ash/common/wm/overview/window_selector.cc File ash/common/wm/overview/window_selector.cc (left): https://codereview.chromium.org/2225683005/diff/20001/ash/common/wm/overview/window_selector.cc#oldcode558 ash/common/wm/overview/window_selector.cc:558: if (metrics != DISPLAY_METRIC_WORK_AREA) { On 2016/08/09 10:59:56, oshima ...
4 years, 4 months ago (2016-08-09 13:13:39 UTC) #10
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/2225683005/20001
4 years, 4 months ago (2016-08-09 13:14:01 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-09 13:18:41 UTC) #13
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/e1280a8d37f97c49f121a6628a3b7543add3a68c Cr-Commit-Position: refs/heads/master@{#410648}
4 years, 4 months ago (2016-08-09 13:20:05 UTC) #15
oshima
4 years, 4 months ago (2016-08-09 14:32:13 UTC) #16
Message was sent while issue was closed.
On 2016/08/09 13:13:39, varkha wrote:
>
https://codereview.chromium.org/2225683005/diff/20001/ash/common/wm/overview/...
> File ash/common/wm/overview/window_selector.cc (left):
> 
>
https://codereview.chromium.org/2225683005/diff/20001/ash/common/wm/overview/...
> ash/common/wm/overview/window_selector.cc:558: if (metrics !=
> DISPLAY_METRIC_WORK_AREA) {
> On 2016/08/09 10:59:56, oshima wrote:
> > Note that we used to ignore work area only metrics change and this was to
keep
> > the same behavior. Are you sure it's safer?
> 
> Yes, this callback is here to position windows and UI elements while in
overview
> mode when work area changes. Work area insets such as from the shelf,
ChromeVox,
> etc. should trigger repositioning.
> While we attempt to block those insets from
> changing in overview I think it is safer to still respond to those changes
while
> still in overview.

That was my question, especially it *wasn't* doing it. Anyhow we'll see how it
goes.

> So for instance, if there is some shortcut to activate ChromeVox while in
> overview, the new code will deal with it while the old code may allow UI
> elements to overlap.

Powered by Google App Engine
This is Rietveld 408576698