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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 void FitContentsToPrintableAreaIfRequired( | 303 void FitContentsToPrintableAreaIfRequired( |
304 const FPDF_DOCUMENT& doc, | 304 const FPDF_DOCUMENT& doc, |
305 const PP_PrintSettings_Dev& print_settings); | 305 const PP_PrintSettings_Dev& print_settings); |
306 void SaveSelectedFormForPrint(); | 306 void SaveSelectedFormForPrint(); |
307 | 307 |
308 // Given a mouse event, returns which page and character location it's closest | 308 // Given a mouse event, returns which page and character location it's closest |
309 // to. | 309 // to. |
310 PDFiumPage::Area GetCharIndex(const pp::MouseInputEvent& event, | 310 PDFiumPage::Area GetCharIndex(const pp::MouseInputEvent& event, |
311 int* page_index, | 311 int* page_index, |
312 int* char_index, | 312 int* char_index, |
| 313 int* form_type, |
313 PDFiumPage::LinkTarget* target); | 314 PDFiumPage::LinkTarget* target); |
314 PDFiumPage::Area GetCharIndex(const pp::Point& point, | 315 PDFiumPage::Area GetCharIndex(const pp::Point& point, |
315 int* page_index, | 316 int* page_index, |
316 int* char_index, | 317 int* char_index, |
| 318 int* form_type, |
317 PDFiumPage::LinkTarget* target); | 319 PDFiumPage::LinkTarget* target); |
318 | 320 |
319 void OnSingleClick(int page_index, int char_index); | 321 void OnSingleClick(int page_index, int char_index); |
320 void OnMultipleClick(int click_count, int page_index, int char_index); | 322 void OnMultipleClick(int click_count, int page_index, int char_index); |
321 | 323 |
322 // Starts a progressive paint operation given a rectangle in screen | 324 // Starts a progressive paint operation given a rectangle in screen |
323 // coordinates. Returns the index in progressive_rects_. | 325 // coordinates. Returns the index in progressive_rects_. |
324 int StartPaint(int page_index, const pp::Rect& dirty); | 326 int StartPaint(int page_index, const pp::Rect& dirty); |
325 | 327 |
326 // Continues a paint operation that was started earlier. Returns true if the | 328 // Continues a paint operation that was started earlier. Returns true if the |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
749 | 751 |
750 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. | 752 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. |
751 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 753 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
752 int pdf_buffer_size, int page_number, | 754 int pdf_buffer_size, int page_number, |
753 double* width, double* height); | 755 double* width, double* height); |
754 }; | 756 }; |
755 | 757 |
756 } // namespace chrome_pdf | 758 } // namespace chrome_pdf |
757 | 759 |
758 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ | 760 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ |
OLD | NEW |