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

Side by Side Diff: pdf/instance.h

Issue 372273005: Fixes for re-enabling more MSVC level 4 warnings: pdf/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update pdfium Created 6 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 | Annotate | Revision Log
« no previous file with comments | « DEPS ('k') | pdf/instance.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_INSTANCE_H_ 5 #ifndef PDF_INSTANCE_H_
6 #define PDF_INSTANCE_H_ 6 #define PDF_INSTANCE_H_
7 7
8 #include <queue> 8 #include <queue>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 // Figures out the location of any background rectangles (i.e. those that 221 // Figures out the location of any background rectangles (i.e. those that
222 // aren't painted by the PDF engine). 222 // aren't painted by the PDF engine).
223 void CalculateBackgroundParts(); 223 void CalculateBackgroundParts();
224 224
225 // Computes document width/height in device pixels, based on current zoom and 225 // Computes document width/height in device pixels, based on current zoom and
226 // device scale 226 // device scale
227 int GetDocumentPixelWidth() const; 227 int GetDocumentPixelWidth() const;
228 int GetDocumentPixelHeight() const; 228 int GetDocumentPixelHeight() const;
229 229
230 // Draws a rectangle with the specified dimensions and color in our buffer. 230 // Draws a rectangle with the specified dimensions and color in our buffer.
231 void FillRect(const pp::Rect& rect, unsigned int color); 231 void FillRect(const pp::Rect& rect, uint32 color);
232 232
233 std::vector<pp::ImageData> GetThumbnailResources(); 233 std::vector<pp::ImageData> GetThumbnailResources();
234 std::vector<pp::ImageData> GetProgressBarResources(pp::ImageData* background); 234 std::vector<pp::ImageData> GetProgressBarResources(pp::ImageData* background);
235 235
236 void CreateToolbar(const ToolbarButtonInfo* tb_info, size_t size); 236 void CreateToolbar(const ToolbarButtonInfo* tb_info, size_t size);
237 int GetToolbarRightOffset(); 237 int GetToolbarRightOffset();
238 int GetToolbarBottomOffset(); 238 int GetToolbarBottomOffset();
239 void CreateProgressBar(); 239 void CreateProgressBar();
240 void ConfigureProgressBar(); 240 void ConfigureProgressBar();
241 void CreateThumbnails(); 241 void CreateThumbnails();
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
403 int scrollbar_reserved_thickness_; 403 int scrollbar_reserved_thickness_;
404 404
405 // Used to remember which toolbar is in use 405 // Used to remember which toolbar is in use
406 const ToolbarButtonInfo* current_tb_info_; 406 const ToolbarButtonInfo* current_tb_info_;
407 size_t current_tb_info_size_; 407 size_t current_tb_info_size_;
408 408
409 PaintManager paint_manager_; 409 PaintManager paint_manager_;
410 410
411 struct BackgroundPart { 411 struct BackgroundPart {
412 pp::Rect location; 412 pp::Rect location;
413 unsigned int color; 413 uint32 color;
414 }; 414 };
415 std::vector<BackgroundPart> background_parts_; 415 std::vector<BackgroundPart> background_parts_;
416 416
417 struct PrintSettings { 417 struct PrintSettings {
418 PrintSettings() { 418 PrintSettings() {
419 Clear(); 419 Clear();
420 } 420 }
421 void Clear() { 421 void Clear() {
422 is_printing = false; 422 is_printing = false;
423 print_pages_called_ = false; 423 print_pages_called_ = false;
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 const std::vector<pp::Var>& args, 517 const std::vector<pp::Var>& args,
518 pp::Var* exception); 518 pp::Var* exception);
519 519
520 private: 520 private:
521 Instance* instance_; 521 Instance* instance_;
522 }; 522 };
523 523
524 } // namespace chrome_pdf 524 } // namespace chrome_pdf
525 525
526 #endif // PDF_INSTANCE_H_ 526 #endif // PDF_INSTANCE_H_
OLDNEW
« no previous file with comments | « DEPS ('k') | pdf/instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698