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 25 matching lines...) Expand all Loading... |
36 #include "heap/Handle.h" | 36 #include "heap/Handle.h" |
37 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
38 #include "wtf/RefPtr.h" | 38 #include "wtf/RefPtr.h" |
39 #include "wtf/Vector.h" | 39 #include "wtf/Vector.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace WebCore { |
42 | 42 |
43 class MIDIAccess; | 43 class MIDIAccess; |
44 | 44 |
45 class MIDIPort : public RefCountedWillBeRefCountedGarbageCollected<MIDIPort>, pu
blic ScriptWrappable, public EventTargetWithInlineData { | 45 class MIDIPort : public RefCountedWillBeRefCountedGarbageCollected<MIDIPort>, pu
blic ScriptWrappable, public EventTargetWithInlineData { |
46 DECLARE_GC_INFO; | |
47 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<M
IDIPort>); | 46 DEFINE_EVENT_TARGET_REFCOUNTING(RefCountedWillBeRefCountedGarbageCollected<M
IDIPort>); |
48 public: | 47 public: |
49 enum MIDIPortTypeCode { | 48 enum MIDIPortTypeCode { |
50 MIDIPortTypeInput, | 49 MIDIPortTypeInput, |
51 MIDIPortTypeOutput | 50 MIDIPortTypeOutput |
52 }; | 51 }; |
53 | 52 |
54 virtual ~MIDIPort() { } | 53 virtual ~MIDIPort() { } |
55 | 54 |
56 String id() const { return m_id; } | 55 String id() const { return m_id; } |
(...skipping 20 matching lines...) Expand all Loading... |
77 String m_manufacturer; | 76 String m_manufacturer; |
78 String m_name; | 77 String m_name; |
79 MIDIPortTypeCode m_type; | 78 MIDIPortTypeCode m_type; |
80 String m_version; | 79 String m_version; |
81 RawPtrWillBeMember<MIDIAccess> m_access; | 80 RawPtrWillBeMember<MIDIAccess> m_access; |
82 }; | 81 }; |
83 | 82 |
84 } // namespace WebCore | 83 } // namespace WebCore |
85 | 84 |
86 #endif // MIDIPort_h | 85 #endif // MIDIPort_h |
OLD | NEW |