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/pdf_engine.h

Issue 2270463003: Turn on enforce-in-pdf Clang plugin flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win clang Created 4 years, 3 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/paint_manager.cc ('k') | pdf/pdfium/pdfium_engine.h » ('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_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
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
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_
OLDNEW
« no previous file with comments | « pdf/paint_manager.cc ('k') | pdf/pdfium/pdfium_engine.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698