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

Unified Diff: chrome/browser/speech/speech_recognition_bubble.h

Issue 10453101: Convert most of the rest of chrome to ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ntp_background_util.cc ('k') | chrome/browser/speech/speech_recognition_bubble.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/speech/speech_recognition_bubble.h
diff --git a/chrome/browser/speech/speech_recognition_bubble.h b/chrome/browser/speech/speech_recognition_bubble.h
index 2844122a345c12135311a25872e63c1178a089da..ecb784bbde3759a8b9db2c429a1d687c87721493 100644
--- a/chrome/browser/speech/speech_recognition_bubble.h
+++ b/chrome/browser/speech/speech_recognition_bubble.h
@@ -21,6 +21,7 @@ class WebContents;
namespace gfx {
class Canvas;
+class ImageSkia;
class Rect;
}
@@ -156,22 +157,22 @@ class SpeechRecognitionBubbleBase : public SpeechRecognitionBubble {
const string16& message_text() const { return message_text_; }
- SkBitmap icon_image();
+ gfx::ImageSkia icon_image();
private:
void DoRecognizingAnimationStep();
void DoWarmingUpAnimationStep();
- void SetImage(const SkBitmap& image);
+ void SetImage(const gfx::ImageSkia& image);
void DrawVolumeOverlay(SkCanvas* canvas,
- const SkBitmap& bitmap,
+ const gfx::ImageSkia& image_skia,
float volume);
// Task factory used for animation timer.
base::WeakPtrFactory<SpeechRecognitionBubbleBase> weak_factory_;
int animation_step_; // Current index/step of the animation.
- std::vector<SkBitmap> animation_frames_;
- std::vector<SkBitmap> warming_up_frames_;
+ std::vector<gfx::ImageSkia> animation_frames_;
+ std::vector<gfx::ImageSkia> warming_up_frames_;
DisplayMode display_mode_;
string16 message_text_; // Text displayed in DISPLAY_MODE_MESSAGE
@@ -182,7 +183,7 @@ class SpeechRecognitionBubbleBase : public SpeechRecognitionBubble {
// WebContents in which this this bubble gets displayed.
content::WebContents* web_contents_;
// The current image displayed in the bubble's icon widget.
- scoped_ptr<SkBitmap> icon_image_;
+ scoped_ptr<gfx::ImageSkia> icon_image_;
};
// This typedef is to workaround the issue with certain versions of
« no previous file with comments | « chrome/browser/ntp_background_util.cc ('k') | chrome/browser/speech/speech_recognition_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698