Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: pdf/pdfium/pdfium_engine.h

Issue 722863002: Add pdf layer code for PDFium XFA module. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 478 matching lines...) Expand 10 before | Expand all | Expand 10 after
489 FPDF_BOOL print_as_image, 489 FPDF_BOOL print_as_image,
490 FPDF_BOOL reverse, 490 FPDF_BOOL reverse,
491 FPDF_BOOL annotations); 491 FPDF_BOOL annotations);
492 static void Form_SubmitForm(IPDF_JSPLATFORM* param, 492 static void Form_SubmitForm(IPDF_JSPLATFORM* param,
493 void* form_data, 493 void* form_data,
494 int length, 494 int length,
495 FPDF_WIDESTRING url); 495 FPDF_WIDESTRING url);
496 static void Form_GotoPage(IPDF_JSPLATFORM* param, int page_number); 496 static void Form_GotoPage(IPDF_JSPLATFORM* param, int page_number);
497 static int Form_Browse(IPDF_JSPLATFORM* param, void* file_path, int length); 497 static int Form_Browse(IPDF_JSPLATFORM* param, void* file_path, int length);
498 498
499 #ifdef PDF_USE_XFA
500 static void Form_EmailTo(FPDF_FORMFILLINFO* param,
501 FPDF_FILEHANDLER* file_handler,
502 FPDF_WIDESTRING to,
503 FPDF_WIDESTRING subject,
504 FPDF_WIDESTRING cc,
505 FPDF_WIDESTRING bcc,
506 FPDF_WIDESTRING message);
507 static void Form_DisplayCaret(FPDF_FORMFILLINFO* param,
508 FPDF_PAGE page,
509 FPDF_BOOL visible,
510 double left,
511 double top,
512 double right,
513 double bottom);
514 static void Form_SetCurrentPage(FPDF_FORMFILLINFO* param,
515 FPDF_DOCUMENT document,
516 int page);
517 static int Form_GetCurrentPageIndex(FPDF_FORMFILLINFO* param,
518 FPDF_DOCUMENT document);
519 static void Form_GetPageViewRect(FPDF_FORMFILLINFO* param,
520 FPDF_PAGE page,
521 double* left,
522 double* top,
523 double* right,
524 double* bottom);
525 static int Form_GetPlatform(FPDF_FORMFILLINFO* param,
526 void* platform,
527 int length);
528 static FPDF_BOOL Form_PopupMenu(FPDF_FORMFILLINFO* param,
529 FPDF_PAGE page,
530 FPDF_WIDGET widget,
531 int menu_flag,
532 float x,
533 float y);
534 static FPDF_BOOL Form_PostRequestURL(FPDF_FORMFILLINFO* param,
535 FPDF_WIDESTRING url,
536 FPDF_WIDESTRING data,
537 FPDF_WIDESTRING content_type,
538 FPDF_WIDESTRING encode,
539 FPDF_WIDESTRING header,
540 FPDF_BSTR* response);
541 static FPDF_BOOL Form_PutRequestURL(FPDF_FORMFILLINFO* param,
542 FPDF_WIDESTRING url,
543 FPDF_WIDESTRING data,
544 FPDF_WIDESTRING encode);
545 static void Form_UploadTo(FPDF_FORMFILLINFO* param,
546 FPDF_FILEHANDLER* file_handler,
547 int file_flag,
548 FPDF_WIDESTRING dest);
549 static FPDF_LPFILEHANDLER Form_DownloadFromURL(FPDF_FORMFILLINFO* param,
550 FPDF_WIDESTRING url);
551 static FPDF_FILEHANDLER* Form_OpenFile(FPDF_FORMFILLINFO* param,
552 int file_flag,
553 FPDF_WIDESTRING url,
554 const char* mode);
555 static void Form_GotoURL(FPDF_FORMFILLINFO* param,
556 FPDF_DOCUMENT document,
557 FPDF_WIDESTRING url);
558 static int Form_GetLanguage(FPDF_FORMFILLINFO* param,
559 void* language,
560 int length);
561 #endif // PDF_USE_XFA
562
499 // IFSDK_PAUSE callbacks 563 // IFSDK_PAUSE callbacks
500 static FPDF_BOOL Pause_NeedToPauseNow(IFSDK_PAUSE* param); 564 static FPDF_BOOL Pause_NeedToPauseNow(IFSDK_PAUSE* param);
501 565
502 PDFEngine::Client* client_; 566 PDFEngine::Client* client_;
503 pp::Size document_size_; // Size of document in pixels. 567 pp::Size document_size_; // Size of document in pixels.
504 568
505 // The scroll position in screen coordinates. 569 // The scroll position in screen coordinates.
506 pp::Point position_; 570 pp::Point position_;
507 // The offset of the page into the viewport. 571 // The offset of the page into the viewport.
508 pp::Point page_offset_; 572 pp::Point page_offset_;
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after
672 736
673 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 737 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
674 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 738 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
675 int pdf_buffer_size, int page_number, 739 int pdf_buffer_size, int page_number,
676 double* width, double* height); 740 double* width, double* height);
677 }; 741 };
678 742
679 } // namespace chrome_pdf 743 } // namespace chrome_pdf
680 744
681 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 745 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698