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

Unified Diff: ui/app_list/search_result.h

Issue 796293002: App list voice searches now prioritize exact-match web results. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit. Created 6 years 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/search_controller.cc ('k') | ui/app_list/search_result.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/search_result.h
diff --git a/ui/app_list/search_result.h b/ui/app_list/search_result.h
index 95bc5e55ee2b94ba5d0bc7bf032e91611b2327a1..5efcfd06a898d4a193c8b34f3f6263101ec0e664 100644
--- a/ui/app_list/search_result.h
+++ b/ui/app_list/search_result.h
@@ -106,6 +106,11 @@ class APP_LIST_EXPORT SearchResult {
}
void SetActions(const Actions& sets);
+ // Whether the result can be automatically selected by a voice query.
+ // (Non-voice results can still appear in the results list to be manually
+ // selected.)
+ bool voice_result() const { return voice_result_; }
+
bool is_installing() const { return is_installing_; }
void SetIsInstalling(bool is_installing);
@@ -141,6 +146,7 @@ class APP_LIST_EXPORT SearchResult {
void set_display_type(DisplayType display_type) {
display_type_ = display_type;
}
+ void set_voice_result(bool voice_result) { voice_result_ = voice_result; }
private:
gfx::ImageSkia icon_;
@@ -156,6 +162,7 @@ class APP_LIST_EXPORT SearchResult {
DisplayType display_type_;
Actions actions_;
+ bool voice_result_;
bool is_installing_;
int percent_downloaded_;
« no previous file with comments | « ui/app_list/search_controller.cc ('k') | ui/app_list/search_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698