Remove WebAudio doppler effect API surface (already no-ops)

Intent to Deprecate:
https://groups.google.com/a/chromium.org/d/msg/blink-dev/-1SI1GoHYO8/6XUjRs-fdv4J
Intent to Remove: https://groups.google.com/a/chromium.org/d/msg/blink-dev/59cVGPqud1M/gR8yby0_BgAJ
Feature: https://www.chromestatus.com/features/5753252045914112

BUG=439644
TEST=

patch from issue 2356223002 at patchset 20001 (http://crrev.com/2356223002#ps20001)

Review-Url: https://codereview.chromium.org/2380183002
Cr-Commit-Position: refs/heads/master@{#423915}
diff --git a/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt b/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt
index 91880c5..5178fed 100644
--- a/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt
+++ b/third_party/WebKit/LayoutTests/virtual/stable/webexposed/global-interface-listing-expected.txt
@@ -133,23 +133,18 @@
     method constructor
 interface AudioListener
     attribute @@toStringTag
-    getter dopplerFactor
     getter forwardX
     getter forwardY
     getter forwardZ
     getter positionX
     getter positionY
     getter positionZ
-    getter speedOfSound
     getter upX
     getter upY
     getter upZ
     method constructor
     method setOrientation
     method setPosition
-    method setVelocity
-    setter dopplerFactor
-    setter speedOfSound
 interface AudioNode : EventTarget
     attribute @@toStringTag
     getter channelCount
@@ -3653,7 +3648,6 @@
     method constructor
     method setOrientation
     method setPosition
-    method setVelocity
     setter coneInnerAngle
     setter coneOuterAngle
     setter coneOuterGain
diff --git a/third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range-expected.txt b/third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range-expected.txt
index de05c08..078e8c3e 100644
--- a/third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range-expected.txt
+++ b/third_party/WebKit/LayoutTests/webaudio/audioparam-nominal-range-expected.txt
@@ -15,8 +15,6 @@
 CONSOLE WARNING: line 396: BiquadFilter.frequency.value 48001 outside nominal range [0, 24000]; value will be clamped.
 CONSOLE WARNING: line 387: Oscillator.frequency.value -48001 outside nominal range [-24000, 24000]; value will be clamped.
 CONSOLE WARNING: line 396: Oscillator.frequency.value 48001 outside nominal range [-24000, 24000]; value will be clamped.
-CONSOLE WARNING: line 439: 'AudioListener.dopplerFactor' is deprecated and will be removed in M55, around December 2016. It has no effect as the Web Audio doppler effects have already been removed internally. See https://www.chromestatus.com/features/5238926818148352 for more details.
-CONSOLE WARNING: line 439: 'AudioListener.speedOfSound' is deprecated and will be removed in M55, around December 2016. It has no effect as the Web Audio doppler effects have already been removed internally. See https://www.chromestatus.com/features/5238926818148352 for more details.
 CONSOLE WARNING: line 316: Delay.delayTime.setValueAtTime value -1 outside nominal range [0, 1]; value will be clamped.
 CONSOLE WARNING: line 317: Delay.delayTime.linearRampToValueAtTime value 2 outside nominal range [0, 1]; value will be clamped.
 CONSOLE WARNING: line 318: Delay.delayTime.exponentialRampToValue value 3 outside nominal range [0, 1]; value will be clamped.
diff --git a/third_party/WebKit/LayoutTests/webaudio/doppler-deprecated-expected.txt b/third_party/WebKit/LayoutTests/webaudio/doppler-deprecated-expected.txt
deleted file mode 100644
index b921471..0000000
--- a/third_party/WebKit/LayoutTests/webaudio/doppler-deprecated-expected.txt
+++ /dev/null
@@ -1,21 +0,0 @@
-CONSOLE WARNING: line 1: 'AudioListener.dopplerFactor' is deprecated and will be removed in M55, around December 2016. It has no effect as the Web Audio doppler effects have already been removed internally. See https://www.chromestatus.com/features/5238926818148352 for more details.
-CONSOLE WARNING: line 1: 'AudioListener.speedOfSound' is deprecated and will be removed in M55, around December 2016. It has no effect as the Web Audio doppler effects have already been removed internally. See https://www.chromestatus.com/features/5238926818148352 for more details.
-CONSOLE WARNING: line 1: 'AudioListener.setVelocity()' is deprecated and will be removed in M55, around December 2016. It has no effect as the Web Audio doppler effects have already been removed internally. See https://www.chromestatus.com/features/5238926818148352 for more details.
-CONSOLE WARNING: line 1: 'PannerNode.setVelocity()' is deprecated and will be removed in M55, around December 2016. It has no effect as the Web Audio doppler effects have already been removed internally. See https://www.chromestatus.com/features/5238926818148352 for more details.
-Tests doppler deprecation messages
-
-On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
-
-
-PASS listener.dopplerFactor is 1
-listener.dopplerFactor = 2
-PASS listener.dopplerFactor is 2
-PASS listener.speedOfSound is 343.3
-listener.speedOfSound = 400
-PASS listener.speedOfSound is 400
-listener.setVelocity(0, 0, 0)
-panner.setVelocity(0, 0, 0)
-PASS successfullyParsed is true
-
-TEST COMPLETE
-
diff --git a/third_party/WebKit/LayoutTests/webaudio/doppler-deprecated.html b/third_party/WebKit/LayoutTests/webaudio/doppler-deprecated.html
deleted file mode 100644
index a7712cd..0000000
--- a/third_party/WebKit/LayoutTests/webaudio/doppler-deprecated.html
+++ /dev/null
@@ -1,21 +0,0 @@
-<!DOCTYPE HTML>
-<script src="../resources/js-test.js"></script>
-<script>
-description("Tests doppler deprecation messages");
-
-var context = new AudioContext();
-var listener = context.listener;
-var panner = context.createPanner();
-
-shouldBe("listener.dopplerFactor", "1");
-evalAndLog("listener.dopplerFactor = 2");
-shouldBe("listener.dopplerFactor", "2");
-
-shouldBe("listener.speedOfSound", "343.3");
-evalAndLog("listener.speedOfSound = 400");
-shouldBe("listener.speedOfSound", "400");
-
-evalAndLog("listener.setVelocity(0, 0, 0)");
-
-evalAndLog("panner.setVelocity(0, 0, 0)");
-</script>
diff --git a/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt b/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt
index 7a68a84..f00471f 100644
--- a/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt
+++ b/third_party/WebKit/LayoutTests/webexposed/global-interface-listing-expected.txt
@@ -187,23 +187,18 @@
     method constructor
 interface AudioListener
     attribute @@toStringTag
-    getter dopplerFactor
     getter forwardX
     getter forwardY
     getter forwardZ
     getter positionX
     getter positionY
     getter positionZ
-    getter speedOfSound
     getter upX
     getter upY
     getter upZ
     method constructor
     method setOrientation
     method setPosition
-    method setVelocity
-    setter dopplerFactor
-    setter speedOfSound
 interface AudioNode : EventTarget
     attribute @@toStringTag
     getter channelCount
@@ -4364,7 +4359,6 @@
     method constructor
     method setOrientation
     method setPosition
-    method setVelocity
     setter coneInnerAngle
     setter coneOuterAngle
     setter coneOuterGain
diff --git a/third_party/WebKit/Source/core/frame/Deprecation.cpp b/third_party/WebKit/Source/core/frame/Deprecation.cpp
index 649148db..5603189 100644
--- a/third_party/WebKit/Source/core/frame/Deprecation.cpp
+++ b/third_party/WebKit/Source/core/frame/Deprecation.cpp
@@ -57,16 +57,6 @@
       feature, milestoneString(milestone), details);
 }
 
