| 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 29 matching lines...) Expand all Loading... |
| 40 #include "modules/webmidi/MIDIOutput.h" | 40 #include "modules/webmidi/MIDIOutput.h" |
| 41 #include "wtf/RefCounted.h" | 41 #include "wtf/RefCounted.h" |
| 42 #include "wtf/RefPtr.h" | 42 #include "wtf/RefPtr.h" |
| 43 #include "wtf/Vector.h" | 43 #include "wtf/Vector.h" |
| 44 | 44 |
| 45 namespace WebCore { | 45 namespace WebCore { |
| 46 | 46 |
| 47 class ScriptExecutionContext; | 47 class ScriptExecutionContext; |
| 48 class MIDIAccessPromise; | 48 class MIDIAccessPromise; |
| 49 | 49 |
| 50 class MIDIAccess : public RefCounted<MIDIAccess>, public ScriptWrappable, public
ActiveDOMObject, public EventTarget, public MIDIAccessorClient { | 50 class MIDIAccess : public EventTarget, public RefCounted<MIDIAccess>, public Scr
iptWrappable, public ActiveDOMObject, public MIDIAccessorClient { |
| 51 public: | 51 public: |
| 52 virtual ~MIDIAccess(); | 52 virtual ~MIDIAccess(); |
| 53 static PassRefPtr<MIDIAccess> create(ScriptExecutionContext*, MIDIAccessProm
ise*); | 53 static PassRefPtr<MIDIAccess> create(ScriptExecutionContext*, MIDIAccessProm
ise*); |
| 54 | 54 |
| 55 MIDIInputVector inputs() const { return m_inputs; } | 55 MIDIInputVector inputs() const { return m_inputs; } |
| 56 MIDIOutputVector outputs() const { return m_outputs; } | 56 MIDIOutputVector outputs() const { return m_outputs; } |
| 57 | 57 |
| 58 using RefCounted<MIDIAccess>::ref; | 58 using RefCounted<MIDIAccess>::ref; |
| 59 using RefCounted<MIDIAccess>::deref; | 59 using RefCounted<MIDIAccess>::deref; |
| 60 | 60 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 90 EventTargetData m_eventTargetData; | 90 EventTargetData m_eventTargetData; |
| 91 MIDIAccessPromise* m_promise; | 91 MIDIAccessPromise* m_promise; |
| 92 | 92 |
| 93 OwnPtr<MIDIAccessor> m_accessor; | 93 OwnPtr<MIDIAccessor> m_accessor; |
| 94 bool m_hasAccess; | 94 bool m_hasAccess; |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 } // namespace WebCore | 97 } // namespace WebCore |
| 98 | 98 |
| 99 #endif // MIDIAccess_h | 99 #endif // MIDIAccess_h |
| OLD | NEW |