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

Unified Diff: pdf/pdf_engine.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/pdf.cc ('k') | pdf/pdfium/pdfium_api_string_buffer_adapter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pdf/pdf_engine.h
diff --git a/pdf/pdf_engine.h b/pdf/pdf_engine.h
index 7cde54aaf64e1f8cb965539ee9a5cf6940b47776..aa748750f1d56d926292cf63f8ce031c9d99a884 100644
--- a/pdf/pdf_engine.h
+++ b/pdf/pdf_engine.h
@@ -5,6 +5,8 @@
#ifndef PDF_PDF_ENGINE_H_
#define PDF_PDF_ENGINE_H_
+#include <stdint.h>
+
#include "build/build_config.h"
#if defined(OS_WIN)
@@ -36,9 +38,9 @@ namespace chrome_pdf {
class Stream;
#if defined(OS_MACOSX)
-const uint32 kDefaultKeyModifier = PP_INPUTEVENT_MODIFIER_METAKEY;
+const uint32_t kDefaultKeyModifier = PP_INPUTEVENT_MODIFIER_METAKEY;
#else // !OS_MACOSX
-const uint32 kDefaultKeyModifier = PP_INPUTEVENT_MODIFIER_CONTROLKEY;
+const uint32_t kDefaultKeyModifier = PP_INPUTEVENT_MODIFIER_CONTROLKEY;
#endif // OS_MACOSX
// Do one time initialization of the SDK.
@@ -165,7 +167,8 @@ class PDFEngine {
virtual void DocumentHasUnsupportedFeature(const std::string& feature) = 0;
// Notifies the client about document load progress.
- virtual void DocumentLoadProgress(uint32 available, uint32 doc_size) = 0;
+ virtual void DocumentLoadProgress(uint32_t available,
+ uint32_t doc_size) = 0;
// Notifies the client about focus changes for form text fields.
virtual void FormTextFieldFocusChange(bool in_focus) = 0;
@@ -174,7 +177,7 @@ class PDFEngine {
virtual bool IsPrintPreview() = 0;
// Get the background color of the PDF.
- virtual uint32 GetBackgroundColor() = 0;
+ virtual uint32_t GetBackgroundColor() = 0;
// Sets selection status.
virtual void IsSelectingChanged(bool is_selecting) {}
« no previous file with comments | « pdf/pdf.cc ('k') | pdf/pdfium/pdfium_api_string_buffer_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698