Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(731)

Side by Side Diff: chrome/browser/speech/chrome_speech_input_manager_delegate.h

Issue 9568002: Renamed speech input implementation from to speech_recognition_*. The namespace has been renamed fr… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebased from master. Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_SPEECH_CHROME_SPEECH_INPUT_MANAGER_DELEGATE_H_
6 #define CHROME_BROWSER_SPEECH_CHROME_SPEECH_INPUT_MANAGER_DELEGATE_H_
7
8 #include "base/compiler_specific.h"
9 #include "base/memory/ref_counted.h"
10 #include "chrome/browser/speech/speech_input_bubble_controller.h"
11 #include "content/public/browser/speech_input_manager_delegate.h"
12
13 namespace speech_input {
14
15 // This is Chrome's implementation of the SpeechInputManager interface. This
16 // class is a singleton and accessed via the Get method.
17 class ChromeSpeechInputManagerDelegate
18 : NON_EXPORTED_BASE(public content::SpeechInputManagerDelegate),
19 public SpeechInputBubbleControllerDelegate {
20 public:
21 ChromeSpeechInputManagerDelegate();
22 virtual ~ChromeSpeechInputManagerDelegate();
23
24 // SpeechInputBubbleControllerDelegate methods.
25 virtual void InfoBubbleButtonClicked(
26 int caller_id, SpeechInputBubble::Button button) OVERRIDE;
27 virtual void InfoBubbleFocusChanged(int caller_id) OVERRIDE;
28
29 protected:
30 // SpeechInputManagerDelegate methods.
31 virtual void GetRequestInfo(bool* can_report_metrics,
32 std::string* request_info) OVERRIDE;
33 virtual void ShowRecognitionRequested(int caller_id,
34 int render_process_id,
35 int render_view_id,
36 const gfx::Rect& element_rect) OVERRIDE;
37 virtual void ShowWarmUp(int caller_id) OVERRIDE;
38 virtual void ShowRecognizing(int caller_id) OVERRIDE;
39 virtual void ShowRecording(int caller_id) OVERRIDE;
40 virtual void ShowInputVolume(int caller_id,
41 float volume,
42 float noise_volume) OVERRIDE;
43 virtual void ShowMicError(int caller_id,
44 MicError error) OVERRIDE;
45 virtual void ShowRecognizerError(int caller_id,
46 content::SpeechInputError error) OVERRIDE;
47 virtual void DoClose(int caller_id) OVERRIDE;
48
49 private:
50 class OptionalRequestInfo;
51
52 scoped_refptr<SpeechInputBubbleController> bubble_controller_;
53 scoped_refptr<OptionalRequestInfo> optional_request_info_;
54
55 DISALLOW_COPY_AND_ASSIGN(ChromeSpeechInputManagerDelegate);
56 };
57
58 } // namespace speech_input
59
60 #endif // CHROME_BROWSER_SPEECH_CHROME_SPEECH_INPUT_MANAGER_DELEGATE_H_
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/speech/chrome_speech_input_manager_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698