| 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 26 matching lines...) Expand all Loading... |
| 37 #include "bindings/v8/V8Binding.h" | 37 #include "bindings/v8/V8Binding.h" |
| 38 #include "core/dom/DOMError.h" | 38 #include "core/dom/DOMError.h" |
| 39 #include "core/dom/Document.h" | 39 #include "core/dom/Document.h" |
| 40 #include "core/loader/DocumentLoadTiming.h" | 40 #include "core/loader/DocumentLoadTiming.h" |
| 41 #include "core/loader/DocumentLoader.h" | 41 #include "core/loader/DocumentLoader.h" |
| 42 #include "modules/webmidi/MIDIConnectionEvent.h" | 42 #include "modules/webmidi/MIDIConnectionEvent.h" |
| 43 #include "modules/webmidi/MIDIController.h" | 43 #include "modules/webmidi/MIDIController.h" |
| 44 #include "modules/webmidi/MIDIOptions.h" | 44 #include "modules/webmidi/MIDIOptions.h" |
| 45 #include "modules/webmidi/MIDIPort.h" | 45 #include "modules/webmidi/MIDIPort.h" |
| 46 #include "platform/AsyncMethodRunner.h" | 46 #include "platform/AsyncMethodRunner.h" |
| 47 #include <v8.h> |
| 47 | 48 |
| 48 namespace WebCore { | 49 namespace WebCore { |
| 49 | 50 |
| 50 class MIDIAccess::PostAction : public ScriptFunction { | 51 class MIDIAccess::PostAction : public ScriptFunction { |
| 51 public: | 52 public: |
| 52 static PassOwnPtr<MIDIAccess::PostAction> create(v8::Isolate* isolate, WeakP
tr<MIDIAccess> owner, State state) { return adoptPtr(new PostAction(isolate, own
er, state)); } | 53 static PassOwnPtr<MIDIAccess::PostAction> create(v8::Isolate* isolate, WeakP
tr<MIDIAccess> owner, State state) { return adoptPtr(new PostAction(isolate, own
er, state)); } |
| 53 | 54 |
| 54 private: | 55 private: |
| 55 PostAction(v8::Isolate* isolate, WeakPtr<MIDIAccess> owner, State state): Sc
riptFunction(isolate), m_owner(owner), m_state(state) { } | 56 PostAction(v8::Isolate* isolate, WeakPtr<MIDIAccess> owner, State state): Sc
riptFunction(isolate), m_owner(owner), m_state(state) { } |
| 56 virtual ScriptValue call(ScriptValue value) OVERRIDE | 57 virtual ScriptValue call(ScriptValue value) OVERRIDE |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 225 } | 226 } |
| 226 | 227 |
| 227 void MIDIAccess::trace(Visitor* visitor) | 228 void MIDIAccess::trace(Visitor* visitor) |
| 228 { | 229 { |
| 229 visitor->trace(m_inputs); | 230 visitor->trace(m_inputs); |
| 230 visitor->trace(m_outputs); | 231 visitor->trace(m_outputs); |
| 231 EventTargetWithInlineData::trace(visitor); | 232 EventTargetWithInlineData::trace(visitor); |
| 232 } | 233 } |
| 233 | 234 |
| 234 } // namespace WebCore | 235 } // namespace WebCore |
| OLD | NEW |