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

Issue 2918343003: [Reland] desktop_aura: do not restore focused view if it has modal transient child (Closed)

Created:
3 years, 6 months ago by Qiang(Joe) Xu
Modified:
3 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews, tfarina
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Reland] desktop_aura: do not restore focused view if it has modal transient child Reland changes: Disable the test coverage on OS_WIN for now, so that further investigation can be done separately. Changes: RestoreFocusedView on DesktopNativeWidgetAura::HandleActivationChanged is added to process Linux desktop native widget asynchronous activation. This works when all the child widgets are managed by top level's FocusManager. However, this is not true for modal transient child, whose FocusManager is not the same as top level's FocusManager. In this case on activation, we shall not restore focused view on top level's FocusManager. Instead, the modal transient child window will get activated and restore focused view through its own NativeWidgetAura::OnWindowActivated. BUG=727641 TEST=emulator test saw bug fixed and added test coverage Review-Url: https://codereview.chromium.org/2919973002 Cr-Commit-Position: refs/heads/master@{#476835} Committed: https://chromium.googlesource.com/chromium/src/+/81ead2ab2380d5f624b9ce63df050a76de134f06 patch from issue 2919973002 at patchset 40001 (http://crrev.com/2919973002#ps40001) Review-Url: https://codereview.chromium.org/2918343003 Cr-Commit-Position: refs/heads/master@{#477087} Committed: https://chromium.googlesource.com/chromium/src/+/ce9f58e951b6b5328e5517d425a2a76350cfd2cf

Patch Set 1 : baseline #

Patch Set 2 : disable OS_WIN #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -5 lines) Patch
M ui/views/widget/desktop_aura/desktop_native_widget_aura.cc View 1 chunk +12 lines, -5 lines 0 comments Download
M ui/views/widget/widget_interactive_uitest.cc View 1 1 chunk +47 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (9 generated)
Qiang(Joe) Xu
Hi sky@, PTAL The flakiness is not locally reproducible. I decided to disable the test ...
3 years, 6 months ago (2017-06-05 19:45:43 UTC) #5
sky
LGTM
3 years, 6 months ago (2017-06-05 21:13:57 UTC) #8
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/2918343003/20001
3 years, 6 months ago (2017-06-05 21:16:23 UTC) #10
commit-bot: I haz the power
3 years, 6 months ago (2017-06-05 21:23:13 UTC) #13
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/ce9f58e951b6b5328e5517d425a2...

Powered by Google App Engine
This is Rietveld 408576698