Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(62)

Side by Side Diff: pdf/pdfium/pdfium_engine.h

Issue 1953053002: Add private PPAPI interfaces for PDFium accessibility. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address feedback and run git cl format Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pdf/pdf_engine.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PDF_PDFIUM_PDFIUM_ENGINE_H_ 5 #ifndef PDF_PDFIUM_PDFIUM_ENGINE_H_
6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_ 6 #define PDF_PDFIUM_PDFIUM_ENGINE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void RotateCounterclockwise() override; 77 void RotateCounterclockwise() override;
78 std::string GetSelectedText() override; 78 std::string GetSelectedText() override;
79 std::string GetLinkAtPosition(const pp::Point& point) override; 79 std::string GetLinkAtPosition(const pp::Point& point) override;
80 bool HasPermission(DocumentPermission permission) const override; 80 bool HasPermission(DocumentPermission permission) const override;
81 void SelectAll() override; 81 void SelectAll() override;
82 int GetNumberOfPages() override; 82 int GetNumberOfPages() override;
83 pp::VarArray GetBookmarks() override; 83 pp::VarArray GetBookmarks() override;
84 int GetNamedDestinationPage(const std::string& destination) override; 84 int GetNamedDestinationPage(const std::string& destination) override;
85 int GetMostVisiblePage() override; 85 int GetMostVisiblePage() override;
86 pp::Rect GetPageRect(int index) override; 86 pp::Rect GetPageRect(int index) override;
87 pp::Rect GetPageBoundsRect(int index) override;
87 pp::Rect GetPageContentsRect(int index) override; 88 pp::Rect GetPageContentsRect(int index) override;
88 pp::Rect GetPageScreenRect(int page_index) const override; 89 pp::Rect GetPageScreenRect(int page_index) const override;
89 int GetVerticalScrollbarYPosition() override { return position_.y(); } 90 int GetVerticalScrollbarYPosition() override { return position_.y(); }
90 void SetGrayscale(bool grayscale) override; 91 void SetGrayscale(bool grayscale) override;
91 void OnCallback(int id) override; 92 void OnCallback(int id) override;
92 std::string GetPageAsJSON(int index) override; 93 std::string GetPageAsJSON(int index) override;
94 int GetCharCount(int page_index) override;
95 double GetCharWidth(int page_index, int char_index) override;
96 uint32_t GetCharUnicode(int page_index, int char_index) override;
97 void GetTextRunInfo(int page_index,
98 int start_char_index,
99 uint32_t* out_len,
100 double* out_font_size,
101 pp::FloatRect* out_bounds) override;
93 bool GetPrintScaling() override; 102 bool GetPrintScaling() override;
94 int GetCopiesToPrint() override; 103 int GetCopiesToPrint() override;
95 int GetDuplexType() override; 104 int GetDuplexType() override;
96 bool GetPageSizeAndUniformity(pp::Size* size) override; 105 bool GetPageSizeAndUniformity(pp::Size* size) override;
97 void AppendBlankPages(int num_pages) override; 106 void AppendBlankPages(int num_pages) override;
98 void AppendPage(PDFEngine* engine, int index) override; 107 void AppendPage(PDFEngine* engine, int index) override;
99 pp::Point GetScrollPosition() override; 108 pp::Point GetScrollPosition() override;
100 void SetScrollPosition(const pp::Point& position) override; 109 void SetScrollPosition(const pp::Point& position) override;
101 bool IsProgressiveLoad() override; 110 bool IsProgressiveLoad() override;
102 std::string GetMetadata(const std::string& key) override; 111 std::string GetMetadata(const std::string& key) override;
(...skipping 641 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 bool GetPDFPageSizeByIndex(const void* pdf_buffer, 753 bool GetPDFPageSizeByIndex(const void* pdf_buffer,
745 int pdf_buffer_size, 754 int pdf_buffer_size,
746 int page_number, 755 int page_number,
747 double* width, 756 double* width,
748 double* height) override; 757 double* height) override;
749 }; 758 };
750 759
751 } // namespace chrome_pdf 760 } // namespace chrome_pdf
752 761
753 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 762 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW
« no previous file with comments | « pdf/pdf_engine.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698