| OLD | NEW |
| 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_SPEECH_INPUT_BUBBLE_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_SPEECH_INPUT_BUBBLE_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_BUBBLE_CONTROLLER_H_ | 6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_BUBBLE_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 // Updates the current captured audio volume displayed on screen. | 74 // Updates the current captured audio volume displayed on screen. |
| 75 void SetBubbleInputVolume(int caller_id, float volume, float noise_volume); | 75 void SetBubbleInputVolume(int caller_id, float volume, float noise_volume); |
| 76 | 76 |
| 77 void CloseBubble(int caller_id); | 77 void CloseBubble(int caller_id); |
| 78 | 78 |
| 79 // SpeechInputBubble::Delegate methods. | 79 // SpeechInputBubble::Delegate methods. |
| 80 virtual void InfoBubbleButtonClicked(SpeechInputBubble::Button button); | 80 virtual void InfoBubbleButtonClicked(SpeechInputBubble::Button button); |
| 81 virtual void InfoBubbleFocusChanged(); | 81 virtual void InfoBubbleFocusChanged(); |
| 82 | 82 |
| 83 // NotificationObserver implementation. | 83 // NotificationObserver implementation. |
| 84 virtual void Observe(NotificationType type, | 84 virtual void Observe(int type, |
| 85 const NotificationSource& source, | 85 const NotificationSource& source, |
| 86 const NotificationDetails& details); | 86 const NotificationDetails& details); |
| 87 | 87 |
| 88 private: | 88 private: |
| 89 // The various calls received by this object and handled in the UI thread. | 89 // The various calls received by this object and handled in the UI thread. |
| 90 enum RequestType { | 90 enum RequestType { |
| 91 REQUEST_SET_WARM_UP_MODE, | 91 REQUEST_SET_WARM_UP_MODE, |
| 92 REQUEST_SET_RECORDING_MODE, | 92 REQUEST_SET_RECORDING_MODE, |
| 93 REQUEST_SET_RECOGNIZING_MODE, | 93 REQUEST_SET_RECOGNIZING_MODE, |
| 94 REQUEST_SET_MESSAGE, | 94 REQUEST_SET_MESSAGE, |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 // This typedef is to workaround the issue with certain versions of | 138 // This typedef is to workaround the issue with certain versions of |
| 139 // Visual Studio where it gets confused between multiple Delegate | 139 // Visual Studio where it gets confused between multiple Delegate |
| 140 // classes and gives a C2500 error. (I saw this error on the try bots - | 140 // classes and gives a C2500 error. (I saw this error on the try bots - |
| 141 // the workaround was not needed for my machine). | 141 // the workaround was not needed for my machine). |
| 142 typedef SpeechInputBubbleController::Delegate | 142 typedef SpeechInputBubbleController::Delegate |
| 143 SpeechInputBubbleControllerDelegate; | 143 SpeechInputBubbleControllerDelegate; |
| 144 | 144 |
| 145 } // namespace speech_input | 145 } // namespace speech_input |
| 146 | 146 |
| 147 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_BUBBLE_CONTROLLER_H_ | 147 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_BUBBLE_CONTROLLER_H_ |
| OLD | NEW |