| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 class DOMError; | 44 class DOMError; |
| 45 class MIDIAccess; | 45 class MIDIAccess; |
| 46 class MIDIErrorCallback; | 46 class MIDIErrorCallback; |
| 47 class MIDISuccessCallback; | 47 class MIDISuccessCallback; |
| 48 class ExecutionContext; | 48 class ExecutionContext; |
| 49 | 49 |
| 50 struct MIDIOptions; | 50 struct MIDIOptions; |
| 51 | 51 |
| 52 class MIDIAccessPromise FINAL : public RefCountedWillBeRefCountedGarbageCollecte
d<MIDIAccessPromise>, public ScriptWrappable, public ActiveDOMObject { | 52 class MIDIAccessPromise FINAL : public RefCountedWillBeRefCountedGarbageCollecte
d<MIDIAccessPromise>, public ScriptWrappable, public ActiveDOMObject { |
| 53 DECLARE_GC_INFO; | |
| 54 public: | 53 public: |
| 55 static PassRefPtrWillBeRawPtr<MIDIAccessPromise> create(ExecutionContext*, c
onst Dictionary&); | 54 static PassRefPtrWillBeRawPtr<MIDIAccessPromise> create(ExecutionContext*, c
onst Dictionary&); |
| 56 virtual ~MIDIAccessPromise(); | 55 virtual ~MIDIAccessPromise(); |
| 57 | 56 |
| 58 // ActiveDOMObject | 57 // ActiveDOMObject |
| 59 virtual bool hasPendingActivity() const OVERRIDE; | 58 virtual bool hasPendingActivity() const OVERRIDE; |
| 60 virtual void stop() OVERRIDE; | 59 virtual void stop() OVERRIDE; |
| 61 | 60 |
| 62 MIDIOptions* options() { return m_options.get(); } | 61 MIDIOptions* options() { return m_options.get(); } |
| 63 | 62 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 84 OwnPtr<MIDISuccessCallback> m_successCallback; | 83 OwnPtr<MIDISuccessCallback> m_successCallback; |
| 85 OwnPtr<MIDIErrorCallback> m_errorCallback; | 84 OwnPtr<MIDIErrorCallback> m_errorCallback; |
| 86 OwnPtr<MIDIOptions> m_options; | 85 OwnPtr<MIDIOptions> m_options; |
| 87 RefPtr<DOMError> m_error; | 86 RefPtr<DOMError> m_error; |
| 88 RefPtrWillBeMember<MIDIAccess> m_access; | 87 RefPtrWillBeMember<MIDIAccess> m_access; |
| 89 }; | 88 }; |
| 90 | 89 |
| 91 } // namespace WebCore | 90 } // namespace WebCore |
| 92 | 91 |
| 93 #endif // MIDIAccessPromise_h | 92 #endif // MIDIAccessPromise_h |
| OLD | NEW |