OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_SPEECH_INPUT_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ |
6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ | 6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "chrome/common/speech_input_result.h" | 9 #include "chrome/common/speech_input_result.h" |
10 #include "gfx/rect.h" | |
11 #include "ipc/ipc_message.h" | 10 #include "ipc/ipc_message.h" |
| 11 #include "ui/gfx/rect.h" |
12 | 12 |
13 namespace speech_input { | 13 namespace speech_input { |
14 | 14 |
15 // This is the gatekeeper for speech recognition in the browser process. It | 15 // This is the gatekeeper for speech recognition in the browser process. It |
16 // handles requests received from various render views and makes sure only one | 16 // handles requests received from various render views and makes sure only one |
17 // of them can use speech recognition at a time. It also sends recognition | 17 // of them can use speech recognition at a time. It also sends recognition |
18 // results and status events to the render views when required. | 18 // results and status events to the render views when required. |
19 // This class is a singleton and accessed via the Get method. | 19 // This class is a singleton and accessed via the Get method. |
20 class SpeechInputManager { | 20 class SpeechInputManager { |
21 public: | 21 public: |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 | 69 |
70 // This typedef is to workaround the issue with certain versions of | 70 // This typedef is to workaround the issue with certain versions of |
71 // Visual Studio where it gets confused between multiple Delegate | 71 // Visual Studio where it gets confused between multiple Delegate |
72 // classes and gives a C2500 error. (I saw this error on the try bots - | 72 // classes and gives a C2500 error. (I saw this error on the try bots - |
73 // the workaround was not needed for my machine). | 73 // the workaround was not needed for my machine). |
74 typedef SpeechInputManager::Delegate SpeechInputManagerDelegate; | 74 typedef SpeechInputManager::Delegate SpeechInputManagerDelegate; |
75 | 75 |
76 } // namespace speech_input | 76 } // namespace speech_input |
77 | 77 |
78 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ | 78 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_MANAGER_H_ |
OLD | NEW |