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

Unified Diff: ui/app_list/views/search_result_container_view.h

Issue 1132943004: Add Apps.AppListSearchResultDistanceFromOrigin UMA stat. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@add_query_length_stat
Patch Set: Created 5 years, 7 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_result.cc ('k') | ui/app_list/views/search_result_container_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 c2fafe326966ced80ca319021c10b3bb70c49b69..14f7e2c36ccf51676a712879360c94d5ba388017 100644
--- a/ui/app_list/views/search_result_container_view.h
+++ b/ui/app_list/views/search_result_container_view.h
@@ -43,10 +43,22 @@ class APP_LIST_EXPORT SearchResultContainerView : public views::View,
void set_container_score(double score) { container_score_ = score; }
double container_score() const { return container_score_; }
+ // Updates the distance_from_origin() properties of the results in this
+ // container. |y_index| is the absolute y-index of the first result of this
+ // container (counting from the top of the app list).
+ virtual void NotifyFirstResultYIndex(int y_index) = 0;
+
+ // Gets the number of down keystrokes from the beginning to the end of this
+ // container.
+ virtual int GetYSize() = 0;
+
// Schedules an Update call using |update_factory_|. Do nothing if there is a
// pending call.
void ScheduleUpdate();
+ // Returns whether an update is currently scheduled for this container.
+ bool UpdateScheduled();
+
// Overridden from ui::ListModelObserver:
void ListItemsAdded(size_t start, size_t count) override;
void ListItemsRemoved(size_t start, size_t count) override;
« no previous file with comments | « ui/app_list/search_result.cc ('k') | ui/app_list/views/search_result_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698