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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 public: | 48 public: |
49 static RTCDTMFSender* create(ExecutionContext*, WebRTCPeerConnectionHandler*
, MediaStreamTrack*, ExceptionState&); | 49 static RTCDTMFSender* create(ExecutionContext*, WebRTCPeerConnectionHandler*
, MediaStreamTrack*, ExceptionState&); |
50 virtual ~RTCDTMFSender(); | 50 virtual ~RTCDTMFSender(); |
51 | 51 |
52 bool canInsertDTMF() const; | 52 bool canInsertDTMF() const; |
53 MediaStreamTrack* track() const; | 53 MediaStreamTrack* track() const; |
54 String toneBuffer() const; | 54 String toneBuffer() const; |
55 long duration() const { return m_duration; } | 55 long duration() const { return m_duration; } |
56 long interToneGap() const { return m_interToneGap; } | 56 long interToneGap() const { return m_interToneGap; } |
57 | 57 |
58 void insertDTMF(const String& tones, ExceptionState&); | |
59 void insertDTMF(const String& tones, long duration, ExceptionState&); | |
60 void insertDTMF(const String& tones, long duration, long interToneGap, Excep
tionState&); | 58 void insertDTMF(const String& tones, long duration, long interToneGap, Excep
tionState&); |
61 | 59 |
62 DEFINE_ATTRIBUTE_EVENT_LISTENER(tonechange); | 60 DEFINE_ATTRIBUTE_EVENT_LISTENER(tonechange); |
63 | 61 |
64 // EventTarget | 62 // EventTarget |
65 virtual const AtomicString& interfaceName() const OVERRIDE; | 63 virtual const AtomicString& interfaceName() const OVERRIDE; |
66 virtual ExecutionContext* executionContext() const OVERRIDE; | 64 virtual ExecutionContext* executionContext() const OVERRIDE; |
67 | 65 |
68 // ActiveDOMObject | 66 // ActiveDOMObject |
69 virtual void stop() OVERRIDE; | 67 virtual void stop() OVERRIDE; |
(...skipping 17 matching lines...) Expand all Loading... |
87 | 85 |
88 bool m_stopped; | 86 bool m_stopped; |
89 | 87 |
90 Timer<RTCDTMFSender> m_scheduledEventTimer; | 88 Timer<RTCDTMFSender> m_scheduledEventTimer; |
91 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; | 89 WillBeHeapVector<RefPtrWillBeMember<Event> > m_scheduledEvents; |
92 }; | 90 }; |
93 | 91 |
94 } // namespace blink | 92 } // namespace blink |
95 | 93 |
96 #endif // RTCDTMFSender_h | 94 #endif // RTCDTMFSender_h |
OLD | NEW |