| 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 13 matching lines...) Expand all Loading... |
| 24 */ | 24 */ |
| 25 | 25 |
| 26 #include "config.h" | 26 #include "config.h" |
| 27 | 27 |
| 28 #include "core/platform/mediastream/RTCDTMFSenderHandler.h" | 28 #include "core/platform/mediastream/RTCDTMFSenderHandler.h" |
| 29 | 29 |
| 30 #include "core/platform/mediastream/RTCDTMFSenderHandlerClient.h" | 30 #include "core/platform/mediastream/RTCDTMFSenderHandlerClient.h" |
| 31 #include "public/platform/WebRTCDTMFSenderHandler.h" | 31 #include "public/platform/WebRTCDTMFSenderHandler.h" |
| 32 #include "wtf/PassOwnPtr.h" | 32 #include "wtf/PassOwnPtr.h" |
| 33 | 33 |
| 34 using namespace WebKit; | 34 using namespace blink; |
| 35 | 35 |
| 36 namespace WebCore { | 36 namespace WebCore { |
| 37 | 37 |
| 38 PassOwnPtr<RTCDTMFSenderHandler> RTCDTMFSenderHandler::create(WebRTCDTMFSenderHa
ndler* webHandler) | 38 PassOwnPtr<RTCDTMFSenderHandler> RTCDTMFSenderHandler::create(WebRTCDTMFSenderHa
ndler* webHandler) |
| 39 { | 39 { |
| 40 return adoptPtr(new RTCDTMFSenderHandler(webHandler)); | 40 return adoptPtr(new RTCDTMFSenderHandler(webHandler)); |
| 41 } | 41 } |
| 42 | 42 |
| 43 RTCDTMFSenderHandler::RTCDTMFSenderHandler(WebRTCDTMFSenderHandler* webHandler) | 43 RTCDTMFSenderHandler::RTCDTMFSenderHandler(WebRTCDTMFSenderHandler* webHandler) |
| 44 : m_webHandler(adoptPtr(webHandler)) | 44 : m_webHandler(adoptPtr(webHandler)) |
| (...skipping 26 matching lines...) Expand all Loading... |
| 71 return m_webHandler->insertDTMF(tones, duration, interToneGap); | 71 return m_webHandler->insertDTMF(tones, duration, interToneGap); |
| 72 } | 72 } |
| 73 | 73 |
| 74 void RTCDTMFSenderHandler::didPlayTone(const WebString& tone) const | 74 void RTCDTMFSenderHandler::didPlayTone(const WebString& tone) const |
| 75 { | 75 { |
| 76 if (m_client) | 76 if (m_client) |
| 77 m_client->didPlayTone(tone); | 77 m_client->didPlayTone(tone); |
| 78 } | 78 } |
| 79 | 79 |
| 80 } // namespace WebCore | 80 } // namespace WebCore |
| OLD | NEW |