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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 MIDIInputMap* inputs() const; | 64 MIDIInputMap* inputs() const; |
65 MIDIOutputMap* outputs() const; | 65 MIDIOutputMap* outputs() const; |
66 | 66 |
67 EventListener* onstatechange(); | 67 EventListener* onstatechange(); |
68 void setOnstatechange(PassRefPtrWillBeRawPtr<EventListener>); | 68 void setOnstatechange(PassRefPtrWillBeRawPtr<EventListener>); |
69 | 69 |
70 bool sysexEnabled() const { return m_sysexEnabled; } | 70 bool sysexEnabled() const { return m_sysexEnabled; } |
71 | 71 |
72 // EventTarget | 72 // EventTarget |
73 const AtomicString& interfaceName() const override { return EventTargetNames
::MIDIAccess; } | 73 const AtomicString& interfaceName() const override { return EventTargetNames
::MIDIAccess; } |
74 ExecutionContext* executionContext() const override { return ActiveDOMObject
::executionContext(); } | 74 ExecutionContext* getExecutionContext() const override { return ActiveDOMObj
ect::getExecutionContext(); } |
75 | 75 |
76 // ActiveDOMObject | 76 // ActiveDOMObject |
77 bool hasPendingActivity() const override; | 77 bool hasPendingActivity() const override; |
78 void stop() override; | 78 void stop() override; |
79 | 79 |
80 // MIDIAccessorClient | 80 // MIDIAccessorClient |
81 void didAddInputPort(const String& id, const String& manufacturer, const Str
ing& name, const String& version, MIDIAccessor::MIDIPortState) override; | 81 void didAddInputPort(const String& id, const String& manufacturer, const Str
ing& name, const String& version, MIDIAccessor::MIDIPortState) override; |
82 void didAddOutputPort(const String& id, const String& manufacturer, const St
ring& name, const String& version, MIDIAccessor::MIDIPortState) override; | 82 void didAddOutputPort(const String& id, const String& manufacturer, const St
ring& name, const String& version, MIDIAccessor::MIDIPortState) override; |
83 void didSetInputPortState(unsigned portIndex, MIDIAccessor::MIDIPortState) o
verride; | 83 void didSetInputPortState(unsigned portIndex, MIDIAccessor::MIDIPortState) o
verride; |
84 void didSetOutputPortState(unsigned portIndex, MIDIAccessor::MIDIPortState)
override; | 84 void didSetOutputPortState(unsigned portIndex, MIDIAccessor::MIDIPortState)
override; |
(...skipping 20 matching lines...) Expand all Loading... |
105 OwnPtr<MIDIAccessor> m_accessor; | 105 OwnPtr<MIDIAccessor> m_accessor; |
106 bool m_sysexEnabled; | 106 bool m_sysexEnabled; |
107 bool m_hasPendingActivity; | 107 bool m_hasPendingActivity; |
108 HeapVector<Member<MIDIInput>> m_inputs; | 108 HeapVector<Member<MIDIInput>> m_inputs; |
109 HeapVector<Member<MIDIOutput>> m_outputs; | 109 HeapVector<Member<MIDIOutput>> m_outputs; |
110 }; | 110 }; |
111 | 111 |
112 } // namespace blink | 112 } // namespace blink |
113 | 113 |
114 #endif // MIDIAccess_h | 114 #endif // MIDIAccess_h |
OLD | NEW |