| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 enum MIDIPortTypeCode { | 45 enum MIDIPortTypeCode { |
| 46 MIDIPortTypeInput, | 46 MIDIPortTypeInput, |
| 47 MIDIPortTypeOutput | 47 MIDIPortTypeOutput |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 virtual ~MIDIPort() { } | 50 virtual ~MIDIPort() { } |
| 51 | 51 |
| 52 String id() const { return m_id; } | 52 String id() const { return m_id; } |
| 53 String manufacturer() const { return m_manufacturer; } | 53 String manufacturer() const { return m_manufacturer; } |
| 54 String name() const { return m_name; } | 54 String name() const { return m_name; } |
| 55 String state() const; |
| 55 String type() const; | 56 String type() const; |
| 56 String version() const { return m_version; } | 57 String version() const { return m_version; } |
| 57 | 58 |
| 58 MIDIAccess* midiAccess() const { return m_access; } | 59 MIDIAccess* midiAccess() const { return m_access; } |
| 59 bool isActive() const { return m_isActive; } | 60 bool isActive() const { return m_isActive; } |
| 60 void setActiveState(bool isActive) { m_isActive = isActive; } | 61 void setActiveState(bool isActive) { m_isActive = isActive; } |
| 61 | 62 |
| 62 DECLARE_VIRTUAL_TRACE(); | 63 DECLARE_VIRTUAL_TRACE(); |
| 63 | 64 |
| 64 DEFINE_ATTRIBUTE_EVENT_LISTENER(disconnect); | 65 DEFINE_ATTRIBUTE_EVENT_LISTENER(disconnect); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 76 String m_name; | 77 String m_name; |
| 77 MIDIPortTypeCode m_type; | 78 MIDIPortTypeCode m_type; |
| 78 String m_version; | 79 String m_version; |
| 79 Member<MIDIAccess> m_access; | 80 Member<MIDIAccess> m_access; |
| 80 bool m_isActive; | 81 bool m_isActive; |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 } // namespace blink | 84 } // namespace blink |
| 84 | 85 |
| 85 #endif // MIDIPort_h | 86 #endif // MIDIPort_h |
| OLD | NEW |