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

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

Issue 2609843004: Fix the Crash in the launcher's start page (a better approach). (Closed)
Patch Set: Rebase. Created 3 years, 11 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 | « no previous file | 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 8c941a8ae04d821a58b938513604b4710131fb53..e4f5fd82d0344562a8c20daf54a42825c6d70f33 100644
--- a/ui/app_list/views/search_result_container_view.h
+++ b/ui/app_list/views/search_result_container_view.h
@@ -61,9 +61,8 @@ class APP_LIST_EXPORT SearchResultContainerView : public views::View,
// container.
virtual int GetYSize() = 0;
- // Schedules an Update call using |update_factory_|. Do nothing if there is a
- // pending call.
- void ScheduleUpdate();
+ // Batching method that actually performs the update and updates layout.
+ void Update();
// Returns whether an update is currently scheduled for this container.
bool UpdateScheduled();
@@ -83,15 +82,16 @@ class APP_LIST_EXPORT SearchResultContainerView : public views::View,
bool directional_movement) = 0;
private:
+ // Schedules an Update call using |update_factory_|. Do nothing if there is a
+ // pending call.
+ void ScheduleUpdate();
+
// Updates UI with model. Returns the number of visible results.
- virtual int Update() = 0;
+ virtual int DoUpdate() = 0;
// Updates UI for a change in the selected index.
virtual void UpdateSelectedIndex(int old_selected, int new_selected) = 0;
- // Batching method that actually performs the update and updates layout.
- void DoUpdate();
-
Delegate* delegate_;
int selected_index_;
« no previous file with comments | « no previous file | ui/app_list/views/search_result_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698