DescriptionMake PostEventDispatchHandler::OnGestureEvent() only show the
context menu on long press if the events are targetted at a view
which can show the context menu. If a different view is the gesture
handler and the event was targetted at a different view (e.g.
because the maximize button handled ET_GESTURE_TAP_DOWN) the parent
view should not show a context menu on long press.
Previously, we were assuming that events were in the coordinates of
|PostEventDispatchHandler::owner_| and were sometimes passing an
incorrect position to BrowserFrame::ShowContextMenuForView().
BUG=375232
TEST=RootViewTest.ContextMenuFromLongPress
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272907
Patch Set 1 : #
Total comments: 5
Patch Set 2 : #
Messages
Total messages: 19 (0 generated)
|