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

Issue 2483063002: Improves focus/activation for aura-mus and DesktopNativeWidgetAura (Closed)

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

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}

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: 10 (4 generated)
sky
4 years, 1 month ago (2016-11-07 23:30:37 UTC) #1
Ben Goodger (Google)
lgtm
4 years, 1 month ago (2016-11-07 23:33:57 UTC) #4
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/2483063002/1
4 years, 1 month ago (2016-11-07 23:35:57 UTC) #6
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 1 month ago (2016-11-08 01:28:41 UTC) #7
commit-bot: I haz the power
Patchset 1 (id:??) landed as https://crrev.com/3b82d5c5307d2ae7e25243efa006eb13fd631d92 Cr-Commit-Position: refs/heads/master@{#430464}
4 years, 1 month ago (2016-11-08 01:38:00 UTC) #9
perkj_chrome
4 years, 1 month ago (2016-11-08 09:36:16 UTC) #10
Message was sent while issue was closed.
A revert of this CL (patchset #1 id:1) has been created in
https://codereview.chromium.org/2480273003/ by perkj@chromium.org.

The reason for reverting is: 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...

FocusTraversalTest.TraversalWithInvisibleViews
FocusTraversalTest.NormalTraversalMac
FocusTraversalTest.PaneTraversal
FocusTraversalTest.FullKeyboardToggle
FocusTraversalTest.TraversalWithNonEnabledViews
FocusTraversalTest.NormalTraversal
 .

Powered by Google App Engine
This is Rietveld 408576698