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

Unified Diff: ui/app_list/search_result.h

Issue 922063003: Sort experimental app list search result groups. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@fix_search_results_not_being_there
Patch Set: force test to be experimental app list Created 5 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 | « ui/app_list/search/mixer.cc ('k') | ui/app_list/test/test_search_result.h » ('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 5f8e371c065bf46507b0e4aaf6f09df188ddbaad..aa3a6b11c9d387877110094a2ce595a3271c84e8 100644
--- a/ui/app_list/search_result.h
+++ b/ui/app_list/search_result.h
@@ -98,7 +98,9 @@ class APP_LIST_EXPORT SearchResult {
void set_details_tags(const Tags& tags) { details_tags_ = tags; }
const std::string& id() const { return id_; }
+
double relevance() const { return relevance_; }
+ void set_relevance(double relevance) { relevance_ = relevance; }
DisplayType display_type() const { return display_type_; }
void set_display_type(DisplayType display_type) {
@@ -146,7 +148,6 @@ class APP_LIST_EXPORT SearchResult {
protected:
void set_id(const std::string& id) { id_ = id; }
- void set_relevance(double relevance) { relevance_ = relevance; }
void set_voice_result(bool voice_result) { voice_result_ = voice_result; }
private:
« no previous file with comments | « ui/app_list/search/mixer.cc ('k') | ui/app_list/test/test_search_result.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698