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 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
176 | 176 |
177 } // namespace | 177 } // namespace |
178 | 178 |
179 MIDIOutput* MIDIOutput::create(MIDIAccess* access, unsigned portIndex, const Str
ing& id, const String& manufacturer, const String& name, const String& version,
PortState state) | 179 MIDIOutput* MIDIOutput::create(MIDIAccess* access, unsigned portIndex, const Str
ing& id, const String& manufacturer, const String& name, const String& version,
PortState state) |
180 { | 180 { |
181 ASSERT(access); | 181 ASSERT(access); |
182 return new MIDIOutput(access, portIndex, id, manufacturer, name, version, st
ate); | 182 return new MIDIOutput(access, portIndex, id, manufacturer, name, version, st
ate); |
183 } | 183 } |
184 | 184 |
185 MIDIOutput::MIDIOutput(MIDIAccess* access, unsigned portIndex, const String& id,
const String& manufacturer, const String& name, const String& version, PortStat
e state) | 185 MIDIOutput::MIDIOutput(MIDIAccess* access, unsigned portIndex, const String& id,
const String& manufacturer, const String& name, const String& version, PortStat
e state) |
186 : MIDIPort(access, id, manufacturer, name, MIDIPortTypeOutput, version, stat
e) | 186 : MIDIPort(access, id, manufacturer, name, TypeOutput, version, state) |
187 , m_portIndex(portIndex) | 187 , m_portIndex(portIndex) |
188 { | 188 { |
189 } | 189 } |
190 | 190 |
191 MIDIOutput::~MIDIOutput() | 191 MIDIOutput::~MIDIOutput() |
192 { | 192 { |
193 } | 193 } |
194 | 194 |
195 void MIDIOutput::send(DOMUint8Array* array, double timestamp, ExceptionState& ex
ceptionState) | 195 void MIDIOutput::send(DOMUint8Array* array, double timestamp, ExceptionState& ex
ceptionState) |
196 { | 196 { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
234 { | 234 { |
235 send(unsignedData, 0.0, exceptionState); | 235 send(unsignedData, 0.0, exceptionState); |
236 } | 236 } |
237 | 237 |
238 DEFINE_TRACE(MIDIOutput) | 238 DEFINE_TRACE(MIDIOutput) |
239 { | 239 { |
240 MIDIPort::trace(visitor); | 240 MIDIPort::trace(visitor); |
241 } | 241 } |
242 | 242 |
243 } // namespace blink | 243 } // namespace blink |
OLD | NEW |