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 "platform/heap/Handle.h" | 42 #include "platform/heap/Handle.h" |
43 #include "wtf/Vector.h" | 43 #include "wtf/Vector.h" |
44 | 44 |
45 namespace blink { | 45 namespace blink { |
46 | 46 |
47 class ExecutionContext; | 47 class ExecutionContext; |
48 struct MIDIOptions; | 48 struct MIDIOptions; |
49 | 49 |
50 class MIDIAccess FINAL : public RefCountedGarbageCollectedWillBeGarbageCollected
Finalized<MIDIAccess>, public ActiveDOMObject, public EventTargetWithInlineData,
public MIDIAccessorClient { | 50 class MIDIAccess FINAL : public RefCountedGarbageCollectedWillBeGarbageCollected
Finalized<MIDIAccess>, public ActiveDOMObject, public EventTargetWithInlineData,
public MIDIAccessorClient { |
51 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<M
IDIAccess>); | 51 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<M
IDIAccess>); |
| 52 DEFINE_WRAPPERTYPEINFO(); |
52 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess); | 53 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(MIDIAccess); |
53 public: | 54 public: |
54 static MIDIAccess* create(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabl
ed, const Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext
* executionContext) | 55 static MIDIAccess* create(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabl
ed, const Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext
* executionContext) |
55 { | 56 { |
56 MIDIAccess* access = new MIDIAccess(accessor, sysexEnabled, ports, execu
tionContext); | 57 MIDIAccess* access = new MIDIAccess(accessor, sysexEnabled, ports, execu
tionContext); |
57 access->suspendIfNeeded(); | 58 access->suspendIfNeeded(); |
58 return access; | 59 return access; |
59 } | 60 } |
60 virtual ~MIDIAccess(); | 61 virtual ~MIDIAccess(); |
61 | 62 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 | 96 |
96 OwnPtr<MIDIAccessor> m_accessor; | 97 OwnPtr<MIDIAccessor> m_accessor; |
97 bool m_sysexEnabled; | 98 bool m_sysexEnabled; |
98 MIDIInputVector m_inputs; | 99 MIDIInputVector m_inputs; |
99 MIDIOutputVector m_outputs; | 100 MIDIOutputVector m_outputs; |
100 }; | 101 }; |
101 | 102 |
102 } // namespace blink | 103 } // namespace blink |
103 | 104 |
104 #endif // MIDIAccess_h | 105 #endif // MIDIAccess_h |
OLD | NEW |