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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 return EventTargetNames::MIDIAccess; | 84 return EventTargetNames::MIDIAccess; |
85 } | 85 } |
86 ExecutionContext* getExecutionContext() const override { | 86 ExecutionContext* getExecutionContext() const override { |
87 return ActiveDOMObject::getExecutionContext(); | 87 return ActiveDOMObject::getExecutionContext(); |
88 } | 88 } |
89 | 89 |
90 // ScriptWrappable | 90 // ScriptWrappable |
91 bool hasPendingActivity() const final; | 91 bool hasPendingActivity() const final; |
92 | 92 |
93 // ActiveDOMObject | 93 // ActiveDOMObject |
94 void stop() override; | 94 void contextDestroyed() override; |
95 | 95 |
96 // MIDIAccessorClient | 96 // MIDIAccessorClient |
97 void didAddInputPort(const String& id, | 97 void didAddInputPort(const String& id, |
98 const String& manufacturer, | 98 const String& manufacturer, |
99 const String& name, | 99 const String& name, |
100 const String& version, | 100 const String& version, |
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, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 std::unique_ptr<MIDIAccessor> m_accessor; | 141 std::unique_ptr<MIDIAccessor> m_accessor; |
142 bool m_sysexEnabled; | 142 bool m_sysexEnabled; |
143 bool m_hasPendingActivity; | 143 bool m_hasPendingActivity; |
144 HeapVector<Member<MIDIInput>> m_inputs; | 144 HeapVector<Member<MIDIInput>> m_inputs; |
145 HeapVector<Member<MIDIOutput>> m_outputs; | 145 HeapVector<Member<MIDIOutput>> m_outputs; |
146 }; | 146 }; |
147 | 147 |
148 } // namespace blink | 148 } // namespace blink |
149 | 149 |
150 #endif // MIDIAccess_h | 150 #endif // MIDIAccess_h |
OLD | NEW |