forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Plumb separate DidScroll message from PDF plugin to embedder.
The change in r509091 added code to notify the embedder whenever the PDF was scrolled so that touch-selection handles, which are drawn by the browser and not the PDF viewer, could have their positions adjusted to match the scroll. This was done by having PDFiumEngine call OnSelectionChanged() for each scroll, which triggers re-sending the selection coordinates to the embedder. However, it seems this also triggers a DCHECK as OnSelectionChanged() should not be called when the selection is in a form area. This CL plumbs an independent pathway from the PDF plugin to the embedder so that this DCHECK can be avoided. Bug: 784932 Change-Id: I8db353f0afa0e8c8bd625735d27e00d58c9b0dac Reviewed-on: https://chromium-review.googlesource.com/782404 Reviewed-by: Ken Buchanan <[email protected]> Reviewed-by: dsinclair <[email protected]> Reviewed-by: Jochen Eisinger <[email protected]> Commit-Queue: James MacLean <[email protected]> Cr-Commit-Position: refs/heads/master@{#518936}
- Loading branch information
W. James MacLean
authored and
Commit Bot
committed
Nov 23, 2017
1 parent
5464476
commit 289948d
Showing
13 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters