| 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) | 68 void MIDIAccessor::didAddInputPort(const WebString& id, const WebString& manufac
turer, const WebString& name, const WebString& version) |
| 69 { | 69 { |
| 70 m_client->didAddInputPort(id, manufacturer, name, version); | 70 m_client->didAddInputPort(id, manufacturer, name, version, true); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void MIDIAccessor::didAddOutputPort(const WebString& id, const WebString& manufa
cturer, const WebString& name, const WebString& version) | 73 void MIDIAccessor::didAddOutputPort(const WebString& id, const WebString& manufa
cturer, const WebString& name, const WebString& version) |
| 74 { | 74 { |
| 75 m_client->didAddOutputPort(id, manufacturer, name, version); | 75 m_client->didAddOutputPort(id, manufacturer, name, version, true); |
| 76 } |
| 77 |
| 78 void MIDIAccessor::didAddInputPort(const WebString& id, const WebString& manufac
turer, const WebString& name, const WebString& version, bool active) |
| 79 { |
| 80 m_client->didAddInputPort(id, manufacturer, name, version, active); |
| 81 } |
| 82 |
| 83 void MIDIAccessor::didAddOutputPort(const WebString& id, const WebString& manufa
cturer, const WebString& name, const WebString& version, bool active) |
| 84 { |
| 85 m_client->didAddOutputPort(id, manufacturer, name, version, active); |
| 86 } |
| 87 |
| 88 void MIDIAccessor::didSetInputPortState(unsigned portIndex, bool active) |
| 89 { |
| 90 m_client->didSetInputPortState(portIndex, active); |
| 91 } |
| 92 |
| 93 void MIDIAccessor::didSetOutputPortState(unsigned portIndex, bool active) |
| 94 { |
| 95 m_client->didSetOutputPortState(portIndex, active); |
| 76 } | 96 } |
| 77 | 97 |
| 78 void MIDIAccessor::didStartSession(bool success, const WebString& error, const W
ebString& message) | 98 void MIDIAccessor::didStartSession(bool success, const WebString& error, const W
ebString& message) |
| 79 { | 99 { |
| 80 m_client->didStartSession(success, error, message); | 100 m_client->didStartSession(success, error, message); |
| 81 } | 101 } |
| 82 | 102 |
| 83 void MIDIAccessor::didReceiveMIDIData(unsigned portIndex, const unsigned char* d
ata, size_t length, double timeStamp) | 103 void MIDIAccessor::didReceiveMIDIData(unsigned portIndex, const unsigned char* d
ata, size_t length, double timeStamp) |
| 84 { | 104 { |
| 85 m_client->didReceiveMIDIData(portIndex, data, length, timeStamp); | 105 m_client->didReceiveMIDIData(portIndex, data, length, timeStamp); |
| 86 } | 106 } |
| 87 | 107 |
| 88 } // namespace blink | 108 } // namespace blink |
| OLD | NEW |