DescriptionResume cursor blinking on closing context menu
Currently, we suspend cursor blinking on mouse press and resume it on mouse
release. However, in the case of launching a context menu, we show context
menu immediately on mouse right click press, and the following key events
are consumed on the context menu, so mouse release event does not happen.
Thus, cursor blinking does not get resumed after context menu gets
dismissed.
The rationale for keep suspending caret blinking while showing context
menu, I think, is that once context menu shows, key and mouse events will
be consumed on the context menu on linux. We keep that behavior, and
de-suspend caret blinking when context menu gets closed.
On Linux, we will resume caret blinking in
RenderFrameImpl::OnContextMenuClosed().
On Android, there are two different paths to show context menu:
- paste popup menu (long press on text, on chrome and webview)
- context menu (long press on link, only on chrome)
So we will call WebContents#onContextMenuClosed() from both paths.
BUG=554683
Committed: https://crrev.com/cbfdec91085fba9e23b865c0db6cac2577d3ae44
Cr-Commit-Position: refs/heads/master@{#363360}
Patch Set 1 #Patch Set 2 : resume cursor blinking even when showPastePopup fails #
Total comments: 2
Patch Set 3 : added comment in test #
Total comments: 12
Patch Set 4 : robusted onContextMenuClosed() and fixed nits #Messages
Total messages: 22 (6 generated)
|