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

Issue 2393703002: Fix partial screenshot/window screenshot when holding Alt+Tab. (Closed)

Created:
4 years, 2 months ago by Evan Stade
Modified:
4 years, 2 months ago
Reviewers:
oshima, sky
CC:
chromium-reviews, kalyank, sadrul
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix partial screenshot/window screenshot when holding Alt+Tab. Normal screenshot (i.e. whole desktop screenshot) already works normally, although AFAIK it's impossible to trigger while showing Alt+ since that modifies the screenshot type. Partial and window screenshots take over mouse events without breaking existing mouse captures, so Alt+Tab doesn't know it should close. Fix this by explicitly breaking existing mouse captures when a screenshot session starts. BUG=651939 Committed: https://crrev.com/3be101d020da2ce8eb7c0ab7d92708b8d86acd95 Cr-Commit-Position: refs/heads/master@{#425328}

Patch Set 1 #

Patch Set 2 : unit test #

Total comments: 4

Patch Set 3 : capture #

Total comments: 4

Patch Set 4 : break capture after screenshot #

Patch Set 5 : update test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+21 lines, -0 lines) Patch
M ash/utility/screenshot_controller.cc View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M ash/utility/screenshot_controller_unittest.cc View 1 2 3 4 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 30 (12 generated)
Evan Stade
4 years, 2 months ago (2016-10-04 21:06:39 UTC) #2
sky
https://codereview.chromium.org/2393703002/diff/20001/ash/utility/screenshot_controller.cc File ash/utility/screenshot_controller.cc (right): https://codereview.chromium.org/2393703002/diff/20001/ash/utility/screenshot_controller.cc#newcode265 ash/utility/screenshot_controller.cc:265: aura::client::GetCaptureClient(root)->SetCapture(nullptr); I'm mildly worried about side effects this may ...
4 years, 2 months ago (2016-10-05 15:57:35 UTC) #7
Evan Stade
https://codereview.chromium.org/2393703002/diff/20001/ash/utility/screenshot_controller.cc File ash/utility/screenshot_controller.cc (right): https://codereview.chromium.org/2393703002/diff/20001/ash/utility/screenshot_controller.cc#newcode265 ash/utility/screenshot_controller.cc:265: aura::client::GetCaptureClient(root)->SetCapture(nullptr); On 2016/10/05 15:57:35, sky wrote: > I'm mildly ...
4 years, 2 months ago (2016-10-05 17:21:37 UTC) #8
sky
https://codereview.chromium.org/2393703002/diff/20001/ash/utility/screenshot_controller.cc File ash/utility/screenshot_controller.cc (right): https://codereview.chromium.org/2393703002/diff/20001/ash/utility/screenshot_controller.cc#newcode265 ash/utility/screenshot_controller.cc:265: aura::client::GetCaptureClient(root)->SetCapture(nullptr); On 2016/10/05 17:21:37, Evan Stade wrote: > On ...
4 years, 2 months ago (2016-10-06 15:45:50 UTC) #9
Evan Stade
https://codereview.chromium.org/2393703002/diff/20001/ash/utility/screenshot_controller.cc File ash/utility/screenshot_controller.cc (right): https://codereview.chromium.org/2393703002/diff/20001/ash/utility/screenshot_controller.cc#newcode265 ash/utility/screenshot_controller.cc:265: aura::client::GetCaptureClient(root)->SetCapture(nullptr); On 2016/10/06 15:45:50, sky wrote: > On 2016/10/05 ...
4 years, 2 months ago (2016-10-06 16:32:34 UTC) #11
oshima
not lgtm This will close menu when this mode is activated, which means that you ...
4 years, 2 months ago (2016-10-06 20:07:53 UTC) #12
Evan Stade
> This will close menu when this mode is activated, which means that you can't ...
4 years, 2 months ago (2016-10-06 20:21:19 UTC) #13
Evan Stade
On 2016/10/06 20:21:19, Evan Stade wrote: > > This will close menu when this mode ...
4 years, 2 months ago (2016-10-10 18:00:18 UTC) #14
sky
On 2016/10/10 18:00:18, Evan Stade wrote: > On 2016/10/06 20:21:19, Evan Stade wrote: > > ...
4 years, 2 months ago (2016-10-10 20:03:56 UTC) #15
Evan Stade
On 2016/10/10 20:03:56, sky wrote: > On 2016/10/10 18:00:18, Evan Stade wrote: > > On ...
4 years, 2 months ago (2016-10-10 21:03:15 UTC) #16
oshima
On 2016/10/06 20:21:19, Evan Stade wrote: > > This will close menu when this mode ...
4 years, 2 months ago (2016-10-10 22:34:08 UTC) #17
Evan Stade
ok, had an idea and updated the patch accordingly. Break capture *after* the screenshot session. ...
4 years, 2 months ago (2016-10-11 00:30:04 UTC) #18
Evan Stade
On 2016/10/11 00:30:04, Evan Stade (ooo till 10-20) wrote: > ok, had an idea and ...
4 years, 2 months ago (2016-10-12 15:08:51 UTC) #23
sky
LGTM - but wait for Oshima
4 years, 2 months ago (2016-10-12 16:24:14 UTC) #24
oshima
thanks, lgtm
4 years, 2 months ago (2016-10-12 17:13:13 UTC) #25
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/2393703002/80001
4 years, 2 months ago (2016-10-14 14:55:19 UTC) #27
commit-bot: I haz the power
Committed patchset #5 (id:80001)
4 years, 2 months ago (2016-10-14 15:26:28 UTC) #28
commit-bot: I haz the power
4 years, 2 months ago (2016-10-14 15:30:03 UTC) #30
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/3be101d020da2ce8eb7c0ab7d92708b8d86acd95
Cr-Commit-Position: refs/heads/master@{#425328}

Powered by Google App Engine
This is Rietveld 408576698