DescriptionPDF Viewer - Show context menu for links on right click
Currently context menu for page is shown when right clicked
on links in the pdf. This happens because an empty string is
returned as url to ContextMenuClientImpl::showContextMenu()
from plugin.
The reason for above is that GetLinkAtPosition() isn't passing
a point in page coordinates to GetCharIndex() and GetCharIndex()
expects the point to be in page coordinate. This means that when
the document is zoomed or scrolled and right click is done then
it doesn't work.
This patch updates the point passed to GetCharIndex() to be in
page coordinates by factoring in current position and zoom level.
BUG=148665
Committed: https://crrev.com/47ddc0fca1e5944965866ac55844515a28d2d022
Cr-Commit-Position: refs/heads/master@{#294256}
Patch Set 1 #
Total comments: 2
Patch Set 2 : Review feedback (update GetLinkAtPosition()) #Messages
Total messages: 18 (4 generated)
|