| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 ScriptPromise open(ScriptState*); | 71 ScriptPromise open(ScriptState*); |
| 72 ScriptPromise close(ScriptState*); | 72 ScriptPromise close(ScriptState*); |
| 73 | 73 |
| 74 MIDIAccess* midiAccess() const { return m_access; } | 74 MIDIAccess* midiAccess() const { return m_access; } |
| 75 MIDIAccessor::MIDIPortState getState() const { return m_state; } | 75 MIDIAccessor::MIDIPortState getState() const { return m_state; } |
| 76 void setState(MIDIAccessor::MIDIPortState); | 76 void setState(MIDIAccessor::MIDIPortState); |
| 77 ConnectionState getConnection() const { return m_connection; } | 77 ConnectionState getConnection() const { return m_connection; } |
| 78 | 78 |
| 79 DECLARE_VIRTUAL_TRACE(); | 79 DECLARE_VIRTUAL_TRACE(); |
| 80 | 80 |
| 81 DECLARE_VIRTUAL_TRACE_WRAPPERS(); |
| 82 |
| 81 DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange); | 83 DEFINE_ATTRIBUTE_EVENT_LISTENER(statechange); |
| 82 | 84 |
| 83 // EventTarget | 85 // EventTarget |
| 84 const AtomicString& interfaceName() const override { return EventTargetNames
::MIDIPort; } | 86 const AtomicString& interfaceName() const override { return EventTargetNames
::MIDIPort; } |
| 85 ExecutionContext* getExecutionContext() const final; | 87 ExecutionContext* getExecutionContext() const final; |
| 86 | 88 |
| 87 // ActiveScriptWrappable | 89 // ActiveScriptWrappable |
| 88 bool hasPendingActivity() const final; | 90 bool hasPendingActivity() const final; |
| 89 | 91 |
| 90 // ActiveDOMObject | 92 // ActiveDOMObject |
| (...skipping 16 matching lines...) Expand all Loading... |
| 107 TypeCode m_type; | 109 TypeCode m_type; |
| 108 String m_version; | 110 String m_version; |
| 109 Member<MIDIAccess> m_access; | 111 Member<MIDIAccess> m_access; |
| 110 MIDIAccessor::MIDIPortState m_state; | 112 MIDIAccessor::MIDIPortState m_state; |
| 111 ConnectionState m_connection; | 113 ConnectionState m_connection; |
| 112 }; | 114 }; |
| 113 | 115 |
| 114 } // namespace blink | 116 } // namespace blink |
| 115 | 117 |
| 116 #endif // MIDIPort_h | 118 #endif // MIDIPort_h |
| OLD | NEW |