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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 68 |
69 EventListener* onstatechange(); | 69 EventListener* onstatechange(); |
70 void setOnstatechange(EventListener*); | 70 void setOnstatechange(EventListener*); |
71 | 71 |
72 bool sysexEnabled() const { return m_sysexEnabled; } | 72 bool sysexEnabled() const { return m_sysexEnabled; } |
73 | 73 |
74 // EventTarget | 74 // EventTarget |
75 const AtomicString& interfaceName() const override { return EventTargetNames
::MIDIAccess; } | 75 const AtomicString& interfaceName() const override { return EventTargetNames
::MIDIAccess; } |
76 ExecutionContext* getExecutionContext() const override { return ActiveDOMObj
ect::getExecutionContext(); } | 76 ExecutionContext* getExecutionContext() const override { return ActiveDOMObj
ect::getExecutionContext(); } |
77 | 77 |
78 // ActiveScriptWrappable | 78 // ScriptWrappable |
79 bool hasPendingActivity() const final; | 79 bool hasPendingActivity() const final; |
80 | 80 |
81 // ActiveDOMObject | 81 // ActiveDOMObject |
82 void stop() override; | 82 void stop() override; |
83 | 83 |
84 // MIDIAccessorClient | 84 // MIDIAccessorClient |
85 void didAddInputPort(const String& id, const String& manufacturer, const Str
ing& name, const String& version, MIDIAccessor::MIDIPortState) override; | 85 void didAddInputPort(const String& id, const String& manufacturer, const Str
ing& name, const String& version, MIDIAccessor::MIDIPortState) override; |
86 void didAddOutputPort(const String& id, const String& manufacturer, const St
ring& name, const String& version, MIDIAccessor::MIDIPortState) override; | 86 void didAddOutputPort(const String& id, const String& manufacturer, const St
ring& name, const String& version, MIDIAccessor::MIDIPortState) override; |
87 void didSetInputPortState(unsigned portIndex, MIDIAccessor::MIDIPortState) o
verride; | 87 void didSetInputPortState(unsigned portIndex, MIDIAccessor::MIDIPortState) o
verride; |
88 void didSetOutputPortState(unsigned portIndex, MIDIAccessor::MIDIPortState)
override; | 88 void didSetOutputPortState(unsigned portIndex, MIDIAccessor::MIDIPortState)
override; |
(...skipping 20 matching lines...) Expand all Loading... |
109 std::unique_ptr<MIDIAccessor> m_accessor; | 109 std::unique_ptr<MIDIAccessor> m_accessor; |
110 bool m_sysexEnabled; | 110 bool m_sysexEnabled; |
111 bool m_hasPendingActivity; | 111 bool m_hasPendingActivity; |
112 HeapVector<Member<MIDIInput>> m_inputs; | 112 HeapVector<Member<MIDIInput>> m_inputs; |
113 HeapVector<Member<MIDIOutput>> m_outputs; | 113 HeapVector<Member<MIDIOutput>> m_outputs; |
114 }; | 114 }; |
115 | 115 |
116 } // namespace blink | 116 } // namespace blink |
117 | 117 |
118 #endif // MIDIAccess_h | 118 #endif // MIDIAccess_h |
OLD | NEW |