| Index: ui/app_list/search_box_model.cc
|
| diff --git a/ui/app_list/search_box_model.cc b/ui/app_list/search_box_model.cc
|
| index 5130e501cc882ccc2c252184490a0f260130da80..d84b33c708e3f3c41efa8af451d28ef44033ba7b 100644
|
| --- a/ui/app_list/search_box_model.cc
|
| +++ b/ui/app_list/search_box_model.cc
|
| @@ -9,6 +9,20 @@
|
|
|
| namespace app_list {
|
|
|
| +SearchBoxModel::ToggleButtonProperty::ToggleButtonProperty(
|
| + const gfx::ImageSkia& icon,
|
| + const gfx::ImageSkia& toggled_icon,
|
| + const base::string16& tooltip,
|
| + const base::string16& toggled_tooltip)
|
| + : icon(icon),
|
| + toggled_icon(toggled_icon),
|
| + tooltip(tooltip),
|
| + toggled_tooltip(toggled_tooltip) {
|
| +}
|
| +
|
| +SearchBoxModel::ToggleButtonProperty::~ToggleButtonProperty() {
|
| +}
|
| +
|
| SearchBoxModel::SearchBoxModel() {
|
| }
|
|
|
| @@ -20,6 +34,20 @@ void SearchBoxModel::SetIcon(const gfx::ImageSkia& icon) {
|
| FOR_EACH_OBSERVER(SearchBoxModelObserver, observers_, IconChanged());
|
| }
|
|
|
| +void SearchBoxModel::SetSpeechRecognitionButton(
|
| + scoped_ptr<SearchBoxModel::ToggleButtonProperty> speech_button) {
|
| + speech_button_ = speech_button.Pass();
|
| + FOR_EACH_OBSERVER(SearchBoxModelObserver,
|
| + observers_,
|
| + SpeechRecognitionButtonPropChanged());
|
| +}
|
| +
|
| +void SearchBoxModel::SetSpeechRecognitionButtonState(bool toggled) {
|
| + FOR_EACH_OBSERVER(SearchBoxModelObserver,
|
| + observers_,
|
| + SetSpeechRecognitionButtonState(toggled));
|
| +}
|
| +
|
| void SearchBoxModel::SetHintText(const base::string16& hint_text) {
|
| if (hint_text_ == hint_text)
|
| return;
|
|
|