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.
[unseasoned-pdf] Introduce common message handling
Add PdfViewPluginBase::HandleMessage() to handle messages from the embedder. Message handlers will be moved from OutOfProcessInstance::HandleMessage() to the common handler. Meanwhile, migrate HandleSetTwoUpViewMessage() as a simple migration example of message handlers. The migrated handlers will also be strict about the shapes of the sent messages, and will crash if an unexpected message is sent. This is fine as the PDF Viewer UI is trusted to send valid messages. Bug: 1109796 Change-Id: I07e103aebf0e941f94d8d7a04c31950631ddd1da Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2653792 Commit-Queue: Daniel Hosseinian <dhoss@chromium.org> Reviewed-by: K. Moon <kmoon@chromium.org> Cr-Commit-Position: refs/heads/master@{#848779}
- Loading branch information
Daniel Hosseinian
authored and
Chromium LUCI CQ
committed
Jan 29, 2021
1 parent
fa5b4f1
commit 39b42c4
Showing
5 changed files
with
43 additions
and
18 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