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

Side by Side Diff: pdf/pdf_engine.h

Issue 2267913003: Fixup building with PDFium XFA enabled. (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 | « no previous file | pdf/pdfium/pdfium_engine.h » ('j') | pdf/pdfium/pdfium_engine.h » ('J')
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_PDF_ENGINE_H_ 5 #ifndef PDF_PDF_ENGINE_H_
6 #define PDF_PDF_ENGINE_H_ 6 #define PDF_PDF_ENGINE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 // the same structure. 275 // the same structure.
276 virtual pp::VarArray GetBookmarks() = 0; 276 virtual pp::VarArray GetBookmarks() = 0;
277 277
278 // Append blank pages to make a 1-page document to a |num_pages| document. 278 // Append blank pages to make a 1-page document to a |num_pages| document.
279 // Always retain the first page data. 279 // Always retain the first page data.
280 virtual void AppendBlankPages(int num_pages) = 0; 280 virtual void AppendBlankPages(int num_pages) = 0;
281 // Append the first page of the document loaded with the |engine| to this 281 // Append the first page of the document loaded with the |engine| to this
282 // document at page |index|. 282 // document at page |index|.
283 virtual void AppendPage(PDFEngine* engine, int index) = 0; 283 virtual void AppendPage(PDFEngine* engine, int index) = 0;
284 284
285 #if defined(PDF_USE_XFA) 285 #if defined(PDF_ENABLE_XFA)
286 // Allow client to set scroll positions in document coordinates. Note that 286 // Allow client to set scroll positions in document coordinates. Note that
287 // this is meant for cases where the device scale factor changes, and not for 287 // this is meant for cases where the device scale factor changes, and not for
288 // general scrolling - the engine will not repaint due to this. 288 // general scrolling - the engine will not repaint due to this.
289 virtual void SetScrollPosition(const pp::Point& position) = 0; 289 virtual void SetScrollPosition(const pp::Point& position) = 0;
290 #endif 290 #endif
291 291
292 virtual bool IsProgressiveLoad() = 0; 292 virtual bool IsProgressiveLoad() = 0;
293 293
294 virtual std::string GetMetadata(const std::string& key) = 0; 294 virtual std::string GetMetadata(const std::string& key) = 0;
295 }; 295 };
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 347
348 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. 348 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details.
349 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, 349 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer,
350 int pdf_buffer_size, int page_number, 350 int pdf_buffer_size, int page_number,
351 double* width, double* height) = 0; 351 double* width, double* height) = 0;
352 }; 352 };
353 353
354 } // namespace chrome_pdf 354 } // namespace chrome_pdf
355 355
356 #endif // PDF_PDF_ENGINE_H_ 356 #endif // PDF_PDF_ENGINE_H_
OLDNEW
« no previous file with comments | « no previous file | pdf/pdfium/pdfium_engine.h » ('j') | pdf/pdfium/pdfium_engine.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698