| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 enum MIDIPortTypeCode { | 45 enum MIDIPortTypeCode { |
| 46 MIDIPortTypeInput, | 46 MIDIPortTypeInput, |
| 47 MIDIPortTypeOutput | 47 MIDIPortTypeOutput |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 static PassRefPtr<MIDIPort> create(ScriptExecutionContext*, const String& id
, const String& manufacturer, const String& name, MIDIPortTypeCode, const String
& version); | 50 static PassRefPtr<MIDIPort> create(ScriptExecutionContext*, const String& id
, const String& manufacturer, const String& name, MIDIPortTypeCode, const String
& version); |
| 51 virtual ~MIDIPort(); | 51 virtual ~MIDIPort(); |
| 52 | 52 |
| 53 virtual void trace(Visitor*) { } | 53 virtual void trace(Visitor*) { } |
| 54 | 54 |
| 55 virtual void visitWith(Visitor* visitor) const OVERRIDE | 55 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
| 56 { | 56 { |
| 57 visitor->visit(this); | 57 visitor->mark(this); |
| 58 } | 58 } |
| 59 | 59 |
| 60 String id() const { return m_id; } | 60 String id() const { return m_id; } |
| 61 String manufacturer() const { return m_manufacturer; } | 61 String manufacturer() const { return m_manufacturer; } |
| 62 String name() const { return m_name; } | 62 String name() const { return m_name; } |
| 63 String type() const; | 63 String type() const; |
| 64 String version() const { return m_version; } | 64 String version() const { return m_version; } |
| 65 | 65 |
| 66 using RefCountedGarbageCollected<MIDIPort>::ref; | 66 using RefCountedGarbageCollected<MIDIPort>::ref; |
| 67 using RefCountedGarbageCollected<MIDIPort>::deref; | 67 using RefCountedGarbageCollected<MIDIPort>::deref; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 89 MIDIPortTypeCode m_type; | 89 MIDIPortTypeCode m_type; |
| 90 String m_version; | 90 String m_version; |
| 91 EventTargetData m_eventTargetData; | 91 EventTargetData m_eventTargetData; |
| 92 }; | 92 }; |
| 93 | 93 |
| 94 typedef Vector<RefPtr<MIDIPort> > MIDIPortVector; | 94 typedef Vector<RefPtr<MIDIPort> > MIDIPortVector; |
| 95 | 95 |
| 96 } // namespace WebCore | 96 } // namespace WebCore |
| 97 | 97 |
| 98 #endif // MIDIPort_h | 98 #endif // MIDIPort_h |
| OLD | NEW |