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

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

Issue 2103043003: Remove legacy PDF JSON interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo after merge Created 4 years, 5 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 pp::VarArray GetBookmarks() override; 83 pp::VarArray GetBookmarks() override;
84 int GetNamedDestinationPage(const std::string& destination) override; 84 int GetNamedDestinationPage(const std::string& destination) override;
85 int GetMostVisiblePage() override; 85 int GetMostVisiblePage() override;
86 pp::Rect GetPageRect(int index) override; 86 pp::Rect GetPageRect(int index) override;
87 pp::Rect GetPageBoundsRect(int index) override; 87 pp::Rect GetPageBoundsRect(int index) override;
88 pp::Rect GetPageContentsRect(int index) override; 88 pp::Rect GetPageContentsRect(int index) override;
89 pp::Rect GetPageScreenRect(int page_index) const override; 89 pp::Rect GetPageScreenRect(int page_index) const override;
90 int GetVerticalScrollbarYPosition() override { return position_.y(); } 90 int GetVerticalScrollbarYPosition() override { return position_.y(); }
91 void SetGrayscale(bool grayscale) override; 91 void SetGrayscale(bool grayscale) override;
92 void OnCallback(int id) override; 92 void OnCallback(int id) override;
93 std::string GetPageAsJSON(int index) override;
94 int GetCharCount(int page_index) override; 93 int GetCharCount(int page_index) override;
95 pp::FloatRect GetCharBounds(int page_index, int char_index) override; 94 pp::FloatRect GetCharBounds(int page_index, int char_index) override;
96 uint32_t GetCharUnicode(int page_index, int char_index) override; 95 uint32_t GetCharUnicode(int page_index, int char_index) override;
97 void GetTextRunInfo(int page_index, 96 void GetTextRunInfo(int page_index,
98 int start_char_index, 97 int start_char_index,
99 uint32_t* out_len, 98 uint32_t* out_len,
100 double* out_font_size, 99 double* out_font_size,
101 pp::FloatRect* out_bounds) override; 100 pp::FloatRect* out_bounds) override;
102 bool GetPrintScaling() override; 101 bool GetPrintScaling() override;
103 int GetCopiesToPrint() override; 102 int GetCopiesToPrint() override;
(...skipping 651 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 bool GetPDFPageSizeByIndex(const void* pdf_buffer, 754 bool GetPDFPageSizeByIndex(const void* pdf_buffer,
756 int pdf_buffer_size, 755 int pdf_buffer_size,
757 int page_number, 756 int page_number,
758 double* width, 757 double* width,
759 double* height) override; 758 double* height) override;
760 }; 759 };
761 760
762 } // namespace chrome_pdf 761 } // namespace chrome_pdf
763 762
764 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 763 #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