| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |