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

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

Issue 2267063002: PDF: Put back removed SetScrollPosition(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 months 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 | « pdf/pdf_engine.h ('k') | 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 <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 int start_char_index, 97 int start_char_index,
98 uint32_t* out_len, 98 uint32_t* out_len,
99 double* out_font_size, 99 double* out_font_size,
100 pp::FloatRect* out_bounds) override; 100 pp::FloatRect* out_bounds) override;
101 bool GetPrintScaling() override; 101 bool GetPrintScaling() override;
102 int GetCopiesToPrint() override; 102 int GetCopiesToPrint() override;
103 int GetDuplexType() override; 103 int GetDuplexType() override;
104 bool GetPageSizeAndUniformity(pp::Size* size) override; 104 bool GetPageSizeAndUniformity(pp::Size* size) override;
105 void AppendBlankPages(int num_pages) override; 105 void AppendBlankPages(int num_pages) override;
106 void AppendPage(PDFEngine* engine, int index) override; 106 void AppendPage(PDFEngine* engine, int index) override;
107 #if defined(PDF_USE_XFA)
108 virtual void SetScrollPosition(const pp::Point& position) = 0;
109 #endif
107 bool IsProgressiveLoad() override; 110 bool IsProgressiveLoad() override;
108 std::string GetMetadata(const std::string& key) override; 111 std::string GetMetadata(const std::string& key) override;
109 112
110 // DocumentLoader::Client implementation. 113 // DocumentLoader::Client implementation.
111 pp::Instance* GetPluginInstance() override; 114 pp::Instance* GetPluginInstance() override;
112 pp::URLLoader CreateURLLoader() override; 115 pp::URLLoader CreateURLLoader() override;
113 void OnPartialDocumentLoaded() override; 116 void OnPartialDocumentLoaded() override;
114 void OnPendingRequestComplete() override; 117 void OnPendingRequestComplete() override;
115 void OnNewDataAvailable() override; 118 void OnNewDataAvailable() override;
116 void OnDocumentComplete() override; 119 void OnDocumentComplete() override;
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 FPDF_BOOL print_as_image, 507 FPDF_BOOL print_as_image,
505 FPDF_BOOL reverse, 508 FPDF_BOOL reverse,
506 FPDF_BOOL annotations); 509 FPDF_BOOL annotations);
507 static void Form_SubmitForm(IPDF_JSPLATFORM* param, 510 static void Form_SubmitForm(IPDF_JSPLATFORM* param,
508 void* form_data, 511 void* form_data,
509 int length, 512 int length,
510 FPDF_WIDESTRING url); 513 FPDF_WIDESTRING url);
511 static void Form_GotoPage(IPDF_JSPLATFORM* param, int page_number); 514 static void Form_GotoPage(IPDF_JSPLATFORM* param, int page_number);
512 static int Form_Browse(IPDF_JSPLATFORM* param, void* file_path, int length); 515 static int Form_Browse(IPDF_JSPLATFORM* param, void* file_path, int length);
513 516
514 #ifdef PDF_USE_XFA 517 #if defined(PDF_USE_XFA)
515 static void Form_EmailTo(FPDF_FORMFILLINFO* param, 518 static void Form_EmailTo(FPDF_FORMFILLINFO* param,
516 FPDF_FILEHANDLER* file_handler, 519 FPDF_FILEHANDLER* file_handler,
517 FPDF_WIDESTRING to, 520 FPDF_WIDESTRING to,
518 FPDF_WIDESTRING subject, 521 FPDF_WIDESTRING subject,
519 FPDF_WIDESTRING cc, 522 FPDF_WIDESTRING cc,
520 FPDF_WIDESTRING bcc, 523 FPDF_WIDESTRING bcc,
521 FPDF_WIDESTRING message); 524 FPDF_WIDESTRING message);
522 static void Form_DisplayCaret(FPDF_FORMFILLINFO* param, 525 static void Form_DisplayCaret(FPDF_FORMFILLINFO* param,
523 FPDF_PAGE page, 526 FPDF_PAGE page,
524 FPDF_BOOL visible, 527 FPDF_BOOL visible,
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 static FPDF_FILEHANDLER* Form_OpenFile(FPDF_FORMFILLINFO* param, 569 static FPDF_FILEHANDLER* Form_OpenFile(FPDF_FORMFILLINFO* param,
567 int file_flag, 570 int file_flag,
568 FPDF_WIDESTRING url, 571 FPDF_WIDESTRING url,
569 const char* mode); 572 const char* mode);
570 static void Form_GotoURL(FPDF_FORMFILLINFO* param, 573 static void Form_GotoURL(FPDF_FORMFILLINFO* param,
571 FPDF_DOCUMENT document, 574 FPDF_DOCUMENT document,
572 FPDF_WIDESTRING url); 575 FPDF_WIDESTRING url);
573 static int Form_GetLanguage(FPDF_FORMFILLINFO* param, 576 static int Form_GetLanguage(FPDF_FORMFILLINFO* param,
574 void* language, 577 void* language,
575 int length); 578 int length);
576 #endif // PDF_USE_XFA 579 #endif // defined(PDF_USE_XFA)
577 580
578 // IFSDK_PAUSE callbacks 581 // IFSDK_PAUSE callbacks
579 static FPDF_BOOL Pause_NeedToPauseNow(IFSDK_PAUSE* param); 582 static FPDF_BOOL Pause_NeedToPauseNow(IFSDK_PAUSE* param);
580 583
581 PDFEngine::Client* const client_; 584 PDFEngine::Client* const client_;
582 pp::Size document_size_; // Size of document in pixels. 585 pp::Size document_size_; // Size of document in pixels.
583 586
584 // The scroll position in screen coordinates. 587 // The scroll position in screen coordinates.
585 pp::Point position_; 588 pp::Point position_;
586 // The offset of the page into the viewport. 589 // The offset of the page into the viewport.
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
752 bool GetPDFPageSizeByIndex(const void* pdf_buffer, 755 bool GetPDFPageSizeByIndex(const void* pdf_buffer,
753 int pdf_buffer_size, 756 int pdf_buffer_size,
754 int page_number, 757 int page_number,
755 double* width, 758 double* width,
756 double* height) override; 759 double* height) override;
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_
OLDNEW
« no previous file with comments | « pdf/pdf_engine.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698