OLD | NEW |
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 GetPageContentsRect(int index) override; | 87 pp::Rect GetPageContentsRect(int index) override; |
88 pp::Rect GetPageScreenRect(int page_index) const override; | 88 pp::Rect GetPageScreenRect(int page_index) const override; |
89 int GetVerticalScrollbarYPosition() override { return position_.y(); } | 89 int GetVerticalScrollbarYPosition() override { return position_.y(); } |
90 void SetGrayscale(bool grayscale) override; | 90 void SetGrayscale(bool grayscale) override; |
91 void OnCallback(int id) override; | 91 void OnCallback(int id) override; |
92 std::string GetPageAsJSON(int index) override; | 92 std::string GetPageAsJSON(int index) override; |
| 93 void EnableAccessibility() override; |
93 bool GetPrintScaling() override; | 94 bool GetPrintScaling() override; |
94 int GetCopiesToPrint() override; | 95 int GetCopiesToPrint() override; |
95 int GetDuplexType() override; | 96 int GetDuplexType() override; |
96 bool GetPageSizeAndUniformity(pp::Size* size) override; | 97 bool GetPageSizeAndUniformity(pp::Size* size) override; |
97 void AppendBlankPages(int num_pages) override; | 98 void AppendBlankPages(int num_pages) override; |
98 void AppendPage(PDFEngine* engine, int index) override; | 99 void AppendPage(PDFEngine* engine, int index) override; |
99 pp::Point GetScrollPosition() override; | 100 pp::Point GetScrollPosition() override; |
100 void SetScrollPosition(const pp::Point& position) override; | 101 void SetScrollPosition(const pp::Point& position) override; |
101 bool IsProgressiveLoad() override; | 102 bool IsProgressiveLoad() override; |
102 std::string GetMetadata(const std::string& key) override; | 103 std::string GetMetadata(const std::string& key) override; |
(...skipping 645 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
748 bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 749 bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
749 int pdf_buffer_size, | 750 int pdf_buffer_size, |
750 int page_number, | 751 int page_number, |
751 double* width, | 752 double* width, |
752 double* height) override; | 753 double* height) override; |
753 }; | 754 }; |
754 | 755 |
755 } // namespace chrome_pdf | 756 } // namespace chrome_pdf |
756 | 757 |
757 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ | 758 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ |
OLD | NEW |