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 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
432 | 432 |
433 // Called when the selection changes. | 433 // Called when the selection changes. |
434 void OnSelectionChanged(); | 434 void OnSelectionChanged(); |
435 | 435 |
436 // Common code shared by RotateClockwise() and RotateCounterclockwise(). | 436 // Common code shared by RotateClockwise() and RotateCounterclockwise(). |
437 void RotateInternal(); | 437 void RotateInternal(); |
438 | 438 |
439 // Setting selection status of document. | 439 // Setting selection status of document. |
440 void SetSelecting(bool selecting); | 440 void SetSelecting(bool selecting); |
441 | 441 |
| 442 bool PageIndexInBounds(int index) const; |
| 443 |
442 // FPDF_FORMFILLINFO callbacks. | 444 // FPDF_FORMFILLINFO callbacks. |
443 static void Form_Invalidate(FPDF_FORMFILLINFO* param, | 445 static void Form_Invalidate(FPDF_FORMFILLINFO* param, |
444 FPDF_PAGE page, | 446 FPDF_PAGE page, |
445 double left, | 447 double left, |
446 double top, | 448 double top, |
447 double right, | 449 double right, |
448 double bottom); | 450 double bottom); |
449 static void Form_OutputSelectedRect(FPDF_FORMFILLINFO* param, | 451 static void Form_OutputSelectedRect(FPDF_FORMFILLINFO* param, |
450 FPDF_PAGE page, | 452 FPDF_PAGE page, |
451 double left, | 453 double left, |
(...skipping 336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
788 bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 790 bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
789 int pdf_buffer_size, | 791 int pdf_buffer_size, |
790 int page_number, | 792 int page_number, |
791 double* width, | 793 double* width, |
792 double* height) override; | 794 double* height) override; |
793 }; | 795 }; |
794 | 796 |
795 } // namespace chrome_pdf | 797 } // namespace chrome_pdf |
796 | 798 |
797 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ | 799 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ |
OLD | NEW |