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 681 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 // been called. Only after that can we call FORM_DoPageAAction. | 692 // been called. Only after that can we call FORM_DoPageAAction. |
693 bool called_do_document_action_; | 693 bool called_do_document_action_; |
694 | 694 |
695 // Records parts of form fields that need to be highlighted at next paint, in | 695 // Records parts of form fields that need to be highlighted at next paint, in |
696 // screen coordinates. | 696 // screen coordinates. |
697 std::vector<pp::Rect> form_highlights_; | 697 std::vector<pp::Rect> form_highlights_; |
698 | 698 |
699 // Whether to render in grayscale or in color. | 699 // Whether to render in grayscale or in color. |
700 bool render_grayscale_; | 700 bool render_grayscale_; |
701 | 701 |
| 702 // Whether to render PDF annotations. |
| 703 bool render_annots_; |
| 704 |
702 // The link currently under the cursor. | 705 // The link currently under the cursor. |
703 std::string link_under_cursor_; | 706 std::string link_under_cursor_; |
704 | 707 |
705 // Pending progressive paints. | 708 // Pending progressive paints. |
706 struct ProgressivePaint { | 709 struct ProgressivePaint { |
707 pp::Rect rect; // In screen coordinates. | 710 pp::Rect rect; // In screen coordinates. |
708 FPDF_BITMAP bitmap; | 711 FPDF_BITMAP bitmap; |
709 int page_index; | 712 int page_index; |
710 // Temporary used to figure out if in a series of Paint() calls whether this | 713 // Temporary used to figure out if in a series of Paint() calls whether this |
711 // pending paint was updated or not. | 714 // pending paint was updated or not. |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
769 bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 772 bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
770 int pdf_buffer_size, | 773 int pdf_buffer_size, |
771 int page_number, | 774 int page_number, |
772 double* width, | 775 double* width, |
773 double* height) override; | 776 double* height) override; |
774 }; | 777 }; |
775 | 778 |
776 } // namespace chrome_pdf | 779 } // namespace chrome_pdf |
777 | 780 |
778 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ | 781 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ |
OLD | NEW |