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

Side by Side Diff: ui/app_list/views/search_result_list_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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_APP_LIST_VIEWS_SEARCH_RESULT_LIST_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_SEARCH_RESULT_LIST_VIEW_H_
6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_LIST_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_LIST_VIEW_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // Overridden from SearchResultContainerView: 57 // Overridden from SearchResultContainerView:
58 void OnContainerSelected(bool from_bottom, 58 void OnContainerSelected(bool from_bottom,
59 bool directional_movement) override; 59 bool directional_movement) override;
60 void NotifyFirstResultYIndex(int y_index) override; 60 void NotifyFirstResultYIndex(int y_index) override;
61 int GetYSize() override; 61 int GetYSize() override;
62 62
63 private: 63 private:
64 friend class test::SearchResultListViewTest; 64 friend class test::SearchResultListViewTest;
65 65
66 // Overridden from SearchResultContainerView: 66 // Overridden from SearchResultContainerView:
67 int Update() override; 67 int DoUpdate() override;
68 void UpdateSelectedIndex(int old_selected, int new_selected) override; 68 void UpdateSelectedIndex(int old_selected, int new_selected) override;
69 69
70 // Updates the auto launch states. 70 // Updates the auto launch states.
71 void SetAutoLaunchTimeout(const base::TimeDelta& timeout); 71 void SetAutoLaunchTimeout(const base::TimeDelta& timeout);
72 void CancelAutoLaunchTimeout(); 72 void CancelAutoLaunchTimeout();
73 73
74 // Helper function to get SearchResultView at given |index|. 74 // Helper function to get SearchResultView at given |index|.
75 SearchResultView* GetResultViewAt(int index); 75 SearchResultView* GetResultViewAt(int index);
76 76
77 // Forcibly auto-launch for test if it is in auto-launching state. 77 // Forcibly auto-launch for test if it is in auto-launching state.
(...skipping 14 matching lines...) Expand all
92 views::View* results_container_; 92 views::View* results_container_;
93 views::View* auto_launch_indicator_; 93 views::View* auto_launch_indicator_;
94 std::unique_ptr<gfx::LinearAnimation> auto_launch_animation_; 94 std::unique_ptr<gfx::LinearAnimation> auto_launch_animation_;
95 95
96 DISALLOW_COPY_AND_ASSIGN(SearchResultListView); 96 DISALLOW_COPY_AND_ASSIGN(SearchResultListView);
97 }; 97 };
98 98
99 } // namespace app_list 99 } // namespace app_list
100 100
101 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_LIST_VIEW_H_ 101 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_LIST_VIEW_H_
OLDNEW
« no previous file with comments | « ui/app_list/views/search_result_container_view.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