Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(623)

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp

Issue 1738613002: Rename enums/functions that collide in chromium style in core/dom/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-3
Patch Set: get-names-4: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 784 matching lines...) Expand 10 before | Expand all | Expand 10 after
795 795
796 m_activeSourceNodes.clear(); 796 m_activeSourceNodes.clear();
797 } 797 }
798 798
799 void AbstractAudioContext::handleStoppableSourceNodes() 799 void AbstractAudioContext::handleStoppableSourceNodes()
800 { 800 {
801 ASSERT(isGraphOwner()); 801 ASSERT(isGraphOwner());
802 802
803 // Find AudioBufferSourceNodes to see if we can stop playing them. 803 // Find AudioBufferSourceNodes to see if we can stop playing them.
804 for (AudioNode* node : m_activeSourceNodes) { 804 for (AudioNode* node : m_activeSourceNodes) {
805 if (node->handler().nodeType() == AudioHandler::NodeTypeAudioBufferSourc e) { 805 if (node->handler().getNodeType() == AudioHandler::NodeTypeAudioBufferSo urce) {
806 AudioBufferSourceNode* sourceNode = static_cast<AudioBufferSourceNod e*>(node); 806 AudioBufferSourceNode* sourceNode = static_cast<AudioBufferSourceNod e*>(node);
807 sourceNode->audioBufferSourceHandler().handleStoppableSourceNode(); 807 sourceNode->audioBufferSourceHandler().handleStoppableSourceNode();
808 } 808 }
809 } 809 }
810 } 810 }
811 811
812 void AbstractAudioContext::handlePreRenderTasks() 812 void AbstractAudioContext::handlePreRenderTasks()
813 { 813 {
814 ASSERT(isAudioThread()); 814 ASSERT(isAudioThread());
815 815
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
947 SecurityOrigin* AbstractAudioContext::securityOrigin() const 947 SecurityOrigin* AbstractAudioContext::securityOrigin() const
948 { 948 {
949 if (executionContext()) 949 if (executionContext())
950 return executionContext()->securityOrigin(); 950 return executionContext()->securityOrigin();
951 951
952 return nullptr; 952 return nullptr;
953 } 953 }
954 954
955 } // namespace blink 955 } // namespace blink
956 956
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698