| 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 DtmfProviderInterface* provider_; | 98 DtmfProviderInterface* provider_; |
| 99 std::string tones_; | 99 std::string tones_; |
| 100 int duration_; | 100 int duration_; |
| 101 int inter_tone_gap_; | 101 int inter_tone_gap_; |
| 102 | 102 |
| 103 RTC_DISALLOW_COPY_AND_ASSIGN(DtmfSender); | 103 RTC_DISALLOW_COPY_AND_ASSIGN(DtmfSender); |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 // Define proxy for DtmfSenderInterface. | 106 // Define proxy for DtmfSenderInterface. |
| 107 BEGIN_SIGNALING_PROXY_MAP(DtmfSender) | 107 BEGIN_SIGNALING_PROXY_MAP(DtmfSender) |
| 108 PROXY_SIGNALING_THREAD_DESTRUCTOR() |
| 108 PROXY_METHOD1(void, RegisterObserver, DtmfSenderObserverInterface*) | 109 PROXY_METHOD1(void, RegisterObserver, DtmfSenderObserverInterface*) |
| 109 PROXY_METHOD0(void, UnregisterObserver) | 110 PROXY_METHOD0(void, UnregisterObserver) |
| 110 PROXY_METHOD0(bool, CanInsertDtmf) | 111 PROXY_METHOD0(bool, CanInsertDtmf) |
| 111 PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int) | 112 PROXY_METHOD3(bool, InsertDtmf, const std::string&, int, int) |
| 112 PROXY_CONSTMETHOD0(const AudioTrackInterface*, track) | 113 PROXY_CONSTMETHOD0(const AudioTrackInterface*, track) |
| 113 PROXY_CONSTMETHOD0(std::string, tones) | 114 PROXY_CONSTMETHOD0(std::string, tones) |
| 114 PROXY_CONSTMETHOD0(int, duration) | 115 PROXY_CONSTMETHOD0(int, duration) |
| 115 PROXY_CONSTMETHOD0(int, inter_tone_gap) | 116 PROXY_CONSTMETHOD0(int, inter_tone_gap) |
| 116 END_SIGNALING_PROXY() | 117 END_PROXY_MAP() |
| 117 | 118 |
| 118 // Get DTMF code from the DTMF event character. | 119 // Get DTMF code from the DTMF event character. |
| 119 bool GetDtmfCode(char tone, int* code); | 120 bool GetDtmfCode(char tone, int* code); |
| 120 | 121 |
| 121 } // namespace webrtc | 122 } // namespace webrtc |
| 122 | 123 |
| 123 #endif // WEBRTC_API_DTMFSENDER_H_ | 124 #endif // WEBRTC_API_DTMFSENDER_H_ |
| OLD | NEW |