DescriptionMacViews: Fix failing mouse capture unittests.
This CL implements NativeWidgetPrivate::GetGlobalCapture for NativeWidgetMac.
This was added in crrev.com/1953753002. This fixes the following three unittests
which fail on MacViews:
-WidgetTest.MousePressCausesCapture
-WidgetTest.CaptureDuringMousePressNotOverridden
-MenuRunnerTest.WidgetDoesntTakeCapture
This CL also fixes the EventGeneratorDelegateMac::CenterOfWindow implementation
which incorrectly returns the center point in screen coordinates while other
EventGeneratorDelegateMac methods assume the window coordinates as the root
coordinate system. This is needed for the three tests above to pass, since they
don't specify an explicit event location for the EventGenerator.
BUG=622979, 607403
Committed: https://crrev.com/d3ce4a9c327dcacf9a50792218fb79a794dae518
Cr-Commit-Position: refs/heads/master@{#402388}
Patch Set 1 #
Total comments: 1
Patch Set 2 : Rebase #
Total comments: 2
Patch Set 3 : Address review comments. #Patch Set 4 : Rebase. #Patch Set 5 : Enable tests. #
Depends on Patchset: Messages
Total messages: 20 (12 generated)
|