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/RefCounted.h" | 42 #include "wtf/RefCounted.h" |
43 #include "wtf/RefPtr.h" | 43 #include "wtf/RefPtr.h" |
44 #include "wtf/Vector.h" | 44 #include "wtf/Vector.h" |
45 | 45 |
46 namespace WebCore { | 46 namespace WebCore { |
47 | 47 |
48 class ExecutionContext; | 48 class ExecutionContext; |
49 class MIDIAccessPromise; | 49 class MIDIAccessPromise; |
50 | 50 |
51 class MIDIAccess FINAL : public RefCountedWillBeRefCountedGarbageCollected<MIDIA
ccess>, public ScriptWrappable, public ActiveDOMObject, public EventTargetWithIn
lineData, public MIDIAccessorClient { | 51 class MIDIAccess FINAL : public RefCountedWillBeRefCountedGarbageCollected<MIDIA
ccess>, public ScriptWrappable, public ActiveDOMObject, public EventTargetWithIn
lineData, public MIDIAccessorClient { |
52 DECLARE_GC_INFO; | |
53 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<M
IDIAccess>); | 52 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<M
IDIAccess>); |
54 public: | 53 public: |
55 virtual ~MIDIAccess(); | 54 virtual ~MIDIAccess(); |
56 static PassRefPtrWillBeRawPtr<MIDIAccess> create(ExecutionContext*, MIDIAcce
ssPromise*); | 55 static PassRefPtrWillBeRawPtr<MIDIAccess> create(ExecutionContext*, MIDIAcce
ssPromise*); |
57 | 56 |
58 MIDIInputVector inputs() const { return m_inputs; } | 57 MIDIInputVector inputs() const { return m_inputs; } |
59 MIDIOutputVector outputs() const { return m_outputs; } | 58 MIDIOutputVector outputs() const { return m_outputs; } |
60 | 59 |
61 DEFINE_ATTRIBUTE_EVENT_LISTENER(connect); | 60 DEFINE_ATTRIBUTE_EVENT_LISTENER(connect); |
62 DEFINE_ATTRIBUTE_EVENT_LISTENER(disconnect); | 61 DEFINE_ATTRIBUTE_EVENT_LISTENER(disconnect); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 93 |
95 OwnPtr<MIDIAccessor> m_accessor; | 94 OwnPtr<MIDIAccessor> m_accessor; |
96 bool m_hasAccess; | 95 bool m_hasAccess; |
97 bool m_sysExEnabled; | 96 bool m_sysExEnabled; |
98 bool m_requesting; | 97 bool m_requesting; |
99 }; | 98 }; |
100 | 99 |
101 } // namespace WebCore | 100 } // namespace WebCore |
102 | 101 |
103 #endif // MIDIAccess_h | 102 #endif // MIDIAccess_h |
OLD | NEW |