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

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

Issue 135653002: Update modules classes to use OVERRIDE / FINAL when needed (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove change to web/ Created 6 years, 11 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 22 matching lines...) Expand all
33 #include "platform/mediastream/RTCDTMFSenderHandlerClient.h" 33 #include "platform/mediastream/RTCDTMFSenderHandlerClient.h"
34 #include "wtf/RefCounted.h" 34 #include "wtf/RefCounted.h"
35 35
36 namespace WebCore { 36 namespace WebCore {
37 37
38 class ExceptionState; 38 class ExceptionState;
39 class MediaStreamTrack; 39 class MediaStreamTrack;
40 class RTCDTMFSenderHandler; 40 class RTCDTMFSenderHandler;
41 class RTCPeerConnectionHandler; 41 class RTCPeerConnectionHandler;
42 42
43 class RTCDTMFSender : public RefCounted<RTCDTMFSender>, public ScriptWrappable, public EventTargetWithInlineData, public RTCDTMFSenderHandlerClient, public Acti veDOMObject { 43 class RTCDTMFSender FINAL : public RefCounted<RTCDTMFSender>, public ScriptWrapp able, public EventTargetWithInlineData, public RTCDTMFSenderHandlerClient, publi c ActiveDOMObject {
44 REFCOUNTED_EVENT_TARGET(RTCDTMFSender); 44 REFCOUNTED_EVENT_TARGET(RTCDTMFSender);
45 public: 45 public:
46 static PassRefPtr<RTCDTMFSender> create(ExecutionContext*, RTCPeerConnection Handler*, PassRefPtr<MediaStreamTrack>, ExceptionState&); 46 static PassRefPtr<RTCDTMFSender> create(ExecutionContext*, RTCPeerConnection Handler*, PassRefPtr<MediaStreamTrack>, ExceptionState&);
47 ~RTCDTMFSender(); 47 virtual ~RTCDTMFSender();
48 48
49 bool canInsertDTMF() const; 49 bool canInsertDTMF() const;
50 MediaStreamTrack* track() const; 50 MediaStreamTrack* track() const;
51 String toneBuffer() const; 51 String toneBuffer() const;
52 long duration() const { return m_duration; } 52 long duration() const { return m_duration; }
53 long interToneGap() const { return m_interToneGap; } 53 long interToneGap() const { return m_interToneGap; }
54 54
55 void insertDTMF(const String& tones, ExceptionState&); 55 void insertDTMF(const String& tones, ExceptionState&);
56 void insertDTMF(const String& tones, long duration, ExceptionState&); 56 void insertDTMF(const String& tones, long duration, ExceptionState&);
57 void insertDTMF(const String& tones, long duration, long interToneGap, Excep tionState&); 57 void insertDTMF(const String& tones, long duration, long interToneGap, Excep tionState&);
(...skipping 24 matching lines...) Expand all
82 82
83 bool m_stopped; 83 bool m_stopped;
84 84
85 Timer<RTCDTMFSender> m_scheduledEventTimer; 85 Timer<RTCDTMFSender> m_scheduledEventTimer;
86 Vector<RefPtr<Event> > m_scheduledEvents; 86 Vector<RefPtr<Event> > m_scheduledEvents;
87 }; 87 };
88 88
89 } // namespace WebCore 89 } // namespace WebCore
90 90
91 #endif // RTCDTMFSender_h 91 #endif // RTCDTMFSender_h
OLDNEW
« no previous file with comments | « Source/modules/mediastream/MediaStreamTrackEvent.h ('k') | Source/modules/mediastream/RTCDTMFToneChangeEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698