| 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 MIDIAccessor::MIDIPortState) override; | 101 MIDIAccessor::MIDIPortState) override; |
| 102 void didAddOutputPort(const String& id, | 102 void didAddOutputPort(const String& id, |
| 103 const String& manufacturer, | 103 const String& manufacturer, |
| 104 const String& name, | 104 const String& name, |
| 105 const String& version, | 105 const String& version, |
| 106 MIDIAccessor::MIDIPortState) override; | 106 MIDIAccessor::MIDIPortState) override; |
| 107 void didSetInputPortState(unsigned portIndex, | 107 void didSetInputPortState(unsigned portIndex, |
| 108 MIDIAccessor::MIDIPortState) override; | 108 MIDIAccessor::MIDIPortState) override; |
| 109 void didSetOutputPortState(unsigned portIndex, | 109 void didSetOutputPortState(unsigned portIndex, |
| 110 MIDIAccessor::MIDIPortState) override; | 110 MIDIAccessor::MIDIPortState) override; |
| 111 void didStartSession(bool success, | 111 void didStartSession(midi::mojom::Result) override { |
| 112 const String& error, | |
| 113 const String& message) override { | |
| 114 // This method is for MIDIAccess initialization: MIDIAccessInitializer | 112 // This method is for MIDIAccess initialization: MIDIAccessInitializer |
| 115 // has the implementation. | 113 // has the implementation. |
| 116 NOTREACHED(); | 114 NOTREACHED(); |
| 117 } | 115 } |
| 118 void didReceiveMIDIData(unsigned portIndex, | 116 void didReceiveMIDIData(unsigned portIndex, |
| 119 const unsigned char* data, | 117 const unsigned char* data, |
| 120 size_t length, | 118 size_t length, |
| 121 double timeStamp) override; | 119 double timeStamp) override; |
| 122 | 120 |
| 123 // |timeStampInMilliseconds| is in the same time coordinate system as | 121 // |timeStampInMilliseconds| is in the same time coordinate system as |
| (...skipping 18 matching lines...) Expand all Loading... |
| 142 std::unique_ptr<MIDIAccessor> m_accessor; | 140 std::unique_ptr<MIDIAccessor> m_accessor; |
| 143 bool m_sysexEnabled; | 141 bool m_sysexEnabled; |
| 144 bool m_hasPendingActivity; | 142 bool m_hasPendingActivity; |
| 145 HeapVector<Member<MIDIInput>> m_inputs; | 143 HeapVector<Member<MIDIInput>> m_inputs; |
| 146 HeapVector<Member<MIDIOutput>> m_outputs; | 144 HeapVector<Member<MIDIOutput>> m_outputs; |
| 147 }; | 145 }; |
| 148 | 146 |
| 149 } // namespace blink | 147 } // namespace blink |
| 150 | 148 |
| 151 #endif // MIDIAccess_h | 149 #endif // MIDIAccess_h |
| OLD | NEW |