Chromium Code Reviews
DescriptionEnsure that in Desktop AURA the WindowModalityController class is at the head of the event pre target handlers list.
This ensures that it handles input events first when modal windows are at the top of the Zorder.
This logic has been added to the DesktopNativeWidgetAura::InstallWindowModalityController function which is called by the
DesktopRootWindowHost implementations on windows and linux when the root window is created.
The logic in ash shell.cc has also been changed to instantiate the WindowModalityController object at the beginning. The
class WindowModalityController now takes the EventTarget as an argument in its ctor and adds itself to the pre target
list. Added a DCHECK here to check if the pre target list in the EventTarget is empty. The WindowModalityController removes
itself from the pre target list in its dtor.
BUG=299662
R=sky@chromium.org, sky
TEST=Covered by Desktop AURA widget test WindowMouseModalityTest
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=226609
Patch Set 1 #
Total comments: 2
Patch Set 2 : #
Total comments: 4
Patch Set 3 : #Messages
Total messages: 7 (0 generated)
|