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

Unified Diff: ui/app_list/views/search_result_container_view.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/test/test_search_result.cc ('k') | ui/app_list/views/search_result_list_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/views/search_result_container_view.h
diff --git a/ui/app_list/views/search_result_container_view.h b/ui/app_list/views/search_result_container_view.h
index 8390eb6c84e3a27203cd074b1fd13133ca9eee35..3dd95b7be2bd8a6a7ae9b27d775cde786b5211cc 100644
--- a/ui/app_list/views/search_result_container_view.h
+++ b/ui/app_list/views/search_result_container_view.h
@@ -40,6 +40,9 @@ class APP_LIST_EXPORT SearchResultContainerView : public views::View,
int num_results() const { return num_results_; }
+ void set_container_score(double score) { container_score_ = score; }
+ double container_score() const { return container_score_; }
+
// Schedules an Update call using |update_factory_|. Do nothing if there is a
// pending call.
void ScheduleUpdate();
@@ -68,6 +71,8 @@ class APP_LIST_EXPORT SearchResultContainerView : public views::View,
int selected_index_;
int num_results_;
+ double container_score_;
+
AppListModel::SearchResults* results_; // Owned by AppListModel.
// The factory that consolidates multiple Update calls into one.
« no previous file with comments | « ui/app_list/test/test_search_result.cc ('k') | ui/app_list/views/search_result_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698