| 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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 42 #include "wtf/Vector.h" | 42 #include "wtf/Vector.h" |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 | 45 |
| 46 class ExecutionContext; | 46 class ExecutionContext; |
| 47 class MIDIInput; | 47 class MIDIInput; |
| 48 class MIDIInputMap; | 48 class MIDIInputMap; |
| 49 class MIDIOutput; | 49 class MIDIOutput; |
| 50 class MIDIOutputMap; | 50 class MIDIOutputMap; |
| 51 | 51 |
| 52 class MIDIAccess final : public RefCountedGarbageCollectedEventTargetWithInlineD
ata<MIDIAccess>, public ActiveScriptWrappable, public ActiveDOMObject, public MI
DIAccessorClient { | 52 class MIDIAccess final : public EventTargetWithInlineData, public ActiveScriptWr
appable, public ActiveDOMObject, public MIDIAccessorClient { |
| 53 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(MIDIAccess); | 53 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(MIDIAccess); |
| 54 DEFINE_WRAPPERTYPEINFO(); | 54 DEFINE_WRAPPERTYPEINFO(); |
| 55 USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess); | 55 USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess); |
| 56 USING_PRE_FINALIZER(MIDIAccess, dispose); | 56 USING_PRE_FINALIZER(MIDIAccess, dispose); |
| 57 public: | 57 public: |
| 58 static MIDIAccess* create(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabl
ed, const Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext
* executionContext) | 58 static MIDIAccess* create(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabl
ed, const Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext
* executionContext) |
| 59 { | 59 { |
| 60 MIDIAccess* access = new MIDIAccess(accessor, sysexEnabled, ports, execu
tionContext); | 60 MIDIAccess* access = new MIDIAccess(accessor, sysexEnabled, ports, execu
tionContext); |
| 61 access->suspendIfNeeded(); | 61 access->suspendIfNeeded(); |
| 62 return access; | 62 return access; |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 OwnPtr<MIDIAccessor> m_accessor; | 109 OwnPtr<MIDIAccessor> m_accessor; |
| 110 bool m_sysexEnabled; | 110 bool m_sysexEnabled; |
| 111 bool m_hasPendingActivity; | 111 bool m_hasPendingActivity; |
| 112 HeapVector<Member<MIDIInput>> m_inputs; | 112 HeapVector<Member<MIDIInput>> m_inputs; |
| 113 HeapVector<Member<MIDIOutput>> m_outputs; | 113 HeapVector<Member<MIDIOutput>> m_outputs; |
| 114 }; | 114 }; |
| 115 | 115 |
| 116 } // namespace blink | 116 } // namespace blink |
| 117 | 117 |
| 118 #endif // MIDIAccess_h | 118 #endif // MIDIAccess_h |
| OLD | NEW |