| 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 "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
| 10 #include "ui/app_list/views/search_result_container_view.h" | 10 #include "ui/app_list/views/search_result_container_view.h" |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 // Overridden from views::View: | 48 // Overridden from views::View: |
| 49 bool OnKeyPressed(const ui::KeyEvent& event) override; | 49 bool OnKeyPressed(const ui::KeyEvent& event) override; |
| 50 gfx::Size GetPreferredSize() const override; | 50 gfx::Size GetPreferredSize() const override; |
| 51 | 51 |
| 52 // Overridden from ui::ListModelObserver: | 52 // Overridden from ui::ListModelObserver: |
| 53 void ListItemsRemoved(size_t start, size_t count) override; | 53 void ListItemsRemoved(size_t start, size_t count) override; |
| 54 | 54 |
| 55 // Overridden from SearchResultContainerView: | 55 // Overridden from SearchResultContainerView: |
| 56 void OnContainerSelected(bool from_bottom, | 56 void OnContainerSelected(bool from_bottom, |
| 57 bool directional_movement) override; | 57 bool directional_movement) override; |
| 58 void NotifyFirstResultYIndex(int y_index) override; |
| 59 int GetYSize() override; |
| 58 | 60 |
| 59 private: | 61 private: |
| 60 friend class test::SearchResultListViewTest; | 62 friend class test::SearchResultListViewTest; |
| 61 | 63 |
| 62 // Overridden from SearchResultContainerView: | 64 // Overridden from SearchResultContainerView: |
| 63 int Update() override; | 65 int Update() override; |
| 64 void UpdateSelectedIndex(int old_selected, int new_selected) override; | 66 void UpdateSelectedIndex(int old_selected, int new_selected) override; |
| 65 | 67 |
| 66 // Updates the auto launch states. | 68 // Updates the auto launch states. |
| 67 void SetAutoLaunchTimeout(const base::TimeDelta& timeout); | 69 void SetAutoLaunchTimeout(const base::TimeDelta& timeout); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 88 views::View* results_container_; | 90 views::View* results_container_; |
| 89 views::View* auto_launch_indicator_; | 91 views::View* auto_launch_indicator_; |
| 90 scoped_ptr<gfx::LinearAnimation> auto_launch_animation_; | 92 scoped_ptr<gfx::LinearAnimation> auto_launch_animation_; |
| 91 | 93 |
| 92 DISALLOW_COPY_AND_ASSIGN(SearchResultListView); | 94 DISALLOW_COPY_AND_ASSIGN(SearchResultListView); |
| 93 }; | 95 }; |
| 94 | 96 |
| 95 } // namespace app_list | 97 } // namespace app_list |
| 96 | 98 |
| 97 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_LIST_VIEW_H_ | 99 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_LIST_VIEW_H_ |
| OLD | NEW |