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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 GetPageBoundsRect(int index) override; |
88 pp::Rect GetPageContentsRect(int index) override; | 88 pp::Rect GetPageContentsRect(int index) override; |
89 pp::Rect GetPageScreenRect(int page_index) const override; | 89 pp::Rect GetPageScreenRect(int page_index) const override; |
90 int GetVerticalScrollbarYPosition() override { return position_.y(); } | 90 int GetVerticalScrollbarYPosition() override; |
91 void SetGrayscale(bool grayscale) override; | 91 void SetGrayscale(bool grayscale) override; |
92 void OnCallback(int id) override; | 92 void OnCallback(int id) override; |
93 int GetCharCount(int page_index) override; | 93 int GetCharCount(int page_index) override; |
94 pp::FloatRect GetCharBounds(int page_index, int char_index) override; | 94 pp::FloatRect GetCharBounds(int page_index, int char_index) override; |
95 uint32_t GetCharUnicode(int page_index, int char_index) override; | 95 uint32_t GetCharUnicode(int page_index, int char_index) override; |
96 void GetTextRunInfo(int page_index, | 96 void GetTextRunInfo(int page_index, |
97 int start_char_index, | 97 int start_char_index, |
98 uint32_t* out_len, | 98 uint32_t* out_len, |
99 double* out_font_size, | 99 double* out_font_size, |
100 pp::FloatRect* out_bounds) override; | 100 pp::FloatRect* out_bounds) override; |
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
755 bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 755 bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
756 int pdf_buffer_size, | 756 int pdf_buffer_size, |
757 int page_number, | 757 int page_number, |
758 double* width, | 758 double* width, |
759 double* height) override; | 759 double* height) override; |
760 }; | 760 }; |
761 | 761 |
762 } // namespace chrome_pdf | 762 } // namespace chrome_pdf |
763 | 763 |
764 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ | 764 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ |
OLD | NEW |