-String dopplerWillBeRemoved(const char* feature,
-                            Milestone milestone,
-                            const char* details) {
-  return String::format(
-      "%s is deprecated and will be removed in %s. It has no effect as the Web "
-      "Audio doppler effects have already been removed internally. See "
-      "https://www.chromestatus.com/features/%s for more details.",
-      feature, milestoneString(milestone), details);
-}
-
 }  // anonymous namespace
 
 namespace blink {
@@ -293,22 +283,6 @@
       return "'getMatchedCSSRules()' is deprecated. For more help, check "
              "https://code.google.com/p/chromium/issues/detail?id=437569#c2";
 
-    case UseCounter::AudioListenerDopplerFactor:
-      return dopplerWillBeRemoved("'AudioListener.dopplerFactor'", M55,
-                                  "5238926818148352");
-
-    case UseCounter::AudioListenerSpeedOfSound:
-      return dopplerWillBeRemoved("'AudioListener.speedOfSound'", M55,
-                                  "5238926818148352");
-
-    case UseCounter::AudioListenerSetVelocity:
-      return dopplerWillBeRemoved("'AudioListener.setVelocity()'", M55,
-                                  "5238926818148352");
-
-    case UseCounter::PannerNodeSetVelocity:
-      return dopplerWillBeRemoved("'PannerNode.setVelocity()'", M55,
-                                  "5238926818148352");
-
     case UseCounter::PrefixedWindowURL:
       return replacedBy("'webkitURL'", "'URL'");
 
diff --git a/third_party/WebKit/Source/core/frame/UseCounter.h b/third_party/WebKit/Source/core/frame/UseCounter.h
index 5b7fccc..794b08c 100644
--- a/third_party/WebKit/Source/core/frame/UseCounter.h
+++ b/third_party/WebKit/Source/core/frame/UseCounter.h
@@ -476,9 +476,6 @@
     MixedContentPlugin = 616,
     MixedContentPrefetch = 617,
     MixedContentVideo = 618,
-    AudioListenerDopplerFactor = 620,
-    AudioListenerSpeedOfSound = 621,
-    AudioListenerSetVelocity = 622,
     CSSSelectorPseudoFullScreenAncestor = 628,
     CSSSelectorPseudoFullScreen = 629,
     WebKitCSSMatrix = 630,
@@ -990,7 +987,6 @@
 
     CSSAtRuleApply = 1249,
     CSSSelectorPseudoAny = 1250,
-    PannerNodeSetVelocity = 1251,
     DocumentAllItemNoArguments = 1252,
     DocumentAllItemNamed = 1253,
     DocumentAllItemIndexed = 1254,
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioListener.cpp b/third_party/WebKit/Source/modules/webaudio/AudioListener.cpp
index c93ecf7..9ef0611 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioListener.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioListener.cpp
@@ -50,8 +50,6 @@
       m_upX(AudioParam::create(context, ParamTypeAudioListenerUpX, 0.0)),
       m_upY(AudioParam::create(context, ParamTypeAudioListenerUpY, 1.0)),
       m_upZ(AudioParam::create(context, ParamTypeAudioListenerUpZ, 0.0)),
-      m_dopplerFactor(1),
-      m_speedOfSound(343.3),
       m_lastUpdateTime(-1),
       m_isListenerDirty(false),
       m_positionXValues(AudioUtilities::kRenderQuantumFrames),
@@ -284,17 +282,4 @@
   markPannersAsDirty(PannerHandler::AzimuthElevationDirty);
 }
 
