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

Unified Diff: ui/app_list/search_box_model.h

Issue 2846733004: Optimization: not sending answer server requests for voice queries. (Closed)
Patch Set: Last nits 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
« no previous file with comments | « ui/app_list/app_list_model.cc ('k') | ui/app_list/search_box_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..fe537441a6015bdbbab3383535f2bcb866b40eca 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_ = false;
base::ObserverList<SearchBoxModelObserver> observers_;
« no previous file with comments | « ui/app_list/app_list_model.cc ('k') | ui/app_list/search_box_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698