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 759 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 | 770 |
771 if (newState == m_contextState) { | 771 if (newState == m_contextState) { |
772 // ASSERTs above failed; just return. | 772 // ASSERTs above failed; just return. |
773 return; | 773 return; |
774 } | 774 } |
775 | 775 |
776 m_contextState = newState; | 776 m_contextState = newState; |
777 | 777 |
778 // Notify context that state changed | 778 // Notify context that state changed |
779 if (executionContext()) | 779 if (executionContext()) |
780 executionContext()->postTask(FROM_HERE, createSameThreadTask(&AudioConte
xt::notifyStateChange, this)); | 780 executionContext()->postTask(createSameThreadTask(&AudioContext::notifyS
tateChange, this)); |
781 } | 781 } |
782 | 782 |
783 void AudioContext::notifyStateChange() | 783 void AudioContext::notifyStateChange() |
784 { | 784 { |
785 dispatchEvent(Event::create(EventTypeNames::statechange)); | 785 dispatchEvent(Event::create(EventTypeNames::statechange)); |
786 } | 786 } |
787 | 787 |
788 ScriptPromise AudioContext::suspendContext(ScriptState* scriptState) | 788 ScriptPromise AudioContext::suspendContext(ScriptState* scriptState) |
789 { | 789 { |
790 ASSERT(isMainThread()); | 790 ASSERT(isMainThread()); |
(...skipping 599 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1390 } | 1390 } |
1391 | 1391 |
1392 void AudioContext::didFinishMarking(ThreadState&) | 1392 void AudioContext::didFinishMarking(ThreadState&) |
1393 { | 1393 { |
1394 unlock(); | 1394 unlock(); |
1395 } | 1395 } |
1396 | 1396 |
1397 } // namespace blink | 1397 } // namespace blink |
1398 | 1398 |
1399 #endif // ENABLE(WEB_AUDIO) | 1399 #endif // ENABLE(WEB_AUDIO) |
OLD | NEW |