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 24 matching lines...) Expand all Loading... |
35 #include "core/dom/Document.h" | 35 #include "core/dom/Document.h" |
36 #include "core/loader/DocumentLoadTiming.h" | 36 #include "core/loader/DocumentLoadTiming.h" |
37 #include "core/loader/DocumentLoader.h" | 37 #include "core/loader/DocumentLoader.h" |
38 #include "modules/webmidi/MIDIAccessPromise.h" | 38 #include "modules/webmidi/MIDIAccessPromise.h" |
39 #include "modules/webmidi/MIDIConnectionEvent.h" | 39 #include "modules/webmidi/MIDIConnectionEvent.h" |
40 #include "modules/webmidi/MIDIController.h" | 40 #include "modules/webmidi/MIDIController.h" |
41 #include "modules/webmidi/MIDIPort.h" | 41 #include "modules/webmidi/MIDIPort.h" |
42 | 42 |
43 namespace WebCore { | 43 namespace WebCore { |
44 | 44 |
45 DEFINE_GC_INFO(MIDIAccess); | |
46 | |
47 PassRefPtrWillBeRawPtr<MIDIAccess> MIDIAccess::create(ExecutionContext* context,
MIDIAccessPromise* promise) | 45 PassRefPtrWillBeRawPtr<MIDIAccess> MIDIAccess::create(ExecutionContext* context,
MIDIAccessPromise* promise) |
48 { | 46 { |
49 RefPtrWillBeRawPtr<MIDIAccess> midiAccess(adoptRefCountedWillBeRefCountedGar
bageCollected(new MIDIAccess(context, promise))); | 47 RefPtrWillBeRawPtr<MIDIAccess> midiAccess(adoptRefCountedWillBeRefCountedGar
bageCollected(new MIDIAccess(context, promise))); |
50 midiAccess->suspendIfNeeded(); | 48 midiAccess->suspendIfNeeded(); |
51 midiAccess->startRequest(); | 49 midiAccess->startRequest(); |
52 return midiAccess.release(); | 50 return midiAccess.release(); |
53 } | 51 } |
54 | 52 |
55 MIDIAccess::~MIDIAccess() | 53 MIDIAccess::~MIDIAccess() |
56 { | 54 { |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
182 } | 180 } |
183 | 181 |
184 void MIDIAccess::trace(Visitor* visitor) | 182 void MIDIAccess::trace(Visitor* visitor) |
185 { | 183 { |
186 visitor->trace(m_inputs); | 184 visitor->trace(m_inputs); |
187 visitor->trace(m_outputs); | 185 visitor->trace(m_outputs); |
188 visitor->trace(m_promise); | 186 visitor->trace(m_promise); |
189 } | 187 } |
190 | 188 |
191 } // namespace WebCore | 189 } // namespace WebCore |
OLD | NEW |