| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright 2012 The WebRTC project authors. All Rights Reserved. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license | 4 * Use of this source code is governed by a BSD-style license |
| 5 * that can be found in the LICENSE file in the root of the source | 5 * that can be found in the LICENSE file in the root of the source |
| 6 * tree. An additional intellectual property rights grant can be found | 6 * tree. An additional intellectual property rights grant can be found |
| 7 * in the file PATENTS. All contributing project authors may | 7 * in the file PATENTS. All contributing project authors may |
| 8 * be found in the AUTHORS file in the root of the source tree. | 8 * be found in the AUTHORS file in the root of the source tree. |
| 9 */ | 9 */ |
| 10 | 10 |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 rtc::Thread* signaling_thread_; | 96 rtc::Thread* signaling_thread_; |
| 97 DtmfProviderInterface* provider_; | 97 DtmfProviderInterface* provider_; |
| 98 std::string tones_; | 98 std::string tones_; |
| 99 int duration_; | 99 int duration_; |
| 100 int inter_tone_gap_; | 100 int inter_tone_gap_; |
| 101 | 101 |
| 102 RTC_DISALLOW_COPY_AND_ASSIGN(DtmfSender); | 102 RTC_DISALLOW_COPY_AND_ASSIGN(DtmfSender); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 // Define proxy for DtmfSenderInterface. | 105 // Define proxy for DtmfSenderInterface. |
| 106 BEGIN_PROXY_MAP(DtmfSender) | 106 BEGIN_SIGNALLING_PROXY_MAP(DtmfSender) |
| 107 PROXY_METHOD1(void, RegisterObserver, DtmfSenderObserverInterface*) | 107 PROXY_METHOD1(void, RegisterObserver, DtmfSenderObserverInterface*) |
| 108 PROXY_METHOD0(void, UnregisterObserver) | 108 PROXY_METHOD0(void, UnregisterObserver) |
| 109 PROXY_METHOD0(bool, CanInsertDtmf) | 109 PROXY_METHOD0(bool, CanInsertDtmf) |
| 110 PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int) | 110 PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int) |
| 111 PROXY_CONSTMETHOD0(const AudioTrackInterface*, track) | 111 PROXY_CONSTMETHOD0(const AudioTrackInterface*, track) |
| 112 PROXY_CONSTMETHOD0(std::string, tones) | 112 PROXY_CONSTMETHOD0(std::string, tones) |
| 113 PROXY_CONSTMETHOD0(int, duration) | 113 PROXY_CONSTMETHOD0(int, duration) |
| 114 PROXY_CONSTMETHOD0(int, inter_tone_gap) | 114 PROXY_CONSTMETHOD0(int, inter_tone_gap) |
| 115 END_PROXY() | 115 END_SIGNALLING_PROXY() |
| 116 | 116 |
| 117 // Get DTMF code from the DTMF event character. | 117 // Get DTMF code from the DTMF event character. |
| 118 bool GetDtmfCode(char tone, int* code); | 118 bool GetDtmfCode(char tone, int* code); |
| 119 | 119 |
| 120 } // namespace webrtc | 120 } // namespace webrtc |
| 121 | 121 |
| 122 #endif // WEBRTC_API_DTMFSENDER_H_ | 122 #endif // WEBRTC_API_DTMFSENDER_H_ |
| OLD | NEW |