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