Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.
// Copyright (c) 2014 GitHub, Inc.
// Use of this source code is governed by the MIT license that can be
// found in the LICENSE file.
#include "shell/browser/electron_speech_recognition_manager_delegate.h"
#include <utility>
#include "base/functional/callback.h"
namespace electron {
ElectronSpeechRecognitionManagerDelegate::
ElectronSpeechRecognitionManagerDelegate() = default;
~ElectronSpeechRecognitionManagerDelegate() = default;
void ElectronSpeechRecognitionManagerDelegate::OnRecognitionStart(
int session_id) {}
void ElectronSpeechRecognitionManagerDelegate::OnAudioStart(int session_id) {}
void ElectronSpeechRecognitionManagerDelegate::OnSoundStart(int session_id) {}
void ElectronSpeechRecognitionManagerDelegate::OnSoundEnd(int session_id) {}
void ElectronSpeechRecognitionManagerDelegate::OnAudioEnd(int session_id) {}
void ElectronSpeechRecognitionManagerDelegate::OnRecognitionEnd(
void ElectronSpeechRecognitionManagerDelegate::OnRecognitionResults(
int session_id,
const std::vector<media::mojom::WebSpeechRecognitionResultPtr>& results) {}
void ElectronSpeechRecognitionManagerDelegate::OnRecognitionError(
const media::mojom::SpeechRecognitionError& error) {}
void ElectronSpeechRecognitionManagerDelegate::OnAudioLevelsChange(
float volume,
float noise_volume) {}
void ElectronSpeechRecognitionManagerDelegate::CheckRecognitionIsAllowed(
base::OnceCallback<void(bool ask_user, bool is_allowed)> callback) {
std::move(callback).Run(true, true);
}
content::SpeechRecognitionEventListener*
ElectronSpeechRecognitionManagerDelegate::GetEventListener() {
return this;
void ElectronSpeechRecognitionManagerDelegate::BindSpeechRecognitionContext(
mojo::PendingReceiver<media::mojom::SpeechRecognitionContext> receiver) {}
} // namespace electron