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 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
661 // Pointer to the document availability interface. | 661 // Pointer to the document availability interface. |
662 FPDF_AVAIL fpdf_availability_; | 662 FPDF_AVAIL fpdf_availability_; |
663 | 663 |
664 pp::Size default_page_size_; | 664 pp::Size default_page_size_; |
665 | 665 |
666 // Used to manage timers that form fill API needs. The pair holds the timer | 666 // Used to manage timers that form fill API needs. The pair holds the timer |
667 // period, in ms, and the callback function. | 667 // period, in ms, and the callback function. |
668 std::map<int, std::pair<int, TimerCallback> > timers_; | 668 std::map<int, std::pair<int, TimerCallback> > timers_; |
669 int next_timer_id_; | 669 int next_timer_id_; |
670 | 670 |
671 // Holds the page index of the last page that the mouse clicked on. | 671 // Holds the zero-based page index of the last page that the mouse clicked on. |
672 int last_page_mouse_down_; | 672 int last_page_mouse_down_; |
673 | 673 |
674 // Holds the page index of the most visible page; refreshed by calling | 674 // Holds the zero-based page index of the most visible page; refreshed by |
675 // CalculateVisiblePages() | 675 // calling CalculateVisiblePages() |
676 int most_visible_page_; | 676 int most_visible_page_; |
677 | 677 |
678 // Set to true after FORM_DoDocumentJSAction/FORM_DoDocumentOpenAction have | 678 // Set to true after FORM_DoDocumentJSAction/FORM_DoDocumentOpenAction have |
679 // been called. Only after that can we call FORM_DoPageAAction. | 679 // been called. Only after that can we call FORM_DoPageAAction. |
680 bool called_do_document_action_; | 680 bool called_do_document_action_; |
681 | 681 |
682 // Records parts of form fields that need to be highlighted at next paint, in | 682 // Records parts of form fields that need to be highlighted at next paint, in |
683 // screen coordinates. | 683 // screen coordinates. |
684 std::vector<pp::Rect> form_highlights_; | 684 std::vector<pp::Rect> form_highlights_; |
685 | 685 |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
752 bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 752 bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
753 int pdf_buffer_size, | 753 int pdf_buffer_size, |
754 int page_number, | 754 int page_number, |
755 double* width, | 755 double* width, |
756 double* height) override; | 756 double* height) override; |
757 }; | 757 }; |
758 | 758 |
759 } // namespace chrome_pdf | 759 } // namespace chrome_pdf |
760 | 760 |
761 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ | 761 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ |
OLD | NEW |