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

Side by Side Diff: webrtc/api/dtmfsender.h

Issue 2628343003: Adding some features to proxy.h, and restructuring the macros. (Closed)
Patch Set: Fixing "depends on patchset..." Created 3 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
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698