| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 * * Redistributions of source code must retain the above copyright | 7 * * 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 * * Redistributions in binary form must reproduce the above copyright | 9 * * 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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 #include "wtf/PassRefPtr.h" | 44 #include "wtf/PassRefPtr.h" |
| 45 #include "wtf/PtrUtil.h" | 45 #include "wtf/PtrUtil.h" |
| 46 #include <memory> | 46 #include <memory> |
| 47 | 47 |
| 48 namespace blink { | 48 namespace blink { |
| 49 | 49 |
| 50 SpeechRecognitionClientProxy::~SpeechRecognitionClientProxy() {} | 50 SpeechRecognitionClientProxy::~SpeechRecognitionClientProxy() {} |
| 51 | 51 |
| 52 std::unique_ptr<SpeechRecognitionClientProxy> | 52 std::unique_ptr<SpeechRecognitionClientProxy> |
| 53 SpeechRecognitionClientProxy::create(WebSpeechRecognizer* recognizer) { | 53 SpeechRecognitionClientProxy::create(WebSpeechRecognizer* recognizer) { |
| 54 return wrapUnique(new SpeechRecognitionClientProxy(recognizer)); | 54 return WTF::wrapUnique(new SpeechRecognitionClientProxy(recognizer)); |
| 55 } | 55 } |
| 56 | 56 |
| 57 void SpeechRecognitionClientProxy::start(SpeechRecognition* recognition, | 57 void SpeechRecognitionClientProxy::start(SpeechRecognition* recognition, |
| 58 const SpeechGrammarList* grammarList, | 58 const SpeechGrammarList* grammarList, |
| 59 const String& lang, | 59 const String& lang, |
| 60 bool continuous, | 60 bool continuous, |
| 61 bool interimResults, | 61 bool interimResults, |
| 62 unsigned long maxAlternatives, | 62 unsigned long maxAlternatives, |
| 63 MediaStreamTrack* audioTrack) { | 63 MediaStreamTrack* audioTrack) { |
| 64 size_t length = grammarList ? static_cast<size_t>(grammarList->length()) : 0U; | 64 size_t length = grammarList ? static_cast<size_t>(grammarList->length()) : 0U; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 158 const WebSpeechRecognitionHandle& handle) { | 158 const WebSpeechRecognitionHandle& handle) { |
| 159 SpeechRecognition* recognition(handle); | 159 SpeechRecognition* recognition(handle); |
| 160 recognition->didEnd(); | 160 recognition->didEnd(); |
| 161 } | 161 } |
| 162 | 162 |
| 163 SpeechRecognitionClientProxy::SpeechRecognitionClientProxy( | 163 SpeechRecognitionClientProxy::SpeechRecognitionClientProxy( |
| 164 WebSpeechRecognizer* recognizer) | 164 WebSpeechRecognizer* recognizer) |
| 165 : m_recognizer(recognizer) {} | 165 : m_recognizer(recognizer) {} |
| 166 | 166 |
| 167 } // namespace blink | 167 } // namespace blink |
| OLD | NEW |