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

Issue 2488723002: Reland of Improves focus/activation for aura-mus and DesktopNativeWidgetAura (Closed)

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

Description

Reland of Improves focus/activation for aura-mus and DesktopNativeWidgetAura (patchset #1 id:1 of https://codereview.chromium.org/2480273003/ ) Reason for revert: Relanding this. The real culprit was https://codereview.chromium.org/2484203002/ Original issue's description: > Revert of Improves focus/activation for aura-mus and DesktopNativeWidgetAura (patchset #1 id:1 of https://codereview.chromium.org/2483063002/ ) > > Reason for revert: > Seems to cause heap use after free on tests in Mac Asan 10.9. > > https://build.chromium.org/p/chromium.memory/builders/Mac%20ASan%2064%20Tests%20%281%29/builds/23999 > > FocusTraversalTest.TraversalWithInvisibleViews > FocusTraversalTest.NormalTraversalMac > FocusTraversalTest.PaneTraversal > FocusTraversalTest.FullKeyboardToggle > FocusTraversalTest.TraversalWithNonEnabledViews > FocusTraversalTest.NormalTraversal > > Original issue's description: > > Improves focus/activation for aura-mus and DesktopNativeWidgetAura > > > > When using DesktopNativeWidgetAura there is a FocusClient per > > DesktopNativeWidgetAura. Aura-mus was assuming there would be a global > > FocusClient, but that's painful for DesktopNativeWidgetAura. So, this > > makes aura-mus work with multiple FocusClients. Specifically this does > > the following: > > > > Env gets a function to track the active FocusClient. Env doesn't > > maintain this, it's assuming others will. In particular > > DesktopWindowTreeHostMus and WindowTreeClient makes call to it. > > > > Focus logic moves out of WindowTreeClient and into > > FocusSynchronizer. FocusSynchronizer adds itself as an EnvObserserver > > to track when the active FocusClient changes so that it can update the > > server. > > > > BUG=660994 > > TEST=covered by tests > > R=ben@chromium.org > > > > Committed: https://crrev.com/3b82d5c5307d2ae7e25243efa006eb13fd631d92 > > Cr-Commit-Position: refs/heads/master@{#430464} > > TBR=ben@chromium.org,sky@chromium.org > # Skipping CQ checks because original CL landed less than 1 days ago. > NOPRESUBMIT=true > NOTREECHECKS=true > NOTRY=true > BUG=660994 > > Committed: https://crrev.com/3e652a8cbbe2991e34e65cbb7635bc3d89db19f4 > Cr-Commit-Position: refs/heads/master@{#430556} TBR=ben@chromium.org,sky@chromium.org # Skipping CQ checks because original CL landed less than 1 days ago. NOPRESUBMIT=true NOTREECHECKS=true NOTRY=true BUG=660994 Committed: https://crrev.com/df1ac6bd6c88b6861c86fc6b3148930d0948b92d Cr-Commit-Position: refs/heads/master@{#430620}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+364 lines, -131 lines) Patch
M ui/aura/BUILD.gn View 1 chunk +3 lines, -0 lines 0 comments Download
M ui/aura/client/focus_client.h View 2 chunks +4 lines, -4 lines 0 comments Download
M ui/aura/client/focus_client.cc View 2 chunks +4 lines, -5 lines 0 comments Download
M ui/aura/env.h View 4 chunks +21 lines, -0 lines 0 comments Download
M ui/aura/env.cc View 4 chunks +55 lines, -0 lines 0 comments Download
M ui/aura/env_observer.h View 2 chunks +8 lines, -0 lines 0 comments Download
A ui/aura/mus/focus_synchronizer.h View 1 chunk +72 lines, -0 lines 0 comments Download
A ui/aura/mus/focus_synchronizer.cc View 1 chunk +98 lines, -0 lines 0 comments Download
A ui/aura/mus/focus_synchronizer_delegate.h View 1 chunk +28 lines, -0 lines 0 comments Download
M ui/aura/mus/in_flight_change.h View 2 chunks +6 lines, -1 line 0 comments Download
M ui/aura/mus/in_flight_change.cc View 2 chunks +5 lines, -2 lines 0 comments Download
M ui/aura/mus/window_tree_client.h View 8 chunks +7 lines, -16 lines 0 comments Download
M ui/aura/mus/window_tree_client.cc View 11 chunks +14 lines, -58 lines 0 comments Download
M ui/aura/mus/window_tree_client_delegate.h View 2 chunks +0 lines, -5 lines 0 comments Download
M ui/aura/test/aura_test_base.h View 1 chunk +0 lines, -1 line 0 comments Download
M ui/aura/test/aura_test_base.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M ui/aura/test/aura_test_helper.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.h View 4 chunks +10 lines, -1 line 0 comments Download
M ui/views/mus/desktop_window_tree_host_mus.cc View 4 chunks +27 lines, -6 lines 0 comments Download
M ui/views/mus/mus_client.h View 3 chunks +0 lines, -4 lines 0 comments Download
M ui/views/mus/mus_client.cc View 3 chunks +0 lines, -24 lines 0 comments Download

Messages

Total messages: 6 (2 generated)
perkj_chrome
Created Reland of Improves focus/activation for aura-mus and DesktopNativeWidgetAura
4 years, 1 month ago (2016-11-08 15:35:37 UTC) #2
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/2488723002/1
4 years, 1 month ago (2016-11-08 15:35:48 UTC) #3
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-08 15:37:53 UTC) #4
commit-bot: I haz the power
4 years, 1 month ago (2016-11-08 15:42:00 UTC) #6
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/df1ac6bd6c88b6861c86fc6b3148930d0948b92d
Cr-Commit-Position: refs/heads/master@{#430620}

Powered by Google App Engine
This is Rietveld 408576698