| Index: chrome/browser/speech/speech_input_bubble.cc
|
| diff --git a/chrome/browser/speech/speech_input_bubble.cc b/chrome/browser/speech/speech_input_bubble.cc
|
| index 4e2a6704aa06b2c049cab4e49bd1f3968939c837..1c4b85fc86850a78131cae88bd5e2aabfcdffd1f 100644
|
| --- a/chrome/browser/speech/speech_input_bubble.cc
|
| +++ b/chrome/browser/speech/speech_input_bubble.cc
|
| @@ -21,3 +21,23 @@ SpeechInputBubble* SpeechInputBubble::Create(TabContents* tab_contents,
|
|
|
| return CreateNativeBubble(tab_contents, delegate, element_rect);
|
| }
|
| +
|
| +SpeechInputBubbleBase::SpeechInputBubbleBase()
|
| + : display_mode_(DISPLAY_MODE_RECORDING) {
|
| +}
|
| +
|
| +void SpeechInputBubbleBase::SetRecordingMode() {
|
| + display_mode_ = DISPLAY_MODE_RECORDING;
|
| + UpdateLayout();
|
| +}
|
| +
|
| +void SpeechInputBubbleBase::SetRecognizingMode() {
|
| + display_mode_ = DISPLAY_MODE_RECOGNIZING;
|
| + UpdateLayout();
|
| +}
|
| +
|
| +void SpeechInputBubbleBase::SetMessage(const string16& text) {
|
| + message_text_ = text;
|
| + display_mode_ = DISPLAY_MODE_MESSAGE;
|
| + UpdateLayout();
|
| +}
|
|
|