OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010, Google Inc. All rights reserved. | 2 * Copyright (C) 2010, 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 BaseAudioContext* BaseAudioContext::create(Document& document, | 82 BaseAudioContext* BaseAudioContext::create(Document& document, |
83 ExceptionState& exceptionState) { | 83 ExceptionState& exceptionState) { |
84 return AudioContext::create(document, exceptionState); | 84 return AudioContext::create(document, exceptionState); |
85 } | 85 } |
86 | 86 |
87 // FIXME(dominicc): Devolve these constructors to AudioContext | 87 // FIXME(dominicc): Devolve these constructors to AudioContext |
88 // and OfflineAudioContext respectively. | 88 // and OfflineAudioContext respectively. |
89 | 89 |
90 // Constructor for rendering to the audio hardware. | 90 // Constructor for rendering to the audio hardware. |
91 BaseAudioContext::BaseAudioContext(Document* document) | 91 BaseAudioContext::BaseAudioContext(Document* document) |
92 : ActiveScriptWrappable(this), | 92 : ActiveScriptWrappable<BaseAudioContext>(this), |
93 SuspendableObject(document), | 93 SuspendableObject(document), |
94 m_destinationNode(nullptr), | 94 m_destinationNode(nullptr), |
95 m_isCleared(false), | 95 m_isCleared(false), |
96 m_isResolvingResumePromises(false), | 96 m_isResolvingResumePromises(false), |
97 m_userGestureRequired(false), | 97 m_userGestureRequired(false), |
98 m_connectionCount(0), | 98 m_connectionCount(0), |
99 m_deferredTaskHandler(DeferredTaskHandler::create()), | 99 m_deferredTaskHandler(DeferredTaskHandler::create()), |
100 m_contextState(Suspended), | 100 m_contextState(Suspended), |
101 m_closedContextSampleRate(-1), | 101 m_closedContextSampleRate(-1), |
102 m_periodicWaveSine(nullptr), | 102 m_periodicWaveSine(nullptr), |
(...skipping 778 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
881 } | 881 } |
882 | 882 |
883 SecurityOrigin* BaseAudioContext::getSecurityOrigin() const { | 883 SecurityOrigin* BaseAudioContext::getSecurityOrigin() const { |
884 if (getExecutionContext()) | 884 if (getExecutionContext()) |
885 return getExecutionContext()->getSecurityOrigin(); | 885 return getExecutionContext()->getSecurityOrigin(); |
886 | 886 |
887 return nullptr; | 887 return nullptr; |
888 } | 888 } |
889 | 889 |
890 } // namespace blink | 890 } // namespace blink |
OLD | NEW |