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

Side by Side Diff: Source/modules/mediastream/RTCDTMFSender.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 RTCDTMFSender::RTCDTMFSender(ExecutionContext* context, MediaStreamTrack* track, PassOwnPtr<WebRTCDTMFSenderHandler> handler) 60 RTCDTMFSender::RTCDTMFSender(ExecutionContext* context, MediaStreamTrack* track, PassOwnPtr<WebRTCDTMFSenderHandler> handler)
61 : ActiveDOMObject(context) 61 : ActiveDOMObject(context)
62 , m_track(track) 62 , m_track(track)
63 , m_duration(defaultToneDurationMs) 63 , m_duration(defaultToneDurationMs)
64 , m_interToneGap(defaultInterToneGapMs) 64 , m_interToneGap(defaultInterToneGapMs)
65 , m_handler(handler) 65 , m_handler(handler)
66 , m_stopped(false) 66 , m_stopped(false)
67 , m_scheduledEventTimer(this, &RTCDTMFSender::scheduledEventTimerFired) 67 , m_scheduledEventTimer(this, &RTCDTMFSender::scheduledEventTimerFired)
68 { 68 {
69 ScriptWrappable::init(this);
70 m_handler->setClient(this); 69 m_handler->setClient(this);
71 } 70 }
72 71
73 RTCDTMFSender::~RTCDTMFSender() 72 RTCDTMFSender::~RTCDTMFSender()
74 { 73 {
75 } 74 }
76 75
77 bool RTCDTMFSender::canInsertDTMF() const 76 bool RTCDTMFSender::canInsertDTMF() const
78 { 77 {
79 return m_handler->canInsertDTMF(); 78 return m_handler->canInsertDTMF();
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 } 165 }
167 166
168 void RTCDTMFSender::trace(Visitor* visitor) 167 void RTCDTMFSender::trace(Visitor* visitor)
169 { 168 {
170 visitor->trace(m_track); 169 visitor->trace(m_track);
171 visitor->trace(m_scheduledEvents); 170 visitor->trace(m_scheduledEvents);
172 EventTargetWithInlineData::trace(visitor); 171 EventTargetWithInlineData::trace(visitor);
173 } 172 }
174 173
175 } // namespace blink 174 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/mediastream/NavigatorUserMediaError.h ('k') | Source/modules/mediastream/RTCDTMFToneChangeEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698