| OLD | NEW |
| 1 // Copyright (c) 2010 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_H_ | 5 #ifndef CHROME_BROWSER_SPEECH_SPEECH_INPUT_BUBBLE_H_ |
| 6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_BUBBLE_H_ | 6 #define CHROME_BROWSER_SPEECH_SPEECH_INPUT_BUBBLE_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 }; | 123 }; |
| 124 | 124 |
| 125 explicit SpeechInputBubbleBase(TabContents* tab_contents); | 125 explicit SpeechInputBubbleBase(TabContents* tab_contents); |
| 126 virtual ~SpeechInputBubbleBase(); | 126 virtual ~SpeechInputBubbleBase(); |
| 127 | 127 |
| 128 // SpeechInputBubble methods | 128 // SpeechInputBubble methods |
| 129 virtual void SetRecordingMode(); | 129 virtual void SetRecordingMode(); |
| 130 virtual void SetRecognizingMode(); | 130 virtual void SetRecognizingMode(); |
| 131 virtual void SetMessage(const string16& text); | 131 virtual void SetMessage(const string16& text); |
| 132 virtual void SetInputVolume(float volume); | 132 virtual void SetInputVolume(float volume); |
| 133 virtual TabContents* tab_contents() { return tab_contents_; } | 133 virtual TabContents* tab_contents(); |
| 134 | 134 |
| 135 protected: | 135 protected: |
| 136 // Updates the platform specific UI layout for the current display mode. | 136 // Updates the platform specific UI layout for the current display mode. |
| 137 virtual void UpdateLayout() = 0; | 137 virtual void UpdateLayout() = 0; |
| 138 | 138 |
| 139 // Sets the given image as the image to display in the speech bubble. | 139 // Sets the given image as the image to display in the speech bubble. |
| 140 // TODO(satish): Make the SetRecognizingMode call use this to show an | 140 // TODO(satish): Make the SetRecognizingMode call use this to show an |
| 141 // animation while waiting for results. | 141 // animation while waiting for results. |
| 142 virtual void SetImage(const SkBitmap& image) = 0; | 142 virtual void SetImage(const SkBitmap& image) = 0; |
| 143 | 143 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 173 static const int kRecognizingAnimationStepMs; | 173 static const int kRecognizingAnimationStepMs; |
| 174 }; | 174 }; |
| 175 | 175 |
| 176 // This typedef is to workaround the issue with certain versions of | 176 // This typedef is to workaround the issue with certain versions of |
| 177 // Visual Studio where it gets confused between multiple Delegate | 177 // Visual Studio where it gets confused between multiple Delegate |
| 178 // classes and gives a C2500 error. (I saw this error on the try bots - | 178 // classes and gives a C2500 error. (I saw this error on the try bots - |
| 179 // the workaround was not needed for my machine). | 179 // the workaround was not needed for my machine). |
| 180 typedef SpeechInputBubble::Delegate SpeechInputBubbleDelegate; | 180 typedef SpeechInputBubble::Delegate SpeechInputBubbleDelegate; |
| 181 | 181 |
| 182 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_BUBBLE_H_ | 182 #endif // CHROME_BROWSER_SPEECH_SPEECH_INPUT_BUBBLE_H_ |
| OLD | NEW |