| 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 using RefCounted<MIDIAccess>::ref; | 58 using RefCounted<MIDIAccess>::ref; |
| 59 using RefCounted<MIDIAccess>::deref; | 59 using RefCounted<MIDIAccess>::deref; |
| 60 | 60 |
| 61 DEFINE_ATTRIBUTE_EVENT_LISTENER(connect); | 61 DEFINE_ATTRIBUTE_EVENT_LISTENER(connect); |
| 62 DEFINE_ATTRIBUTE_EVENT_LISTENER(disconnect); | 62 DEFINE_ATTRIBUTE_EVENT_LISTENER(disconnect); |
| 63 | 63 |
| 64 void setSysExEnabled(bool); | 64 void setSysExEnabled(bool); |
| 65 bool sysExEnabled() const { return m_sysExEnabled; } | 65 bool sysExEnabled() const { return m_sysExEnabled; } |
| 66 | 66 |
| 67 // EventTarget | 67 // EventTarget |
| 68 virtual const AtomicString& interfaceName() const OVERRIDE { return eventNam
es().interfaceForMIDIAccess; } | 68 virtual const AtomicString& interfaceName() const OVERRIDE { return EventTar
getNames::MIDIAccess; } |
| 69 virtual ExecutionContext* executionContext() const OVERRIDE { return ActiveD
OMObject::executionContext(); } | 69 virtual ExecutionContext* executionContext() const OVERRIDE { return ActiveD
OMObject::executionContext(); } |
| 70 | 70 |
| 71 // ActiveDOMObject | 71 // ActiveDOMObject |
| 72 virtual bool canSuspend() const OVERRIDE { return true; } | 72 virtual bool canSuspend() const OVERRIDE { return true; } |
| 73 virtual void stop(); | 73 virtual void stop(); |
| 74 | 74 |
| 75 // MIDIAccessorClient | 75 // MIDIAccessorClient |
| 76 virtual void didAddInputPort(const String& id, const String& manufacturer, c
onst String& name, const String& version) OVERRIDE; | 76 virtual void didAddInputPort(const String& id, const String& manufacturer, c
onst String& name, const String& version) OVERRIDE; |
| 77 virtual void didAddOutputPort(const String& id, const String& manufacturer,
const String& name, const String& version) OVERRIDE; | 77 virtual void didAddOutputPort(const String& id, const String& manufacturer,
const String& name, const String& version) OVERRIDE; |
| 78 virtual void didStartSession(bool success) OVERRIDE; | 78 virtual void didStartSession(bool success) OVERRIDE; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 97 | 97 |
| 98 OwnPtr<MIDIAccessor> m_accessor; | 98 OwnPtr<MIDIAccessor> m_accessor; |
| 99 bool m_hasAccess; | 99 bool m_hasAccess; |
| 100 bool m_sysExEnabled; | 100 bool m_sysExEnabled; |
| 101 bool m_requesting; | 101 bool m_requesting; |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 } // namespace WebCore | 104 } // namespace WebCore |
| 105 | 105 |
| 106 #endif // MIDIAccess_h | 106 #endif // MIDIAccess_h |
| OLD | NEW |