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

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

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 725 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 } 736 }
737 737
738 double PannerNode::refDistance() const { 738 double PannerNode::refDistance() const {
739 return pannerHandler().refDistance(); 739 return pannerHandler().refDistance();
740 } 740 }
741 741
742 void PannerNode::setRefDistance(double distance, 742 void PannerNode::setRefDistance(double distance,
743 ExceptionState& exceptionState) { 743 ExceptionState& exceptionState) {
744 if (distance <= 0) { 744 if (distance <= 0) {
745 exceptionState.throwDOMException( 745 exceptionState.throwDOMException(
746 V8RangeError, ExceptionMessages::indexExceedsMinimumBound<double>( 746 V8RangeError,
747 "refDistance", distance, 0)); 747 ExceptionMessages::indexExceedsMinimumBound<double>("refDistance",
748 distance, 0));
748 return; 749 return;
749 } 750 }
750 751
751 pannerHandler().setRefDistance(distance); 752 pannerHandler().setRefDistance(distance);
752 } 753 }
753 754
754 double PannerNode::maxDistance() const { 755 double PannerNode::maxDistance() const {
755 return pannerHandler().maxDistance(); 756 return pannerHandler().maxDistance();
756 } 757 }
757 758
758 void PannerNode::setMaxDistance(double distance, 759 void PannerNode::setMaxDistance(double distance,
759 ExceptionState& exceptionState) { 760 ExceptionState& exceptionState) {
760 if (distance <= 0) { 761 if (distance <= 0) {
761 exceptionState.throwDOMException( 762 exceptionState.throwDOMException(
762 V8RangeError, ExceptionMessages::indexExceedsMinimumBound<double>( 763 V8RangeError,
763 "maxDistance", distance, 0)); 764 ExceptionMessages::indexExceedsMinimumBound<double>("maxDistance",
765 distance, 0));
764 return; 766 return;
765 } 767 }
766 768
767 pannerHandler().setMaxDistance(distance); 769 pannerHandler().setMaxDistance(distance);
768 } 770 }
769 771
770 double PannerNode::rolloffFactor() const { 772 double PannerNode::rolloffFactor() const {
771 return pannerHandler().rolloffFactor(); 773 return pannerHandler().rolloffFactor();
772 } 774 }
773 775
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 visitor->trace(m_positionZ); 807 visitor->trace(m_positionZ);
806 808
807 visitor->trace(m_orientationX); 809 visitor->trace(m_orientationX);
808 visitor->trace(m_orientationY); 810 visitor->trace(m_orientationY);
809 visitor->trace(m_orientationZ); 811 visitor->trace(m_orientationZ);
810 812
811 AudioNode::trace(visitor); 813 AudioNode::trace(visitor);
812 } 814 }
813 815
814 } // namespace blink 816 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698