Chromium Code Reviews
Description[MacViews] Fix AccessiblePaneViewTest.SetPaneFocusAndRestore.
Fake out key status to make Widget::Activate/IsActive work in the unit test.
If-def out the part that requires Widget::Deactivate as it's not supported on
Mac.
The test was also failing because Mac checks WidgetDelegate::CanActivate()
when activating whereas NativeWidgetAura defers this to `ShouldActivate`
which is only checked by wm::BaseFocusRules.
Also improve c/b/ui/test/scoped_fake_nswindow_main_status to handle
key status as well and move it to ui/base/test/.
BUG=378134
Committed: https://crrev.com/24869918ffc61b2a29e7a8b23d9120e13c3404fd
Cr-Commit-Position: refs/heads/master@{#342289}
Patch Set 1 #Patch Set 2 : Similarity=10 #Patch Set 3 : Remove dependent patch. #
Total comments: 22
Patch Set 4 : Address comments. #
Total comments: 4
Patch Set 5 : Address comments. #Patch Set 6 : Address comments. #Patch Set 7 : Remove blank line. #
Total comments: 6
Patch Set 8 : Address comments. #
Total comments: 2
Patch Set 9 : Remove roque delta. #Messages
Total messages: 24 (6 generated)
|