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

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

Issue 8137005: Applying changes to the existing speech input code to support the extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review and unit test fixes. Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_SPEECH_CHROME_SPEECH_INPUT_MANAGER_H_ 5 #ifndef CHROME_BROWSER_SPEECH_CHROME_SPEECH_INPUT_MANAGER_H_
6 #define CHROME_BROWSER_SPEECH_CHROME_SPEECH_INPUT_MANAGER_H_ 6 #define CHROME_BROWSER_SPEECH_CHROME_SPEECH_INPUT_MANAGER_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "chrome/browser/speech/speech_input_bubble_controller.h" 10 #include "chrome/browser/speech/speech_input_bubble_controller.h"
(...skipping 14 matching lines...) Expand all
25 virtual void InfoBubbleFocusChanged(int caller_id); 25 virtual void InfoBubbleFocusChanged(int caller_id);
26 26
27 protected: 27 protected:
28 // SpeechInputManager methods. 28 // SpeechInputManager methods.
29 virtual void GetRequestInfo(bool* can_report_metrics, 29 virtual void GetRequestInfo(bool* can_report_metrics,
30 std::string* request_info); 30 std::string* request_info);
31 virtual void ShowRecognitionRequested(int caller_id, 31 virtual void ShowRecognitionRequested(int caller_id,
32 int render_process_id, 32 int render_process_id,
33 int render_view_id, 33 int render_view_id,
34 const gfx::Rect& element_rect); 34 const gfx::Rect& element_rect);
35 virtual void ShowWarmUp(int caller_id); 35 virtual void ShowWarmUp(int caller_id);
Satish 2011/10/06 09:09:06 use OVERRIDE for these functions as well
Leandro GraciĆ” Gil 2011/10/06 18:26:25 Done.
36 virtual void ShowRecognizing(int caller_id); 36 virtual void ShowRecognizing(int caller_id);
37 virtual void ShowRecording(int caller_id); 37 virtual void ShowRecording(int caller_id);
38 virtual void ShowInputVolume(int caller_id, 38 virtual void ShowInputVolume(int caller_id,
39 float volume, 39 float volume,
40 float noise_volume); 40 float noise_volume);
41 virtual void ShowNoMicError(int caller_id); 41 virtual void ShowNoMicError(int caller_id);
42 virtual void ShowRecognizerError(int caller_id, 42 virtual void ShowRecognizerError(int caller_id,
43 SpeechRecognizer::ErrorCode error); 43 SpeechInputError error);
44 virtual void DoClose(int caller_id); 44 virtual void DoClose(int caller_id);
45 45
46 private: 46 private:
47 class OptionalRequestInfo; 47 class OptionalRequestInfo;
48 48
49 // Private constructor to enforce singleton. 49 // Private constructor to enforce singleton.
50 friend struct DefaultSingletonTraits<ChromeSpeechInputManager>; 50 friend struct DefaultSingletonTraits<ChromeSpeechInputManager>;
51 ChromeSpeechInputManager(); 51 ChromeSpeechInputManager();
52 virtual ~ChromeSpeechInputManager(); 52 virtual ~ChromeSpeechInputManager();
53 53
54 scoped_refptr<SpeechInputBubbleController> bubble_controller_; 54 scoped_refptr<SpeechInputBubbleController> bubble_controller_;
55 scoped_refptr<OptionalRequestInfo> optional_request_info_; 55 scoped_refptr<OptionalRequestInfo> optional_request_info_;
56 56
57 DISALLOW_COPY_AND_ASSIGN(ChromeSpeechInputManager); 57 DISALLOW_COPY_AND_ASSIGN(ChromeSpeechInputManager);
58 }; 58 };
59 59
60 } // namespace speech_input 60 } // namespace speech_input
61 61
62 #endif // CHROME_BROWSER_SPEECH_CHROME_SPEECH_INPUT_MANAGER_H_ 62 #endif // CHROME_BROWSER_SPEECH_CHROME_SPEECH_INPUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698