| 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 Resolved, | 95 Resolved, |
| 96 Stopped, | 96 Stopped, |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 MIDIAccess(const MIDIOptions&, ExecutionContext*); | 99 MIDIAccess(const MIDIOptions&, ExecutionContext*); |
| 100 ScriptPromise startRequest(); | 100 ScriptPromise startRequest(); |
| 101 | 101 |
| 102 void permissionDenied(); | 102 void permissionDenied(); |
| 103 | 103 |
| 104 void resolve(); | 104 void resolve(); |
| 105 void reject(PassRefPtr<DOMError>); | 105 void reject(PassRefPtrWillBeRawPtr<DOMError>); |
| 106 void resolveNow(); | 106 void resolveNow(); |
| 107 void rejectNow(); | 107 void rejectNow(); |
| 108 // Called when the promise is resolved or rejected. | 108 // Called when the promise is resolved or rejected. |
| 109 void doPostAction(State); | 109 void doPostAction(State); |
| 110 | 110 |
| 111 State m_state; | 111 State m_state; |
| 112 WeakPtrFactory<MIDIAccess> m_weakPtrFactory; | 112 WeakPtrFactory<MIDIAccess> m_weakPtrFactory; |
| 113 MIDIInputVector m_inputs; | 113 MIDIInputVector m_inputs; |
| 114 MIDIOutputVector m_outputs; | 114 MIDIOutputVector m_outputs; |
| 115 OwnPtr<MIDIAccessor> m_accessor; | 115 OwnPtr<MIDIAccessor> m_accessor; |
| 116 OwnPtr<MIDIAccessResolver> m_resolver; | 116 OwnPtr<MIDIAccessResolver> m_resolver; |
| 117 MIDIOptions m_options; | 117 MIDIOptions m_options; |
| 118 bool m_sysExEnabled; | 118 bool m_sysExEnabled; |
| 119 AsyncMethodRunner<MIDIAccess> m_asyncResolveRunner; | 119 AsyncMethodRunner<MIDIAccess> m_asyncResolveRunner; |
| 120 AsyncMethodRunner<MIDIAccess> m_asyncRejectRunner; | 120 AsyncMethodRunner<MIDIAccess> m_asyncRejectRunner; |
| 121 RefPtr<DOMError> m_error; | 121 RefPtrWillBeMember<DOMError> m_error; |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 } // namespace WebCore | 124 } // namespace WebCore |
| 125 | 125 |
| 126 #endif // MIDIAccess_h | 126 #endif // MIDIAccess_h |
| OLD | NEW |