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