| 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/app_list_model.h" | 10 #include "ui/app_list/app_list_model.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 virtual void ListItemsRemoved(size_t start, size_t count) OVERRIDE; | 51 virtual void ListItemsRemoved(size_t start, size_t count) OVERRIDE; |
| 52 virtual void ListItemMoved(size_t index, size_t target_index) OVERRIDE; | 52 virtual void ListItemMoved(size_t index, size_t target_index) OVERRIDE; |
| 53 virtual void ListItemsChanged(size_t start, size_t count) OVERRIDE; | 53 virtual void ListItemsChanged(size_t start, size_t count) OVERRIDE; |
| 54 | 54 |
| 55 // Overridden from SearchResultViewDelegate: | 55 // Overridden from SearchResultViewDelegate: |
| 56 virtual void SearchResultActivated(SearchResultView* view, | 56 virtual void SearchResultActivated(SearchResultView* view, |
| 57 int event_flags) OVERRIDE; | 57 int event_flags) OVERRIDE; |
| 58 virtual void SearchResultActionActivated(SearchResultView* view, | 58 virtual void SearchResultActionActivated(SearchResultView* view, |
| 59 size_t action_index, | 59 size_t action_index, |
| 60 int event_flags) OVERRIDE; | 60 int event_flags) OVERRIDE; |
| 61 virtual void OnSearchResultInstalled(SearchResultView* view) OVERRIDE; |
| 61 | 62 |
| 62 SearchResultListViewDelegate* delegate_; // Not owned. | 63 SearchResultListViewDelegate* delegate_; // Not owned. |
| 63 AppListModel::SearchResults* results_; // Owned by AppListModel. | 64 AppListModel::SearchResults* results_; // Owned by AppListModel. |
| 64 | 65 |
| 65 int last_visible_index_; | 66 int last_visible_index_; |
| 66 int selected_index_; | 67 int selected_index_; |
| 67 | 68 |
| 68 // The factory that consolidates multiple Update calls into one. | 69 // The factory that consolidates multiple Update calls into one. |
| 69 base::WeakPtrFactory<SearchResultListView> update_factory_; | 70 base::WeakPtrFactory<SearchResultListView> update_factory_; |
| 70 | 71 |
| 71 DISALLOW_COPY_AND_ASSIGN(SearchResultListView); | 72 DISALLOW_COPY_AND_ASSIGN(SearchResultListView); |
| 72 }; | 73 }; |
| 73 | 74 |
| 74 } // namespace app_ist | 75 } // namespace app_ist |
| 75 | 76 |
| 76 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_LIST_VIEW_H_ | 77 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_LIST_VIEW_H_ |
| OLD | NEW |