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

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

Issue 1155963004: PDF: Cleanup more code now that it is completely out of process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix bad rebase Created 5 years, 6 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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 28 matching lines...) Expand all
39 class PDFiumEngine : public PDFEngine, 39 class PDFiumEngine : public PDFEngine,
40 public DocumentLoader::Client, 40 public DocumentLoader::Client,
41 public FPDF_FORMFILLINFO, 41 public FPDF_FORMFILLINFO,
42 public IPDF_JSPLATFORM, 42 public IPDF_JSPLATFORM,
43 public IFSDK_PAUSE { 43 public IFSDK_PAUSE {
44 public: 44 public:
45 explicit PDFiumEngine(PDFEngine::Client* client); 45 explicit PDFiumEngine(PDFEngine::Client* client);
46 virtual ~PDFiumEngine(); 46 virtual ~PDFiumEngine();
47 47
48 // PDFEngine implementation. 48 // PDFEngine implementation.
49 virtual bool New(const char* url); 49 virtual bool New(const char* url, const char* headers);
50 virtual bool New(const char* url,
51 const char* headers);
52 virtual void PageOffsetUpdated(const pp::Point& page_offset); 50 virtual void PageOffsetUpdated(const pp::Point& page_offset);
53 virtual void PluginSizeUpdated(const pp::Size& size); 51 virtual void PluginSizeUpdated(const pp::Size& size);
54 virtual void ScrolledToXPosition(int position); 52 virtual void ScrolledToXPosition(int position);
55 virtual void ScrolledToYPosition(int position); 53 virtual void ScrolledToYPosition(int position);
56 virtual void PrePaint(); 54 virtual void PrePaint();
57 virtual void Paint(const pp::Rect& rect, 55 virtual void Paint(const pp::Rect& rect,
58 pp::ImageData* image_data, 56 pp::ImageData* image_data,
59 std::vector<pp::Rect>* ready, 57 std::vector<pp::Rect>* ready,
60 std::vector<pp::Rect>* pending); 58 std::vector<pp::Rect>* pending);
61 virtual void PostPaint(); 59 virtual void PostPaint();
(...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 751
754 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 752 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
755 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 753 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
756 int pdf_buffer_size, int page_number, 754 int pdf_buffer_size, int page_number,
757 double* width, double* height); 755 double* width, double* height);
758 }; 756 };
759 757
760 } // namespace chrome_pdf 758 } // namespace chrome_pdf
761 759
762 #endif // PDF_PDFIUM_PDFIUM_ENGINE_H_ 760 #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