OLD | NEW |
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 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
298 class PDFEngineExports { | 298 class PDFEngineExports { |
299 public: | 299 public: |
300 struct RenderingSettings { | 300 struct RenderingSettings { |
301 RenderingSettings(int dpi_x, | 301 RenderingSettings(int dpi_x, |
302 int dpi_y, | 302 int dpi_y, |
303 const pp::Rect& bounds, | 303 const pp::Rect& bounds, |
304 bool fit_to_bounds, | 304 bool fit_to_bounds, |
305 bool stretch_to_bounds, | 305 bool stretch_to_bounds, |
306 bool keep_aspect_ratio, | 306 bool keep_aspect_ratio, |
307 bool center_in_bounds, | 307 bool center_in_bounds, |
308 bool autorotate) | 308 bool autorotate); |
309 : dpi_x(dpi_x), dpi_y(dpi_y), bounds(bounds), | 309 RenderingSettings(const RenderingSettings& that); |
310 fit_to_bounds(fit_to_bounds), stretch_to_bounds(stretch_to_bounds), | 310 |
311 keep_aspect_ratio(keep_aspect_ratio), | |
312 center_in_bounds(center_in_bounds), autorotate(autorotate) { | |
313 } | |
314 int dpi_x; | 311 int dpi_x; |
315 int dpi_y; | 312 int dpi_y; |
316 pp::Rect bounds; | 313 pp::Rect bounds; |
317 bool fit_to_bounds; | 314 bool fit_to_bounds; |
318 bool stretch_to_bounds; | 315 bool stretch_to_bounds; |
319 bool keep_aspect_ratio; | 316 bool keep_aspect_ratio; |
320 bool center_in_bounds; | 317 bool center_in_bounds; |
321 bool autorotate; | 318 bool autorotate; |
322 }; | 319 }; |
323 | 320 |
(...skipping 23 matching lines...) Expand all Loading... |
347 | 344 |
348 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. | 345 // See the definition of GetPDFPageSizeByIndex in pdf.cc for details. |
349 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, | 346 virtual bool GetPDFPageSizeByIndex(const void* pdf_buffer, |
350 int pdf_buffer_size, int page_number, | 347 int pdf_buffer_size, int page_number, |
351 double* width, double* height) = 0; | 348 double* width, double* height) = 0; |
352 }; | 349 }; |
353 | 350 |
354 } // namespace chrome_pdf | 351 } // namespace chrome_pdf |
355 | 352 |
356 #endif // PDF_PDF_ENGINE_H_ | 353 #endif // PDF_PDF_ENGINE_H_ |
OLD | NEW |