| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 MIDIAccessor::MIDIAccessor(MIDIAccessorClient* client) | 49 MIDIAccessor::MIDIAccessor(MIDIAccessorClient* client) |
| 50 : m_client(client) | 50 : m_client(client) |
| 51 { | 51 { |
| 52 ASSERT(client); | 52 ASSERT(client); |
| 53 | 53 |
| 54 m_accessor = adoptPtr(WebKit::Platform::current()->createMIDIAccessor(this))
; | 54 m_accessor = adoptPtr(WebKit::Platform::current()->createMIDIAccessor(this))
; |
| 55 | 55 |
| 56 ASSERT(m_accessor); | 56 ASSERT(m_accessor); |
| 57 } | 57 } |
| 58 | 58 |
| 59 void MIDIAccessor::requestAccess(int access) | 59 void MIDIAccessor::requestAccess(bool access) |
| 60 { | 60 { |
| 61 m_accessor->requestAccess(access); | 61 m_accessor->requestAccess(access); |
| 62 } | 62 } |
| 63 | 63 |
| 64 void MIDIAccessor::sendMIDIData(unsigned portIndex, const unsigned char* data, s
ize_t length, double timeStamp) | 64 void MIDIAccessor::sendMIDIData(unsigned portIndex, const unsigned char* data, s
ize_t length, double timeStamp) |
| 65 { | 65 { |
| 66 m_accessor->sendMIDIData(portIndex, data, length, timeStamp); | 66 m_accessor->sendMIDIData(portIndex, data, length, timeStamp); |
| 67 } | 67 } |
| 68 | 68 |
| 69 void MIDIAccessor::addInputPort(const WebString& id, const WebString& manufactur
er, const WebString& name, const WebString& version) | 69 void MIDIAccessor::addInputPort(const WebString& id, const WebString& manufactur
er, const WebString& name, const WebString& version) |
| 70 { | 70 { |
| 71 m_client->addInputPort(id, manufacturer, name, version); | 71 m_client->addInputPort(id, manufacturer, name, version); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void MIDIAccessor::addOutputPort(const WebString& id, const WebString& manufactu
rer, const WebString& name, const WebString& version) | 74 void MIDIAccessor::addOutputPort(const WebString& id, const WebString& manufactu
rer, const WebString& name, const WebString& version) |
| 75 { | 75 { |
| 76 m_client->addOutputPort(id, manufacturer, name, version); | 76 m_client->addOutputPort(id, manufacturer, name, version); |
| 77 } | 77 } |
| 78 | 78 |
| 79 void MIDIAccessor::accessApproved(bool approved) | 79 void MIDIAccessor::didAllowAccess() |
| 80 { | 80 { |
| 81 m_client->accessApproved(approved); | 81 m_client->didAllowAccess(); |
| 82 } | 82 } |
| 83 | 83 |
| 84 void MIDIAccessor::receiveMIDIData(unsigned portIndex, const unsigned char* data
, size_t length, double timeStamp) | 84 void MIDIAccessor::didBlockAccess() |
| 85 { | 85 { |
| 86 m_client->receiveMIDIData(portIndex, data, length, timeStamp); | 86 m_client->didBlockAccess(); |
| 87 } |
| 88 |
| 89 void MIDIAccessor::didReceiveMIDIData(unsigned portIndex, const unsigned char* d
ata, size_t length, double timeStamp) |
| 90 { |
| 91 m_client->didReceiveMIDIData(portIndex, data, length, timeStamp); |
| 87 } | 92 } |
| 88 | 93 |
| 89 } // namespace WebCore | 94 } // namespace WebCore |
| OLD | NEW |