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

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

Issue 1552833003: Remove some dead PDF code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 11 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
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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 const PP_PrintSettings_Dev& print_settings) override; 70 const PP_PrintSettings_Dev& print_settings) override;
71 void PrintEnd() override; 71 void PrintEnd() override;
72 void StartFind(const std::string& text, bool case_sensitive) override; 72 void StartFind(const std::string& text, bool case_sensitive) override;
73 bool SelectFindResult(bool forward) override; 73 bool SelectFindResult(bool forward) override;
74 void StopFind() override; 74 void StopFind() override;
75 void ZoomUpdated(double new_zoom_level) override; 75 void ZoomUpdated(double new_zoom_level) override;
76 void RotateClockwise() override; 76 void RotateClockwise() override;
77 void RotateCounterclockwise() override; 77 void RotateCounterclockwise() override;
78 std::string GetSelectedText() override; 78 std::string GetSelectedText() override;
79 std::string GetLinkAtPosition(const pp::Point& point) override; 79 std::string GetLinkAtPosition(const pp::Point& point) override;
80 bool IsSelecting() override;
81 bool HasPermission(DocumentPermission permission) const override; 80 bool HasPermission(DocumentPermission permission) const override;
82 void SelectAll() override; 81 void SelectAll() override;
83 int GetNumberOfPages() override; 82 int GetNumberOfPages() override;
84 pp::VarArray GetBookmarks() override; 83 pp::VarArray GetBookmarks() override;
85 int GetNamedDestinationPage(const std::string& destination) override; 84 int GetNamedDestinationPage(const std::string& destination) override;
86 int GetFirstVisiblePage() override;
87 int GetMostVisiblePage() override; 85 int GetMostVisiblePage() override;
88 pp::Rect GetPageRect(int index) override; 86 pp::Rect GetPageRect(int index) override;
89 pp::Rect GetPageContentsRect(int index) override; 87 pp::Rect GetPageContentsRect(int index) override;
90 pp::Rect GetPageScreenRect(int page_index) const override; 88 pp::Rect GetPageScreenRect(int page_index) const override;
91 int GetVerticalScrollbarYPosition() override { return position_.y(); } 89 int GetVerticalScrollbarYPosition() override { return position_.y(); }
92 void PaintThumbnail(pp::ImageData* image_data, int index) override;
93 void SetGrayscale(bool grayscale) override; 90 void SetGrayscale(bool grayscale) override;
94 void OnCallback(int id) override; 91 void OnCallback(int id) override;
95 std::string GetPageAsJSON(int index) override; 92 std::string GetPageAsJSON(int index) override;
96 bool GetPrintScaling() override; 93 bool GetPrintScaling() override;
97 int GetCopiesToPrint() override; 94 int GetCopiesToPrint() override;
98 int GetDuplexType() override; 95 int GetDuplexType() override;
99 bool GetPageSizeAndUniformity(pp::Size* size) override; 96 bool GetPageSizeAndUniformity(pp::Size* size) override;
100 void AppendBlankPages(int num_pages) override; 97 void AppendBlankPages(int num_pages) override;
101 void AppendPage(PDFEngine* engine, int index) override; 98 void AppendPage(PDFEngine* engine, int index) override;
102 pp::Point GetScrollPosition() override; 99 pp::Point GetScrollPosition() override;
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 pp::Size default_page_size_; 660 pp::Size default_page_size_;
664 661
665 // Used to manage timers that form fill API needs. The pair holds the timer 662 // Used to manage timers that form fill API needs. The pair holds the timer
666 // period, in ms, and the callback function. 663 // period, in ms, and the callback function.
667 std::map<int, std::pair<int, TimerCallback> > timers_; 664 std::map<int, std::pair<int, TimerCallback> > timers_;
668 int next_timer_id_; 665 int next_timer_id_;
669 666
670 // Holds the page index of the last page that the mouse clicked on. 667 // Holds the page index of the last page that the mouse clicked on.
671 int last_page_mouse_down_; 668 int last_page_mouse_down_;
672 669
673 // Holds the page index of the first visible page; refreshed by calling
674 // CalculateVisiblePages()
675 int first_visible_page_;
676
677 // Holds the page index of the most visible page; refreshed by calling 670 // Holds the page index of the most visible page; refreshed by calling
678 // CalculateVisiblePages() 671 // CalculateVisiblePages()
679 int most_visible_page_; 672 int most_visible_page_;
680 673
681 // Set to true after FORM_DoDocumentJSAction/FORM_DoDocumentOpenAction have 674 // Set to true after FORM_DoDocumentJSAction/FORM_DoDocumentOpenAction have
682 // been called. Only after that can we call FORM_DoPageAAction. 675 // been called. Only after that can we call FORM_DoPageAAction.
683 bool called_do_document_action_; 676 bool called_do_document_action_;
684 677
685 // Records parts of form fields that need to be highlighted at next paint, in 678 // Records parts of form fields that need to be highlighted at next paint, in
686 // screen coordinates. 679 // screen coordinates.
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 bool GetPDFPageSizeByIndex(const void* pdf_buffer, 748 bool GetPDFPageSizeByIndex(const void* pdf_buffer,
756 int pdf_buffer_size, 749 int pdf_buffer_size,
757 int page_number, 750 int page_number,
758 double* width, 751 double* width,
759 double* height) override; 752 double* height) override;
760 }; 753 };
761 754
762 } // namespace chrome_pdf 755 } // namespace chrome_pdf
763 756
764 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 757 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_
OLDNEW
« no previous file with comments | « pdf/pdf_engine.h ('k') | pdf/pdfium/pdfium_engine.cc » ('j') | pdf/pdfium/pdfium_engine.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698