-void AudioListener::setVelocity(float x, float y, float z) {
-  // The velocity is not used internally and cannot be read back by scripts,
-  // so it can be ignored entirely.
-}
-
-void AudioListener::setDopplerFactor(double dopplerFactor) {
-  m_dopplerFactor = dopplerFactor;
-}
-
-void AudioListener::setSpeedOfSound(double speedOfSound) {
-  m_speedOfSound = speedOfSound;
-}
-
 }  // namespace blink
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioListener.h b/third_party/WebKit/Source/modules/webaudio/AudioListener.h
index 43b2a34..aaf3730 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioListener.h
+++ b/third_party/WebKit/Source/modules/webaudio/AudioListener.h
@@ -117,17 +117,6 @@
     setUpVector(FloatPoint3D(upX, upY, upZ));
   }
 
-  // Velocity
-  void setVelocity(float x, float y, float z);
-
-  // Doppler factor
-  void setDopplerFactor(double);
-  double dopplerFactor() const { return m_dopplerFactor; }
-
-  // Speed of sound
-  void setSpeedOfSound(double);
-  double speedOfSound() const { return m_speedOfSound; }
-
   Mutex& listenerLock() { return m_listenerLock; }
   void addPanner(PannerHandler&);
   void removePanner(PannerHandler&);
