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 <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <utility> | 10 #include <utility> |
(...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
416 pp::ImageData* image_data, | 416 pp::ImageData* image_data, |
417 void** region, | 417 void** region, |
418 int* stride) const; | 418 int* stride) const; |
419 | 419 |
420 // Called when the selection changes. | 420 // Called when the selection changes. |
421 void OnSelectionChanged(); | 421 void OnSelectionChanged(); |
422 | 422 |
423 // Common code shared by RotateClockwise() and RotateCounterclockwise(). | 423 // Common code shared by RotateClockwise() and RotateCounterclockwise(). |
424 void RotateInternal(); | 424 void RotateInternal(); |
425 | 425 |
| 426 // Setting selection status of document. |
| 427 void SetSelecting(bool selecting); |
| 428 |
426 // FPDF_FORMFILLINFO callbacks. | 429 // FPDF_FORMFILLINFO callbacks. |
427 static void Form_Invalidate(FPDF_FORMFILLINFO* param, | 430 static void Form_Invalidate(FPDF_FORMFILLINFO* param, |
428 FPDF_PAGE page, | 431 FPDF_PAGE page, |
429 double left, | 432 double left, |
430 double top, | 433 double top, |
431 double right, | 434 double right, |
432 double bottom); | 435 double bottom); |
433 static void Form_OutputSelectedRect(FPDF_FORMFILLINFO* param, | 436 static void Form_OutputSelectedRect(FPDF_FORMFILLINFO* param, |
434 FPDF_PAGE page, | 437 FPDF_PAGE page, |
435 double left, | 438 double left, |
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
747 | 750 |
748 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. | 751 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. |
749 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 752 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
750 int pdf_buffer_size, int page_number, | 753 int pdf_buffer_size, int page_number, |
751 double* width, double* height); | 754 double* width, double* height); |
752 }; | 755 }; |
753 | 756 |
754 } // namespace chrome_pdf | 757 } // namespace chrome_pdf |
755 | 758 |
756 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ | 759 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ |
OLD | NEW |