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

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

Issue 6272025: Part 2 of repairing regressions to my old clang check plugins so Nico can (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright 2011 Created 9 years, 10 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) 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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/renderer_host/download_resource_handler.h ('k') | chrome/browser/speech/speech_input_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698