| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 m_accessor->startSession(); | 60 m_accessor->startSession(); |
| 61 } | 61 } |
| 62 | 62 |
| 63 void MIDIAccessor::sendMIDIData(unsigned portIndex, const unsigned char* data, s
ize_t length, double timeStamp) | 63 void MIDIAccessor::sendMIDIData(unsigned portIndex, const unsigned char* data, s
ize_t length, double timeStamp) |
| 64 { | 64 { |
| 65 m_accessor->sendMIDIData(portIndex, data, length, timeStamp); | 65 m_accessor->sendMIDIData(portIndex, data, length, timeStamp); |
| 66 } | 66 } |
| 67 | 67 |
| 68 void MIDIAccessor::didAddInputPort(const WebString& id, const WebString& manufac
turer, const WebString& name, const WebString& version, MIDIPortState state) | 68 void MIDIAccessor::didAddInputPort(const WebString& id, const WebString& manufac
turer, const WebString& name, const WebString& version, MIDIPortState state) |
| 69 { | 69 { |
| 70 // FIXME: Update to support complete MIDIPortState in MIDIPort. | 70 m_client->didAddInputPort(id, manufacturer, name, version, state); |
| 71 m_client->didAddInputPort(id, manufacturer, name, version, state != MIDIPort
StateDisconnected); | |
| 72 } | 71 } |
| 73 | 72 |
| 74 void MIDIAccessor::didAddOutputPort(const WebString& id, const WebString& manufa
cturer, const WebString& name, const WebString& version, MIDIPortState state) | 73 void MIDIAccessor::didAddOutputPort(const WebString& id, const WebString& manufa
cturer, const WebString& name, const WebString& version, MIDIPortState state) |
| 75 { | 74 { |
| 76 // FIXME: Update to support complete MIDIPortState in MIDIPort. | 75 m_client->didAddOutputPort(id, manufacturer, name, version, state); |
| 77 m_client->didAddOutputPort(id, manufacturer, name, version, state != MIDIPor
tStateDisconnected); | |
| 78 } | 76 } |
| 79 | 77 |
| 80 void MIDIAccessor::didSetInputPortState(unsigned portIndex, MIDIPortState state) | 78 void MIDIAccessor::didSetInputPortState(unsigned portIndex, MIDIPortState state) |
| 81 { | 79 { |
| 82 // FIXME: Update to support complete MIDIPortState in MIDIPort. | 80 m_client->didSetInputPortState(portIndex, state); |
| 83 m_client->didSetInputPortState(portIndex, state != MIDIPortStateDisconnected
); | |
| 84 } | 81 } |
| 85 | 82 |
| 86 void MIDIAccessor::didSetOutputPortState(unsigned portIndex, MIDIPortState state
) | 83 void MIDIAccessor::didSetOutputPortState(unsigned portIndex, MIDIPortState state
) |
| 87 { | 84 { |
| 88 // FIXME: Update to support complete MIDIPortState in MIDIPort. | 85 m_client->didSetOutputPortState(portIndex, state); |
| 89 m_client->didSetOutputPortState(portIndex, state != MIDIPortStateDisconnecte
d); | |
| 90 } | 86 } |
| 91 | 87 |
| 92 void MIDIAccessor::didStartSession(bool success, const WebString& error, const W
ebString& message) | 88 void MIDIAccessor::didStartSession(bool success, const WebString& error, const W
ebString& message) |
| 93 { | 89 { |
| 94 m_client->didStartSession(success, error, message); | 90 m_client->didStartSession(success, error, message); |
| 95 } | 91 } |
| 96 | 92 |
| 97 void MIDIAccessor::didReceiveMIDIData(unsigned portIndex, const unsigned char* d
ata, size_t length, double timeStamp) | 93 void MIDIAccessor::didReceiveMIDIData(unsigned portIndex, const unsigned char* d
ata, size_t length, double timeStamp) |
| 98 { | 94 { |
| 99 m_client->didReceiveMIDIData(portIndex, data, length, timeStamp); | 95 m_client->didReceiveMIDIData(portIndex, data, length, timeStamp); |
| 100 } | 96 } |
| 101 | 97 |
| 102 } // namespace blink | 98 } // namespace blink |
| OLD | NEW |