electron_speech_recognition_manager_delegate.cc 1011 B

123456789101112131415161718192021222324252627282930313233
  1. // Copyright (c) 2014 GitHub, Inc.
  2. // Use of this source code is governed by the MIT license that can be
  3. // found in the LICENSE file.
  4. #include "shell/browser/electron_speech_recognition_manager_delegate.h"
  5. #include <utility>
  6. #include "base/functional/callback.h"
  7. namespace electron {
  8. ElectronSpeechRecognitionManagerDelegate::
  9. ElectronSpeechRecognitionManagerDelegate() = default;
  10. ElectronSpeechRecognitionManagerDelegate::
  11. ~ElectronSpeechRecognitionManagerDelegate() = default;
  12. void ElectronSpeechRecognitionManagerDelegate::CheckRecognitionIsAllowed(
  13. int session_id,
  14. base::OnceCallback<void(bool ask_user, bool is_allowed)> callback) {
  15. std::move(callback).Run(true, true);
  16. }
  17. content::SpeechRecognitionEventListener*
  18. ElectronSpeechRecognitionManagerDelegate::GetEventListener() {
  19. return nullptr;
  20. }
  21. void ElectronSpeechRecognitionManagerDelegate::BindSpeechRecognitionContext(
  22. mojo::PendingReceiver<media::mojom::SpeechRecognitionContext> receiver) {}
  23. } // namespace electron