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

Unified Diff: media/midi/usb_midi_jack.h

Issue 107163008: [WebMIDI] Introduce MidiManagerUsb (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@usb-midi-stream
Patch Set: Created 6 years, 11 months 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 | « media/midi/usb_midi_input_stream.cc ('k') | media/midi/usb_midi_output_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/midi/usb_midi_jack.h
diff --git a/media/midi/usb_midi_jack.h b/media/midi/usb_midi_jack.h
index d3fe9a9ed2f7f382983694f3ce9f0db21a7f2883..271cad88e7271b1c380cd099c248cff8f3b0b00a 100644
--- a/media/midi/usb_midi_jack.h
+++ b/media/midi/usb_midi_jack.h
@@ -16,10 +16,10 @@ class UsbMidiDevice;
struct MEDIA_EXPORT UsbMidiJack {
// The direction of the endpoint associated with an EMBEDDED MIDI jack.
// Note that an IN MIDI jack associated with an OUT endpoint has
- // ***OUT*** direction.
+ // ***DIRECTION_OUT*** direction.
enum Direction {
- IN,
- OUT,
+ DIRECTION_IN,
+ DIRECTION_OUT,
};
UsbMidiJack(UsbMidiDevice* device,
uint8 jack_id,
@@ -39,7 +39,7 @@ struct MEDIA_EXPORT UsbMidiJack {
uint8 endpoint_address;
Direction direction() const {
- return (endpoint_address & 0x80) ? IN : OUT;
+ return (endpoint_address & 0x80) ? DIRECTION_IN : DIRECTION_OUT;
}
uint8 endpoint_number() const {
return (endpoint_address & 0xf);
« no previous file with comments | « media/midi/usb_midi_input_stream.cc ('k') | media/midi/usb_midi_output_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698