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

Unified Diff: content/renderer/media/midi_message_filter.h

Issue 151343002: Web MIDI: make naming convention be consistent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review boliu #2 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 | « content/renderer/media/midi_dispatcher.cc ('k') | content/renderer/media/midi_message_filter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/midi_message_filter.h
diff --git a/content/renderer/media/midi_message_filter.h b/content/renderer/media/midi_message_filter.h
index c2e66ae4d0cd370ddbe16d36bc036cf7c3f1bd7b..c7a4441555f97240aa9e6a62dfc72d185bec2398 100644
--- a/content/renderer/media/midi_message_filter.h
+++ b/content/renderer/media/midi_message_filter.h
@@ -21,10 +21,10 @@ class MessageLoopProxy;
namespace content {
// MessageFilter that handles MIDI messages.
-class CONTENT_EXPORT MIDIMessageFilter
+class CONTENT_EXPORT MidiMessageFilter
: public IPC::ChannelProxy::MessageFilter {
public:
- explicit MIDIMessageFilter(
+ explicit MidiMessageFilter(
const scoped_refptr<base::MessageLoopProxy>& io_message_loop);
// Each client registers for MIDI access here.
@@ -36,7 +36,7 @@ class CONTENT_EXPORT MIDIMessageFilter
// A client will only be able to call this method if it has a suitable
// output port (from addOutputPort()).
- void SendMIDIData(uint32 port,
+ void SendMidiData(uint32 port,
const uint8* data,
size_t length,
double timestamp);
@@ -47,7 +47,7 @@ class CONTENT_EXPORT MIDIMessageFilter
}
protected:
- virtual ~MIDIMessageFilter();
+ virtual ~MidiMessageFilter();
private:
// Sends an IPC message using |channel_|.
@@ -63,8 +63,8 @@ class CONTENT_EXPORT MIDIMessageFilter
// MIDI hardware.
void OnSessionStarted(int client_id,
bool success,
- media::MIDIPortInfoList inputs,
- media::MIDIPortInfoList outputs);
+ media::MidiPortInfoList inputs,
+ media::MidiPortInfoList outputs);
// Called when the browser process has sent MIDI data containing one or
// more messages.
@@ -79,8 +79,8 @@ class CONTENT_EXPORT MIDIMessageFilter
void HandleSessionStarted(int client_id,
bool success,
- media::MIDIPortInfoList inputs,
- media::MIDIPortInfoList outputs);
+ media::MidiPortInfoList inputs,
+ media::MidiPortInfoList outputs);
void HandleDataReceived(uint32 port,
const std::vector<uint8>& data,
@@ -88,7 +88,7 @@ class CONTENT_EXPORT MIDIMessageFilter
void StartSessionOnIOThread(int client_id);
- void SendMIDIDataOnIOThread(uint32 port,
+ void SendMidiDataOnIOThread(uint32 port,
const std::vector<uint8>& data,
double timestamp);
@@ -115,7 +115,7 @@ class CONTENT_EXPORT MIDIMessageFilter
size_t unacknowledged_bytes_sent_;
- DISALLOW_COPY_AND_ASSIGN(MIDIMessageFilter);
+ DISALLOW_COPY_AND_ASSIGN(MidiMessageFilter);
};
} // namespace content
« no previous file with comments | « content/renderer/media/midi_dispatcher.cc ('k') | content/renderer/media/midi_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698