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

Unified Diff: ui/app_list/speech_ui_model.h

Issue 146643004: Loads the logo image to the speech UI in app-list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/app_list/app_list_view_delegate.cc ('k') | ui/app_list/views/speech_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/speech_ui_model.h
diff --git a/ui/app_list/speech_ui_model.h b/ui/app_list/speech_ui_model.h
index e5a9a7a73a5d548fa1989d90a921201b40e368a2..c89c4badbf5f6d9376fe69b39a44b8b8c6b8b1b5 100644
--- a/ui/app_list/speech_ui_model.h
+++ b/ui/app_list/speech_ui_model.h
@@ -10,6 +10,7 @@
#include "base/strings/string16.h"
#include "ui/app_list/app_list_export.h"
#include "ui/app_list/speech_ui_model_observer.h"
+#include "ui/gfx/image/image_skia.h"
namespace app_list {
@@ -30,6 +31,8 @@ class APP_LIST_EXPORT SpeechUIModel {
bool is_final() const { return is_final_; }
int16 sound_level() const { return sound_level_; }
SpeechRecognitionState state() const { return state_; }
+ const gfx::ImageSkia& logo() const { return logo_; }
+ void set_logo(const gfx::ImageSkia& logo) { logo_ = logo; }
oshima 2014/02/06 01:05:41 do you really need this in model? Isn't it simpler
Jun Mukai 2014/02/06 01:10:14 SpeechView is in ui/app_list which can't depend on
private:
base::string16 result_;
@@ -37,6 +40,9 @@ class APP_LIST_EXPORT SpeechUIModel {
int16 sound_level_;
SpeechRecognitionState state_;
+ // The logo image which the speech UI will show at the top-left.
+ gfx::ImageSkia logo_;
+
// The sound level range to compute visible sound-level.
int16 minimum_sound_level_;
int16 maximum_sound_level_;
« no previous file with comments | « chrome/browser/ui/app_list/app_list_view_delegate.cc ('k') | ui/app_list/views/speech_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698