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

Unified Diff: pdf/out_of_process_instance.h

Issue 1533413002: Switch to standard integer types in pdf/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pdf/draw_utils.cc ('k') | pdf/out_of_process_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/out_of_process_instance.h
diff --git a/pdf/out_of_process_instance.h b/pdf/out_of_process_instance.h
index 69c5bc3c7740fc508ca950ef778b60c986f8a2b8..41fef655159d2c3a7a57f53edc09d418e0303db6 100644
--- a/pdf/out_of_process_instance.h
+++ b/pdf/out_of_process_instance.h
@@ -5,12 +5,15 @@
#ifndef PDF_OUT_OF_PROCESS_INSTANCE_H_
#define PDF_OUT_OF_PROCESS_INSTANCE_H_
+#include <stdint.h>
+
#include <queue>
#include <set>
#include <string>
#include <utility>
#include <vector>
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
#include "pdf/paint_manager.h"
#include "pdf/pdf_engine.h"
@@ -125,10 +128,10 @@ class OutOfProcessInstance : public pp::Instance,
void DocumentLoadFailed() override;
pp::Instance* GetPluginInstance() override;
void DocumentHasUnsupportedFeature(const std::string& feature) override;
- void DocumentLoadProgress(uint32 available, uint32 doc_size) override;
+ void DocumentLoadProgress(uint32_t available, uint32_t doc_size) override;
void FormTextFieldFocusChange(bool in_focus) override;
bool IsPrintPreview() override;
- uint32 GetBackgroundColor() override;
+ uint32_t GetBackgroundColor() override;
void IsSelectingChanged(bool is_selecting) override;
// PreviewModeClient::Client implementation.
@@ -156,7 +159,7 @@ class OutOfProcessInstance : public pp::Instance,
int GetDocumentPixelHeight() const;
// Draws a rectangle with the specified dimensions and color in our buffer.
- void FillRect(const pp::Rect& rect, uint32 color);
+ void FillRect(const pp::Rect& rect, uint32_t color);
void LoadUrl(const std::string& url);
void LoadPreviewUrl(const std::string& url);
@@ -229,7 +232,7 @@ class OutOfProcessInstance : public pp::Instance,
struct BackgroundPart {
pp::Rect location;
- uint32 color;
+ uint32_t color;
};
std::vector<BackgroundPart> background_parts_;
@@ -333,7 +336,7 @@ class OutOfProcessInstance : public pp::Instance,
bool stop_scrolling_;
// The background color of the PDF viewer.
- uint32 background_color_;
+ uint32_t background_color_;
// The blank space above the first page of the document reserved for the
// toolbar.
« no previous file with comments | « pdf/draw_utils.cc ('k') | pdf/out_of_process_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698