@@ -166,9 +155,6 @@
   Member<AudioParam> m_upY;
   Member<AudioParam> m_upZ;
 
-  double m_dopplerFactor;
-  double m_speedOfSound;
-
   // The position, forward, and up vectors from the last rendering quantum.
   FloatPoint3D m_lastPosition;
   FloatPoint3D m_lastForward;
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioListener.idl b/third_party/WebKit/Source/modules/webaudio/AudioListener.idl
index a02f672..7cc1cd7 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioListener.idl
+++ b/third_party/WebKit/Source/modules/webaudio/AudioListener.idl
@@ -28,12 +28,8 @@
 
 // See https://webaudio.github.io/web-audio-api/#AudioListener
 interface AudioListener {
-    [DeprecateAs=AudioListenerDopplerFactor] attribute float dopplerFactor;  // same as OpenAL (default 1.0)
-    [DeprecateAs=AudioListenerSpeedOfSound] attribute float speedOfSound;   // in meters / second (default 343.3)
-
     [MeasureAs=AudioListenerSetPosition] void setPosition(float x, float y, float z);
     [MeasureAs=AudioListenerSetOrientation] void setOrientation(float x, float y, float z, float xUp, float yUp, float zUp);
-    [DeprecateAs=AudioListenerSetVelocity] void setVelocity(float x, float y, float z);
 
     // Location of the listener
     readonly attribute AudioParam positionX;
diff --git a/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp b/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp
index ac2b2bc..e5d8e77 100644
--- a/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/PannerNode.cpp
@@ -707,11 +707,6 @@
   pannerHandler().setOrientation(x, y, z);
 }
 
-void PannerNode::setVelocity(float x, float y, float z) {
-  // The velocity is not used internally and cannot be read back by scripts,
-  // so it can be ignored entirely.
-}
-
 String PannerNode::distanceModel() const {
   return pannerHandler().distanceModel();
 }
diff --git a/third_party/WebKit/Source/modules/webaudio/PannerNode.h b/third_party/WebKit/Source/modules/webaudio/PannerNode.h
index e23f269..90eb184 100644
--- a/third_party/WebKit/Source/modules/webaudio/PannerNode.h
+++ b/third_party/WebKit/Source/modules/webaudio/PannerNode.h
@@ -230,7 +230,6 @@
   void setPanningModel(const String&);
   void setPosition(float x, float y, float z);
   void setOrientation(float x, float y, float z);
-  void setVelocity(float x, float y, float z);
   String distanceModel() const;
   void setDistanceModel(const String&);
   double refDistance() const;
diff --git a/third_party/WebKit/Source/modules/webaudio/PannerNode.idl b/third_party/WebKit/Source/modules/webaudio/PannerNode.idl
index 929f030..fdd0387 100644
--- a/third_party/WebKit/Source/modules/webaudio/PannerNode.idl
+++ b/third_party/WebKit/Source/modules/webaudio/PannerNode.idl
@@ -45,7 +45,6 @@
     // Uses a 3D cartesian coordinate system
     [MeasureAs=PannerNodeSetPosition] void setPosition(float x, float y, float z);
     [MeasureAs=PannerNodeSetOrientation] void setOrientation(float x, float y, float z);
-    [DeprecateAs=PannerNodeSetVelocity] void setVelocity(float x, float y, float z);
 
     // Uses a 3D cartesian coordinate system
     readonly attribute AudioParam positionX;