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

Issue 2468493002: Fix bug in keeping capture in sync during destruction (Closed)

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

Description

Fix bug in keeping capture in sync during destruction It's possible when capture is lost the window losing focus gets destroyed. This patch guards against that by not relying on the lost_capture window, instead CaptureControllerMus adds itself as an observer for the window with focus and if that window is destroyed resets state. In hopes of keeping the size of WindowTreeClient down I moved capture code into its own class. Test for this will come when aura tests are parameterized to work with both backends. BUG=659155 TEST=none R=msw@chromium.org Committed: https://crrev.com/e865fb99e4e29280049bc397cdb27e61adce4700 Cr-Commit-Position: refs/heads/master@{#428794}

Patch Set 1 #

Patch Set 2 : cleanup #

Patch Set 3 : sync #

Total comments: 6

Patch Set 4 : feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -73 lines) Patch
M ui/aura/BUILD.gn View 1 1 chunk +3 lines, -0 lines 0 comments Download
A ui/aura/mus/capture_synchronizer.h View 1 2 3 1 chunk +74 lines, -0 lines 0 comments Download
A ui/aura/mus/capture_synchronizer.cc View 1 2 3 1 chunk +81 lines, -0 lines 0 comments Download
A ui/aura/mus/capture_synchronizer_delegate.h View 1 1 chunk +28 lines, -0 lines 0 comments Download
M ui/aura/mus/in_flight_change.h View 1 2 2 chunks +5 lines, -1 line 0 comments Download
M ui/aura/mus/in_flight_change.cc View 1 2 2 chunks +8 lines, -6 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 1 10 chunks +10 lines, -16 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 1 11 chunks +22 lines, -46 lines 0 comments Download
M ui/aura/mus/window_tree_client_unittest.cc View 2 chunks +5 lines, -3 lines 0 comments Download
M ui/aura/test/mus/window_tree_client_private.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 17 (9 generated)
sky
4 years, 1 month ago (2016-10-31 16:33:58 UTC) #1
msw
lgtm with minor comment nits. https://codereview.chromium.org/2468493002/diff/40001/ui/aura/mus/capture_synchronizer.cc File ui/aura/mus/capture_synchronizer.cc (right): https://codereview.chromium.org/2468493002/diff/40001/ui/aura/mus/capture_synchronizer.cc#newcode35 ui/aura/mus/capture_synchronizer.cc:35: // Don't immediatley set ...
4 years, 1 month ago (2016-10-31 17:56:21 UTC) #6
sky
https://codereview.chromium.org/2468493002/diff/40001/ui/aura/mus/capture_synchronizer.cc File ui/aura/mus/capture_synchronizer.cc (right): https://codereview.chromium.org/2468493002/diff/40001/ui/aura/mus/capture_synchronizer.cc#newcode35 ui/aura/mus/capture_synchronizer.cc:35: // Don't immediatley set |capture_client_|. It's possible the change ...
4 years, 1 month ago (2016-10-31 18:00:32 UTC) #9
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/2468493002/60001
4 years, 1 month ago (2016-10-31 18:00:38 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator/builds/97600)
4 years, 1 month ago (2016-10-31 18:34:49 UTC) #12
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/2468493002/60001
4 years, 1 month ago (2016-10-31 20:05:49 UTC) #14
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 1 month ago (2016-10-31 20:38:04 UTC) #15
commit-bot: I haz the power
4 years, 1 month ago (2016-10-31 20:41:07 UTC) #17
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/e865fb99e4e29280049bc397cdb27e61adce4700
Cr-Commit-Position: refs/heads/master@{#428794}

Powered by Google App Engine
This is Rietveld 408576698