| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 virtual void didAddOutputPort(const String& id, | 46 virtual void didAddOutputPort(const String& id, |
| 47 const String& manufacturer, | 47 const String& manufacturer, |
| 48 const String& name, | 48 const String& name, |
| 49 const String& version, | 49 const String& version, |
| 50 MIDIAccessor::MIDIPortState) = 0; | 50 MIDIAccessor::MIDIPortState) = 0; |
| 51 virtual void didSetInputPortState(unsigned portIndex, | 51 virtual void didSetInputPortState(unsigned portIndex, |
| 52 MIDIAccessor::MIDIPortState) = 0; | 52 MIDIAccessor::MIDIPortState) = 0; |
| 53 virtual void didSetOutputPortState(unsigned portIndex, | 53 virtual void didSetOutputPortState(unsigned portIndex, |
| 54 MIDIAccessor::MIDIPortState) = 0; | 54 MIDIAccessor::MIDIPortState) = 0; |
| 55 | 55 |
| 56 virtual void didStartSession(bool success, | 56 virtual void didStartSession(midi::mojom::Result) = 0; |
| 57 const String& error, | |
| 58 const String& message) = 0; | |
| 59 virtual void didReceiveMIDIData(unsigned portIndex, | 57 virtual void didReceiveMIDIData(unsigned portIndex, |
| 60 const unsigned char* data, | 58 const unsigned char* data, |
| 61 size_t length, | 59 size_t length, |
| 62 double timeStamp) = 0; | 60 double timeStamp) = 0; |
| 63 }; | 61 }; |
| 64 | 62 |
| 65 } // namespace blink | 63 } // namespace blink |
| 66 | 64 |
| 67 #endif // MIDIAccessorClient_h | 65 #endif // MIDIAccessorClient_h |
| OLD | NEW |