| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 static PassRefPtr<MIDIConnectionEvent> create(const AtomicString& type, cons
t MIDIConnectionEventInit& initializer) | 60 static PassRefPtr<MIDIConnectionEvent> create(const AtomicString& type, cons
t MIDIConnectionEventInit& initializer) |
| 61 { | 61 { |
| 62 return adoptRef(new MIDIConnectionEvent(type, initializer)); | 62 return adoptRef(new MIDIConnectionEvent(type, initializer)); |
| 63 } | 63 } |
| 64 | 64 |
| 65 RefPtr<MIDIPort> port() { return m_port; } | 65 RefPtr<MIDIPort> port() { return m_port; } |
| 66 | 66 |
| 67 virtual const AtomicString& interfaceName() const OVERRIDE { return EventNam
es::MIDIConnectionEvent; } | 67 virtual const AtomicString& interfaceName() const OVERRIDE { return EventNam
es::MIDIConnectionEvent; } |
| 68 | 68 |
| 69 virtual void trace(Visitor* visitor) OVERRIDE { Event::trace(visitor); } |
| 70 |
| 69 private: | 71 private: |
| 70 MIDIConnectionEvent() | 72 MIDIConnectionEvent() |
| 71 { | 73 { |
| 72 ScriptWrappable::init(this); | 74 ScriptWrappable::init(this); |
| 73 } | 75 } |
| 74 | 76 |
| 75 MIDIConnectionEvent(const AtomicString& type, PassRefPtr<MIDIPort> port) | 77 MIDIConnectionEvent(const AtomicString& type, PassRefPtr<MIDIPort> port) |
| 76 : Event(type, false, false) | 78 : Event(type, false, false) |
| 77 , m_port(port) | 79 , m_port(port) |
| 78 { | 80 { |
| 79 ScriptWrappable::init(this); | 81 ScriptWrappable::init(this); |
| 80 } | 82 } |
| 81 | 83 |
| 82 MIDIConnectionEvent(const AtomicString& type, const MIDIConnectionEventInit&
initializer) | 84 MIDIConnectionEvent(const AtomicString& type, const MIDIConnectionEventInit&
initializer) |
| 83 : Event(type, initializer) | 85 : Event(type, initializer) |
| 84 , m_port(initializer.port) | 86 , m_port(initializer.port) |
| 85 { | 87 { |
| 86 ScriptWrappable::init(this); | 88 ScriptWrappable::init(this); |
| 87 } | 89 } |
| 88 | 90 |
| 89 RefPtr<MIDIPort> m_port; | 91 RefPtr<MIDIPort> m_port; |
| 90 }; | 92 }; |
| 91 | 93 |
| 92 } // namespace WebCore | 94 } // namespace WebCore |
| 93 | 95 |
| 94 #endif // MIDIConnectionEvent_h | 96 #endif // MIDIConnectionEvent_h |
| OLD | NEW |