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

Unified Diff: win8/metro_driver/metro_driver_win7.cc

Issue 1540973003: Switch to standard integer types in win8/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « win8/metro_driver/ime/text_store_delegate.h ('k') | win8/metro_driver/print_document_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win8/metro_driver/metro_driver_win7.cc
diff --git a/win8/metro_driver/metro_driver_win7.cc b/win8/metro_driver/metro_driver_win7.cc
index c88cd3f2c5f17ea5d0f148a940390cee845d32b0..62662f5918f1fb7036419d863034a11d8839034c 100644
--- a/win8/metro_driver/metro_driver_win7.cc
+++ b/win8/metro_driver/metro_driver_win7.cc
@@ -5,8 +5,10 @@
#include "stdafx.h"
#include <corewindow.h>
#include <shobjidl.h>
+#include <stdint.h>
#include "base/logging.h"
+#include "base/macros.h"
#include "ui/gfx/geometry/safe_integer_conversions.h"
#include "ui/gfx/win/msg_util.h"
@@ -157,14 +159,14 @@ class MouseEvent : public mswr::RuntimeClass<
return S_OK;
}
- HRESULT STDMETHODCALLTYPE get_PointerId(uint32* pointer_id) override {
+ HRESULT STDMETHODCALLTYPE get_PointerId(uint32_t* pointer_id) override {
// TODO(ananta)
// Implement this properly.
*pointer_id = 1;
return S_OK;
}
- HRESULT STDMETHODCALLTYPE get_Timestamp(uint64* timestamp) override {
+ HRESULT STDMETHODCALLTYPE get_Timestamp(uint64_t* timestamp) override {
*timestamp = msg_.time;
return S_OK;
}
@@ -180,7 +182,7 @@ class MouseEvent : public mswr::RuntimeClass<
return E_NOTIMPL;
}
- HRESULT STDMETHODCALLTYPE get_FrameId(uint32* frame_id) override {
+ HRESULT STDMETHODCALLTYPE get_FrameId(uint32_t* frame_id) override {
return E_NOTIMPL;
}
@@ -312,14 +314,15 @@ class MouseEvent : public mswr::RuntimeClass<
return E_NOTIMPL;
}
- HRESULT STDMETHODCALLTYPE
- HasUsage(uint32 usage_page, uint32 usage_id, boolean* has_usage) override {
+ HRESULT STDMETHODCALLTYPE HasUsage(uint32_t usage_page,
+ uint32_t usage_id,
+ boolean* has_usage) override {
return E_NOTIMPL;
}
- HRESULT STDMETHODCALLTYPE GetUsageValue(uint32 usage_page,
- uint32 usage_id,
- int32* usage_value) override {
+ HRESULT STDMETHODCALLTYPE GetUsageValue(uint32_t usage_page,
+ uint32_t usage_id,
+ int32_t* usage_value) override {
return E_NOTIMPL;
}
@@ -338,7 +341,7 @@ class MouseEvent : public mswr::RuntimeClass<
return E_NOTIMPL;
}
- HRESULT STDMETHODCALLTYPE get_MaxContacts(uint32* contacts) override {
+ HRESULT STDMETHODCALLTYPE get_MaxContacts(uint32_t* contacts) override {
return E_NOTIMPL;
}
@@ -393,7 +396,7 @@ class KeyEvent : public mswr::RuntimeClass<
}
// ICharacterReceivedEventArgs implementation.
- HRESULT STDMETHODCALLTYPE get_KeyCode(uint32* key_code) override {
+ HRESULT STDMETHODCALLTYPE get_KeyCode(uint32_t* key_code) override {
*key_code = msg_.wParam;
return S_OK;
}
« no previous file with comments | « win8/metro_driver/ime/text_store_delegate.h ('k') | win8/metro_driver/print_document_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698