electron/shell/browser/atom_speech_recognition_manager_delegate.cc

63 lines
1.9 KiB
C++
Raw Normal View History

// 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/atom_speech_recognition_manager_delegate.h"
2014-10-08 09:47:47 +00:00
#include <string>
#include <utility>
2014-10-08 09:47:47 +00:00
#include "base/callback.h"
namespace atom {
2018-04-18 01:55:30 +00:00
AtomSpeechRecognitionManagerDelegate::AtomSpeechRecognitionManagerDelegate() {}
2018-04-18 01:55:30 +00:00
AtomSpeechRecognitionManagerDelegate::~AtomSpeechRecognitionManagerDelegate() {}
2018-04-18 01:55:30 +00:00
void AtomSpeechRecognitionManagerDelegate::OnRecognitionStart(int session_id) {}
2018-04-18 01:55:30 +00:00
void AtomSpeechRecognitionManagerDelegate::OnAudioStart(int session_id) {}
void AtomSpeechRecognitionManagerDelegate::OnEnvironmentEstimationComplete(
2018-04-18 01:55:30 +00:00
int session_id) {}
2018-04-18 01:55:30 +00:00
void AtomSpeechRecognitionManagerDelegate::OnSoundStart(int session_id) {}
2018-04-18 01:55:30 +00:00
void AtomSpeechRecognitionManagerDelegate::OnSoundEnd(int session_id) {}
2018-04-18 01:55:30 +00:00
void AtomSpeechRecognitionManagerDelegate::OnAudioEnd(int session_id) {}
2018-04-18 01:55:30 +00:00
void AtomSpeechRecognitionManagerDelegate::OnRecognitionEnd(int session_id) {}
void AtomSpeechRecognitionManagerDelegate::OnRecognitionResults(
2018-04-18 01:55:30 +00:00
int session_id,
const std::vector<blink::mojom::SpeechRecognitionResultPtr>& results) {}
void AtomSpeechRecognitionManagerDelegate::OnRecognitionError(
2018-04-18 01:55:30 +00:00
int session_id,
const blink::mojom::SpeechRecognitionError& error) {}
void AtomSpeechRecognitionManagerDelegate::OnAudioLevelsChange(
2018-04-18 01:55:30 +00:00
int session_id,
float volume,
float noise_volume) {}
void AtomSpeechRecognitionManagerDelegate::CheckRecognitionIsAllowed(
int session_id,
base::OnceCallback<void(bool ask_user, bool is_allowed)> callback) {
std::move(callback).Run(true, true);
}
content::SpeechRecognitionEventListener*
AtomSpeechRecognitionManagerDelegate::GetEventListener() {
return this;
}
bool AtomSpeechRecognitionManagerDelegate::FilterProfanities(
int render_process_id) {
return false;
}
} // namespace atom