OLD | NEW |
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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 class RTCDTMFSenderHandler; | 43 class RTCDTMFSenderHandler; |
44 | 44 |
45 class RTCDTMFSender : public RefCountedGarbageCollected<RTCDTMFSender>, public E
ventTarget, public RTCDTMFSenderHandlerClient, public ActiveDOMObject { | 45 class RTCDTMFSender : public RefCountedGarbageCollected<RTCDTMFSender>, public E
ventTarget, public RTCDTMFSenderHandlerClient, public ActiveDOMObject { |
46 DECLARE_GC_INFO | 46 DECLARE_GC_INFO |
47 public: | 47 public: |
48 static PassRefPtr<RTCDTMFSender> create(ScriptExecutionContext*, RTCPeerConn
ectionHandler*, PassRefPtr<MediaStreamTrack>, ExceptionCode&); | 48 static PassRefPtr<RTCDTMFSender> create(ScriptExecutionContext*, RTCPeerConn
ectionHandler*, PassRefPtr<MediaStreamTrack>, ExceptionCode&); |
49 ~RTCDTMFSender(); | 49 ~RTCDTMFSender(); |
50 | 50 |
51 virtual void trace(Visitor*) { } | 51 virtual void trace(Visitor*) { } |
52 | 52 |
53 virtual void visitWith(Visitor* visitor) const OVERRIDE | 53 virtual void adjustAndMark(Visitor* visitor) const OVERRIDE |
54 { | 54 { |
55 visitor->visit(this); | 55 visitor->mark(this); |
56 } | 56 } |
57 | 57 |
58 bool canInsertDTMF() const; | 58 bool canInsertDTMF() const; |
59 MediaStreamTrack* track() const; | 59 MediaStreamTrack* track() const; |
60 String toneBuffer() const; | 60 String toneBuffer() const; |
61 long duration() const { return m_duration; } | 61 long duration() const { return m_duration; } |
62 long interToneGap() const { return m_interToneGap; } | 62 long interToneGap() const { return m_interToneGap; } |
63 | 63 |
64 void insertDTMF(const String& tones, ExceptionCode&); | 64 void insertDTMF(const String& tones, ExceptionCode&); |
65 void insertDTMF(const String& tones, long duration, ExceptionCode&); | 65 void insertDTMF(const String& tones, long duration, ExceptionCode&); |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 | 101 |
102 Timer<RTCDTMFSender> m_scheduledEventTimer; | 102 Timer<RTCDTMFSender> m_scheduledEventTimer; |
103 Vector<RefPtr<Event> > m_scheduledEvents; | 103 Vector<RefPtr<Event> > m_scheduledEvents; |
104 }; | 104 }; |
105 | 105 |
106 } // namespace WebCore | 106 } // namespace WebCore |
107 | 107 |
108 #endif // ENABLE(MEDIA_STREAM) | 108 #endif // ENABLE(MEDIA_STREAM) |
109 | 109 |
110 #endif // RTCDTMFSender_h | 110 #endif // RTCDTMFSender_h |
OLD | NEW |