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

Unified Diff: ui/app_list/search_box_model.h

Issue 2846733004: Optimization: not sending answer server requests for voice queries. (Closed)
Patch Set: Fixing broken tests. Created 3 years, 8 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
Index: ui/app_list/search_box_model.h
diff --git a/ui/app_list/search_box_model.h b/ui/app_list/search_box_model.h
index 2b60ff2719d0dcc86f85594031d0d24375923c1b..85469c0a19fcd838f9e94a7fb26126defcc6d132 100644
--- a/ui/app_list/search_box_model.h
+++ b/ui/app_list/search_box_model.h
@@ -68,9 +68,11 @@ class APP_LIST_EXPORT SearchBoxModel {
return selection_model_;
}
- // Sets/gets the text for the search box's Textfield.
- void SetText(const base::string16& text);
+ // Sets/gets the text for the search box's Textfield and the voice search
+ // flag.
+ void Update(const base::string16& text, bool is_voice_query);
const base::string16& text() const { return text_; }
+ bool is_voice_query() const { return is_voice_query_; }
void AddObserver(SearchBoxModelObserver* observer);
void RemoveObserver(SearchBoxModelObserver* observer);
@@ -81,6 +83,7 @@ class APP_LIST_EXPORT SearchBoxModel {
base::string16 accessible_name_;
gfx::SelectionModel selection_model_;
base::string16 text_;
+ bool is_voice_query_;
base::ObserverList<SearchBoxModelObserver> observers_;

Powered by Google App Engine
This is Rietveld 408576698