| 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/loader/DocumentLoadTiming.h" | 35 #include "core/loader/DocumentLoadTiming.h" |
| 36 #include "core/loader/DocumentLoader.h" | 36 #include "core/loader/DocumentLoader.h" |
| 37 #include "modules/webmidi/MIDIAccessInitializer.h" | 37 #include "modules/webmidi/MIDIAccessInitializer.h" |
| 38 #include "modules/webmidi/MIDIConnectionEvent.h" | 38 #include "modules/webmidi/MIDIConnectionEvent.h" |
| 39 #include "modules/webmidi/MIDIController.h" | 39 #include "modules/webmidi/MIDIController.h" |
| 40 #include "modules/webmidi/MIDIOptions.h" | 40 #include "modules/webmidi/MIDIOptions.h" |
| 41 #include "modules/webmidi/MIDIPort.h" | 41 #include "modules/webmidi/MIDIPort.h" |
| 42 #include "platform/AsyncMethodRunner.h" | 42 #include "platform/AsyncMethodRunner.h" |
| 43 #include <v8.h> | 43 #include <v8.h> |
| 44 | 44 |
| 45 namespace WebCore { | 45 namespace blink { |
| 46 | 46 |
| 47 MIDIAccess::MIDIAccess(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabled, con
st Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext* execu
tionContext) | 47 MIDIAccess::MIDIAccess(PassOwnPtr<MIDIAccessor> accessor, bool sysexEnabled, con
st Vector<MIDIAccessInitializer::PortDescriptor>& ports, ExecutionContext* execu
tionContext) |
| 48 : ActiveDOMObject(executionContext) | 48 : ActiveDOMObject(executionContext) |
| 49 , m_accessor(accessor) | 49 , m_accessor(accessor) |
| 50 , m_sysexEnabled(sysexEnabled) | 50 , m_sysexEnabled(sysexEnabled) |
| 51 { | 51 { |
| 52 ScriptWrappable::init(this); | 52 ScriptWrappable::init(this); |
| 53 m_accessor->setClient(this); | 53 m_accessor->setClient(this); |
| 54 for (size_t i = 0; i < ports.size(); ++i) { | 54 for (size_t i = 0; i < ports.size(); ++i) { |
| 55 const MIDIAccessInitializer::PortDescriptor& port = ports[i]; | 55 const MIDIAccessInitializer::PortDescriptor& port = ports[i]; |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 m_accessor.clear(); | 122 m_accessor.clear(); |
| 123 } | 123 } |
| 124 | 124 |
| 125 void MIDIAccess::trace(Visitor* visitor) | 125 void MIDIAccess::trace(Visitor* visitor) |
| 126 { | 126 { |
| 127 visitor->trace(m_inputs); | 127 visitor->trace(m_inputs); |
| 128 visitor->trace(m_outputs); | 128 visitor->trace(m_outputs); |
| 129 EventTargetWithInlineData::trace(visitor); | 129 EventTargetWithInlineData::trace(visitor); |
| 130 } | 130 } |
| 131 | 131 |
| 132 } // namespace WebCore | 132 } // namespace blink |
| OLD | NEW |