summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorthakis <thakis@chromium.org>2015-05-01 11:06:17 -0700
committerCommit bot <commit-bot@chromium.org>2015-05-01 18:08:14 +0000
commit14b5dbf742d3a5aa195535a13cd9fdd7cf70a4ac (patch)
treea0fb2e92778b68ff8e9c4b45d0718e18f782274d /media
parent8f7386b022c30b46325f8c67ba4d04d33606103b (diff)
downloadchromium_src-14b5dbf742d3a5aa195535a13cd9fdd7cf70a4ac.zip
chromium_src-14b5dbf742d3a5aa195535a13cd9fdd7cf70a4ac.tar.gz
chromium_src-14b5dbf742d3a5aa195535a13cd9fdd7cf70a4ac.tar.bz2
win: Work on reducing number of style plugin warnings.
media/midi, net/http edition BUG=467287 Review URL: https://codereview.chromium.org/1113313002 Cr-Commit-Position: refs/heads/master@{#327938}
Diffstat (limited to 'media')
-rw-r--r--media/midi/midi_manager_win.cc28
-rw-r--r--media/midi/midi_manager_win.h20
2 files changed, 34 insertions, 14 deletions
diff --git a/media/midi/midi_manager_win.cc b/media/midi/midi_manager_win.cc
index eb729ea..9324b26 100644
--- a/media/midi/midi_manager_win.cc
+++ b/media/midi/midi_manager_win.cc
@@ -1126,6 +1126,34 @@ void MidiManagerWin::DispatchSendMidiData(MidiManagerClient* client,
client->AccumulateMidiBytesSent(data.size());
}
+void MidiManagerWin::OnCompleteInitialization(MidiResult result) {
+ CompleteInitialization(result);
+}
+
+void MidiManagerWin::OnAddInputPort(MidiPortInfo info) {
+ AddInputPort(info);
+}
+
+void MidiManagerWin::OnAddOutputPort(MidiPortInfo info) {
+ AddOutputPort(info);
+}
+
+void MidiManagerWin::OnSetInputPortState(uint32 port_index,
+ MidiPortState state) {
+ SetInputPortState(port_index, state);
+}
+
+void MidiManagerWin::OnSetOutputPortState(uint32 port_index,
+ MidiPortState state) {
+ SetOutputPortState(port_index, state);
+}
+
+void MidiManagerWin::OnReceiveMidiData(uint32 port_index,
+ const std::vector<uint8>& data,
+ base::TimeTicks time) {
+ ReceiveMidiData(port_index, &data[0], data.size(), time);
+}
+
MidiManager* MidiManager::Create() {
return new MidiManagerWin();
}
diff --git a/media/midi/midi_manager_win.h b/media/midi/midi_manager_win.h
index eef70eb..a6f014a 100644
--- a/media/midi/midi_manager_win.h
+++ b/media/midi/midi_manager_win.h
@@ -52,22 +52,14 @@ class MidiManagerWin final : public MidiManager, public MidiServiceWinDelegate {
double timestamp) final;
// MidiServiceWinDelegate overrides:
- void OnCompleteInitialization(MidiResult result) final {
- CompleteInitialization(result);
- }
- void OnAddInputPort(MidiPortInfo info) final { AddInputPort(info); }
- void OnAddOutputPort(MidiPortInfo info) final { AddOutputPort(info); }
- void OnSetInputPortState(uint32 port_index, MidiPortState state) final {
- SetInputPortState(port_index, state);
- }
- void OnSetOutputPortState(uint32 port_index, MidiPortState state) final {
- SetOutputPortState(port_index, state);
- }
+ void OnCompleteInitialization(MidiResult result) final;
+ void OnAddInputPort(MidiPortInfo info) final;
+ void OnAddOutputPort(MidiPortInfo info) final;
+ void OnSetInputPortState(uint32 port_index, MidiPortState state) final;
+ void OnSetOutputPortState(uint32 port_index, MidiPortState state) final;
void OnReceiveMidiData(uint32 port_index,
const std::vector<uint8>& data,
- base::TimeTicks time) final {
- ReceiveMidiData(port_index, &data[0], data.size(), time);
- }
+ base::TimeTicks time) final;
private:
scoped_ptr<MidiServiceWin> midi_service_;