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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
47 virtual ~MIDIAccessor() { } | 47 virtual ~MIDIAccessor() { } |
48 | 48 |
49 void startSession(); | 49 void startSession(); |
50 void sendMIDIData(unsigned portIndex, const unsigned char* data, size_t leng th, double timeStamp); | 50 void sendMIDIData(unsigned portIndex, const unsigned char* data, size_t leng th, double timeStamp); |
51 // MIDIAccessInitializer and MIDIAccess are both MIDIAccessClient. | 51 // MIDIAccessInitializer and MIDIAccess are both MIDIAccessClient. |
52 // MIDIAccessInitializer is the first client and MIDIAccess takes over it | 52 // MIDIAccessInitializer is the first client and MIDIAccess takes over it |
53 // once the initialization successfully finishes. | 53 // once the initialization successfully finishes. |
54 void setClient(MIDIAccessorClient* client) { m_client = client; } | 54 void setClient(MIDIAccessorClient* client) { m_client = client; } |
55 | 55 |
56 // WebMIDIAccessorClient | 56 // WebMIDIAccessorClient |
57 virtual void didAddInputPort(const WebString& id, const WebString& manufactu rer, const WebString& name, const WebString& version) override; | 57 virtual void didAddInputPort(const WebString& id, const WebString& manufactu rer, const WebString& name, const WebString& version) override; |
yhirano
2014/10/20 02:14:10
Can you write FIXME?
Takashi Toyoshima
2014/10/20 05:39:50
Done.
| |
58 virtual void didAddOutputPort(const WebString& id, const WebString& manufact urer, const WebString& name, const WebString& version) override; | 58 virtual void didAddOutputPort(const WebString& id, const WebString& manufact urer, const WebString& name, const WebString& version) override; |
59 virtual void didAddInputPort(const WebString& id, const WebString& manufactu rer, const WebString& name, const WebString& version, bool active) override; | |
60 virtual void didAddOutputPort(const WebString& id, const WebString& manufact urer, const WebString& name, const WebString& version, bool active) override; | |
61 virtual void didSetInputPortState(unsigned portIndex, bool active) override; | |
62 virtual void didSetOutputPortState(unsigned portIndex, bool active) override ; | |
59 virtual void didStartSession(bool success, const WebString& error, const Web String& message) override; | 63 virtual void didStartSession(bool success, const WebString& error, const Web String& message) override; |
60 virtual void didReceiveMIDIData(unsigned portIndex, const unsigned char* dat a, size_t length, double timeStamp) override; | 64 virtual void didReceiveMIDIData(unsigned portIndex, const unsigned char* dat a, size_t length, double timeStamp) override; |
61 | 65 |
62 private: | 66 private: |
63 explicit MIDIAccessor(MIDIAccessorClient*); | 67 explicit MIDIAccessor(MIDIAccessorClient*); |
64 | 68 |
65 MIDIAccessorClient* m_client; | 69 MIDIAccessorClient* m_client; |
66 OwnPtr<WebMIDIAccessor> m_accessor; | 70 OwnPtr<WebMIDIAccessor> m_accessor; |
67 }; | 71 }; |
68 | 72 |
69 } // namespace blink | 73 } // namespace blink |
70 | 74 |
71 #endif // MIDIAccessor_h | 75 #endif // MIDIAccessor_h |
OLD | NEW |