summaryrefslogtreecommitdiff
path: root/chromium/pdf/pdf_engine.h
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-12 14:27:29 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2020-10-13 09:35:20 +0000
commitc30a6232df03e1efbd9f3b226777b07e087a1122 (patch)
treee992f45784689f373bcc38d1b79a239ebe17ee23 /chromium/pdf/pdf_engine.h
parent7b5b123ac58f58ffde0f4f6e488bcd09aa4decd3 (diff)
downloadqtwebengine-chromium-c30a6232df03e1efbd9f3b226777b07e087a1122.tar.gz
BASELINE: Update Chromium to 85.0.4183.14085-based
Change-Id: Iaa42f4680837c57725b1344f108c0196741f6057 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/pdf/pdf_engine.h')
-rw-r--r--chromium/pdf/pdf_engine.h15
1 files changed, 13 insertions, 2 deletions
diff --git a/chromium/pdf/pdf_engine.h b/chromium/pdf/pdf_engine.h
index 514e82ea49c..0b4babcdf9e 100644
--- a/chromium/pdf/pdf_engine.h
+++ b/chromium/pdf/pdf_engine.h
@@ -56,6 +56,7 @@ class VarDictionary;
namespace chrome_pdf {
+struct DocumentAttachmentInfo;
struct DocumentMetadata;
// Do one time initialization of the SDK.
@@ -176,6 +177,8 @@ class PDFEngine {
// Updates the index of the currently selected search item.
virtual void NotifySelectedFindResultChanged(int current_find_index) {}
+ virtual void NotifyTouchSelectionOccurred() {}
+
// Prompts the user for a password to open this document. The callback is
// called when the password is retrieved.
virtual void GetDocumentPassword(
@@ -258,12 +261,15 @@ class PDFEngine {
virtual void SelectionChanged(const pp::Rect& left, const pp::Rect& right) {
}
- // Sets edit mode state.
- virtual void IsEditModeChanged(bool is_edit_mode) {}
+ // Notifies the client that the PDF has been edited.
+ virtual void EnteredEditMode() {}
// Gets the height of the top toolbar in screen coordinates. This is
// independent of whether it is hidden or not at the moment.
virtual float GetToolbarHeightInScreenCoords() = 0;
+
+ // Notifies the client about focus changes for the document.
+ virtual void DocumentFocusChanged(bool document_has_focus) {}
};
struct AccessibilityLinkInfo {
@@ -283,6 +289,7 @@ class PDFEngine {
int char_count;
pp::FloatRect bounds;
uint32_t color;
+ std::string note_text;
};
struct AccessibilityTextFieldInfo {
@@ -336,6 +343,7 @@ class PDFEngine {
virtual void RotateClockwise() = 0;
virtual void RotateCounterclockwise() = 0;
virtual void SetTwoUpView(bool enable) = 0;
+ virtual void DisplayAnnotations(bool display) = 0;
// Applies the document layout options proposed by a call to
// PDFEngine::Client::ProposeDocumentLayout(), returning the overall size of
@@ -365,6 +373,9 @@ class PDFEngine {
// Checks the permissions associated with this document.
virtual bool HasPermission(DocumentPermission permission) const = 0;
virtual void SelectAll() = 0;
+ // Gets the list of DocumentAttachmentInfo from the document.
+ virtual const std::vector<DocumentAttachmentInfo>&
+ GetDocumentAttachmentInfoList() const = 0;
// Gets metadata about the document.
virtual const DocumentMetadata& GetDocumentMetadata() const = 0;
// Gets the number of pages in the document.