| 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 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 { return position_.y(); } |
| 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 std::string GetPageAsJSON(int index) override; | 93 std::string GetPageAsJSON(int index) override; |
| 94 int GetCharCount(int page_index) override; | 94 int GetCharCount(int page_index) override; |
| 95 double GetCharWidth(int page_index, int char_index) override; | 95 pp::FloatRect GetCharBounds(int page_index, int char_index) override; |
| 96 uint32_t GetCharUnicode(int page_index, int char_index) override; | 96 uint32_t GetCharUnicode(int page_index, int char_index) override; |
| 97 void GetTextRunInfo(int page_index, | 97 void GetTextRunInfo(int page_index, |
| 98 int start_char_index, | 98 int start_char_index, |
| 99 uint32_t* out_len, | 99 uint32_t* out_len, |
| 100 double* out_font_size, | 100 double* out_font_size, |
| 101 pp::FloatRect* out_bounds) override; | 101 pp::FloatRect* out_bounds) override; |
| 102 bool GetPrintScaling() override; | 102 bool GetPrintScaling() override; |
| 103 int GetCopiesToPrint() override; | 103 int GetCopiesToPrint() override; |
| 104 int GetDuplexType() override; | 104 int GetDuplexType() override; |
| 105 bool GetPageSizeAndUniformity(pp::Size* size) override; | 105 bool GetPageSizeAndUniformity(pp::Size* size) override; |
| (...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 753 bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 753 bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
| 754 int pdf_buffer_size, | 754 int pdf_buffer_size, |
| 755 int page_number, | 755 int page_number, |
| 756 double* width, | 756 double* width, |
| 757 double* height) override; | 757 double* height) override; |
| 758 }; | 758 }; |
| 759 | 759 |
| 760 } // namespace chrome_pdf | 760 } // namespace chrome_pdf |
| 761 | 761 |
| 762 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ | 762 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ |
| OLD | NEW |