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

Unified Diff: content/browser/gamepad/xbox_data_fetcher_mac.h

Issue 1549113002: Switch to standard integer types in content/browser/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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
Index: content/browser/gamepad/xbox_data_fetcher_mac.h
diff --git a/content/browser/gamepad/xbox_data_fetcher_mac.h b/content/browser/gamepad/xbox_data_fetcher_mac.h
index d88ad96823309a74b44318382df60c078888bb45..599a63cf6cdb745d89dbd911e043c212017fff05 100644
--- a/content/browser/gamepad/xbox_data_fetcher_mac.h
+++ b/content/browser/gamepad/xbox_data_fetcher_mac.h
@@ -7,13 +7,15 @@
#include <CoreFoundation/CoreFoundation.h>
#include <IOKit/IOKitLib.h>
+#include <stddef.h>
+#include <stdint.h>
#include <set>
-#include "base/basictypes.h"
#include "base/mac/scoped_cftyperef.h"
#include "base/mac/scoped_ioobject.h"
#include "base/mac/scoped_ioplugininterface.h"
+#include "base/macros.h"
#include "base/memory/scoped_ptr.h"
class XboxController {
@@ -116,8 +118,8 @@ class XboxController {
// aren't correctly framed. The 360 controller frames its packets with a 2
// byte header (type, total length) so we can reframe the packet data
// ourselves.
- uint16 read_buffer_size_;
- scoped_ptr<uint8[]> read_buffer_;
+ uint16_t read_buffer_size_;
+ scoped_ptr<uint8_t[]> read_buffer_;
// The pattern that the LEDs on the device are currently displaying, or
// LED_NUM_PATTERNS if unknown.
@@ -162,7 +164,7 @@ class XboxDataFetcher : public XboxController::Delegate {
static void DeviceRemoved(void* context, io_iterator_t iterator);
void AddController(XboxController* controller);
void RemoveController(XboxController* controller);
- void RemoveControllerByLocationID(uint32 id);
+ void RemoveControllerByLocationID(uint32_t id);
void XboxControllerGotData(XboxController* controller,
const XboxController::Data& data) override;
void XboxControllerError(XboxController* controller) override;
« no previous file with comments | « content/browser/gamepad/raw_input_data_fetcher_win.cc ('k') | content/browser/gamepad/xbox_data_fetcher_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698