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

Unified Diff: media/midi/usb_midi_jack.h

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more 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: media/midi/usb_midi_jack.h
diff --git a/media/midi/usb_midi_jack.h b/media/midi/usb_midi_jack.h
index 8315564e2c568153d5601f8ddb85c693f143ae08..65cb189c23e18214f25a7c1c2002d8641bec9bf5 100644
--- a/media/midi/usb_midi_jack.h
+++ b/media/midi/usb_midi_jack.h
@@ -5,7 +5,8 @@
#ifndef MEDIA_MIDI_USB_MIDI_JACK_H_
#define MEDIA_MIDI_USB_MIDI_JACK_H_
-#include "base/basictypes.h"
+#include <stdint.h>
+
#include "media/midi/usb_midi_export.h"
namespace media {
@@ -23,9 +24,9 @@ struct USB_MIDI_EXPORT UsbMidiJack {
DIRECTION_OUT,
};
UsbMidiJack(UsbMidiDevice* device,
- uint8 jack_id,
- uint8 cable_number,
- uint8 endpoint_address)
+ uint8_t jack_id,
+ uint8_t cable_number,
+ uint8_t endpoint_address)
: device(device),
jack_id(jack_id),
cable_number(cable_number),
@@ -33,18 +34,16 @@ struct USB_MIDI_EXPORT UsbMidiJack {
// Not owned
UsbMidiDevice* device;
// The id of this jack unique in the interface.
- uint8 jack_id;
+ uint8_t jack_id;
// The cable number of this jack in the associated endpoint.
- uint8 cable_number;
+ uint8_t cable_number;
// The address of the endpoint that this jack is associated with.
- uint8 endpoint_address;
+ uint8_t endpoint_address;
Direction direction() const {
return (endpoint_address & 0x80) ? DIRECTION_IN : DIRECTION_OUT;
}
- uint8 endpoint_number() const {
- return (endpoint_address & 0xf);
- }
+ uint8_t endpoint_number() const { return (endpoint_address & 0xf); }
};
} // namespace midi

Powered by Google App Engine
This is Rietveld 408576698