summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/webaudio/dynamics_compressor_node.cc
diff options
context:
space:
mode:
authorAllan Sandfeld Jensen <allan.jensen@qt.io>2018-08-28 15:28:34 +0200
committerAllan Sandfeld Jensen <allan.jensen@qt.io>2018-08-28 13:54:51 +0000
commit2a19c63448c84c1805fb1a585c3651318bb86ca7 (patch)
treeeb17888e8531aa6ee5e85721bd553b832a7e5156 /chromium/third_party/blink/renderer/modules/webaudio/dynamics_compressor_node.cc
parentb014812705fc80bff0a5c120dfcef88f349816dc (diff)
downloadqtwebengine-chromium-2a19c63448c84c1805fb1a585c3651318bb86ca7.tar.gz
BASELINE: Update Chromium to 69.0.3497.70
Change-Id: I2b7b56e4e7a8b26656930def0d4575dc32b900a0 Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/webaudio/dynamics_compressor_node.cc')
-rw-r--r--chromium/third_party/blink/renderer/modules/webaudio/dynamics_compressor_node.cc18
1 files changed, 10 insertions, 8 deletions
diff --git a/chromium/third_party/blink/renderer/modules/webaudio/dynamics_compressor_node.cc b/chromium/third_party/blink/renderer/modules/webaudio/dynamics_compressor_node.cc
index dbf44301fb3..1fd4e451a0d 100644
--- a/chromium/third_party/blink/renderer/modules/webaudio/dynamics_compressor_node.cc
+++ b/chromium/third_party/blink/renderer/modules/webaudio/dynamics_compressor_node.cc
@@ -23,14 +23,15 @@
* DAMAGE.
*/
-#include "third_party/blink/renderer/bindings/core/v8/exception_messages.h"
-#include "third_party/blink/renderer/bindings/core/v8/exception_state.h"
+#include "third_party/blink/renderer/modules/webaudio/dynamics_compressor_node.h"
+
#include "third_party/blink/renderer/modules/webaudio/audio_node_input.h"
#include "third_party/blink/renderer/modules/webaudio/audio_node_output.h"
-#include "third_party/blink/renderer/modules/webaudio/dynamics_compressor_node.h"
#include "third_party/blink/renderer/modules/webaudio/dynamics_compressor_options.h"
#include "third_party/blink/renderer/platform/audio/audio_utilities.h"
#include "third_party/blink/renderer/platform/audio/dynamics_compressor.h"
+#include "third_party/blink/renderer/platform/bindings/exception_messages.h"
+#include "third_party/blink/renderer/platform/bindings/exception_state.h"
// Set output to stereo by default.
static const unsigned defaultNumberOfOutputChannels = 2;
@@ -154,10 +155,11 @@ void DynamicsCompressorHandler::SetChannelCount(
}
} else {
exception_state.ThrowDOMException(
- kNotSupportedError, ExceptionMessages::IndexOutsideRange<unsigned long>(
- "channelCount", channel_count, 1,
- ExceptionMessages::kInclusiveBound, 2,
- ExceptionMessages::kInclusiveBound));
+ DOMExceptionCode::kNotSupportedError,
+ ExceptionMessages::IndexOutsideRange<unsigned long>(
+ "channelCount", channel_count, 1,
+ ExceptionMessages::kInclusiveBound, 2,
+ ExceptionMessages::kInclusiveBound));
}
}
@@ -176,7 +178,7 @@ void DynamicsCompressorHandler::SetChannelCountMode(
} else if (mode == "max") {
// This is not supported for a DynamicsCompressorNode, which can
// only handle 1 or 2 channels.
- exception_state.ThrowDOMException(kNotSupportedError,
+ exception_state.ThrowDOMException(DOMExceptionCode::kNotSupportedError,
"The provided value 'max' is not an "
"allowed value for ChannelCountMode");
new_channel_count_mode_ = old_mode;