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

Unified Diff: Source/modules/mediastream/RTCDTMFSender.cpp

Issue 21735005: Use "int" instead of "long" for bindings where the WebIDL uses "long". (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/mediastream/RTCDTMFSender.h ('k') | Source/modules/mediastream/RTCDataChannel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/mediastream/RTCDTMFSender.cpp
diff --git a/Source/modules/mediastream/RTCDTMFSender.cpp b/Source/modules/mediastream/RTCDTMFSender.cpp
index 17695e566aef481e77527e1b9a722cfb88cb9dce..b382fabe38fc24b5e025d59d8279a987ce29029b 100644
--- a/Source/modules/mediastream/RTCDTMFSender.cpp
+++ b/Source/modules/mediastream/RTCDTMFSender.cpp
@@ -36,11 +36,11 @@
namespace WebCore {
-static const long minToneDurationMs = 70;
-static const long defaultToneDurationMs = 100;
-static const long maxToneDurationMs = 6000;
-static const long minInterToneGapMs = 50;
-static const long defaultInterToneGapMs = 50;
+static const int minToneDurationMs = 70;
+static const int defaultToneDurationMs = 100;
+static const int maxToneDurationMs = 6000;
+static const int minInterToneGapMs = 50;
+static const int defaultInterToneGapMs = 50;
PassRefPtr<RTCDTMFSender> RTCDTMFSender::create(ScriptExecutionContext* context, RTCPeerConnectionHandler* peerConnectionHandler, PassRefPtr<MediaStreamTrack> prpTrack, ExceptionState& es)
{
@@ -93,12 +93,12 @@ void RTCDTMFSender::insertDTMF(const String& tones, ExceptionState& es)
insertDTMF(tones, defaultToneDurationMs, defaultInterToneGapMs, es);
}
-void RTCDTMFSender::insertDTMF(const String& tones, long duration, ExceptionState& es)
+void RTCDTMFSender::insertDTMF(const String& tones, int duration, ExceptionState& es)
{
insertDTMF(tones, duration, defaultInterToneGapMs, es);
}
-void RTCDTMFSender::insertDTMF(const String& tones, long duration, long interToneGap, ExceptionState& es)
+void RTCDTMFSender::insertDTMF(const String& tones, int duration, int interToneGap, ExceptionState& es)
{
if (!canInsertDTMF()) {
es.throwDOMException(NotSupportedError);
« no previous file with comments | « Source/modules/mediastream/RTCDTMFSender.h ('k') | Source/modules/mediastream/RTCDataChannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698