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

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
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..a0644ee64f6be6cf83fbec731bdeca0ce9b174c8 100644
--- a/ui/app_list/views/search_result_container_view.h
+++ b/ui/app_list/views/search_result_container_view.h
@@ -43,10 +43,21 @@ class APP_LIST_EXPORT SearchResultContainerView : public views::View,
void set_container_score(double score) { container_score_ = score; }
double container_score() const { return container_score_; }
+ // Notifies the container of the y-index of the first result of this container
+ // relative to all other result containers.
+ virtual void NotifyFirstResultYIndex(int y_index) = 0;
Matt Giuca 2015/05/11 06:50:40 The documentation should say what this function *d
calamity 2015/05/11 07:15:03 Done.
+
+ // 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;

Powered by Google App Engine
This is Rietveld 408576698