OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APP_LIST_MAIN_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 virtual void ActivateApp(AppListItem* item, int event_flags) OVERRIDE; | 79 virtual void ActivateApp(AppListItem* item, int event_flags) OVERRIDE; |
80 virtual void GetShortcutPathForApp( | 80 virtual void GetShortcutPathForApp( |
81 const std::string& app_id, | 81 const std::string& app_id, |
82 const base::Callback<void(const base::FilePath&)>& callback) OVERRIDE; | 82 const base::Callback<void(const base::FilePath&)>& callback) OVERRIDE; |
83 | 83 |
84 // Overridden from SearchBoxViewDelegate: | 84 // Overridden from SearchBoxViewDelegate: |
85 virtual void QueryChanged(SearchBoxView* sender) OVERRIDE; | 85 virtual void QueryChanged(SearchBoxView* sender) OVERRIDE; |
86 | 86 |
87 // Overridden from SearchResultListViewDelegate: | 87 // Overridden from SearchResultListViewDelegate: |
88 virtual void OpenResult(SearchResult* result, | 88 virtual void OpenResult(SearchResult* result, |
| 89 bool auto_launch, |
89 int event_flags) OVERRIDE; | 90 int event_flags) OVERRIDE; |
90 virtual void InvokeResultAction(SearchResult* result, | 91 virtual void InvokeResultAction(SearchResult* result, |
91 int action_index, | 92 int action_index, |
92 int event_flags) OVERRIDE; | 93 int event_flags) OVERRIDE; |
93 virtual void OnResultInstalled(SearchResult* result) OVERRIDE; | 94 virtual void OnResultInstalled(SearchResult* result) OVERRIDE; |
94 virtual void OnResultUninstalled(SearchResult* result) OVERRIDE; | 95 virtual void OnResultUninstalled(SearchResult* result) OVERRIDE; |
95 | 96 |
96 AppListViewDelegate* delegate_; // Owned by parent view (AppListView). | 97 AppListViewDelegate* delegate_; // Owned by parent view (AppListView). |
97 PaginationModel* pagination_model_; // Owned by AppListController. | 98 PaginationModel* pagination_model_; // Owned by AppListController. |
98 AppListModel* model_; // Unowned; ownership is handled by |delegate_|. | 99 AppListModel* model_; // Unowned; ownership is handled by |delegate_|. |
99 | 100 |
100 SearchBoxView* search_box_view_; // Owned by views hierarchy. | 101 SearchBoxView* search_box_view_; // Owned by views hierarchy. |
101 ContentsView* contents_view_; // Owned by views hierarchy. | 102 ContentsView* contents_view_; // Owned by views hierarchy. |
102 | 103 |
103 // A timer that fires when maximum allowed time to wait for icon loading has | 104 // A timer that fires when maximum allowed time to wait for icon loading has |
104 // passed. | 105 // passed. |
105 base::OneShotTimer<AppListMainView> icon_loading_wait_timer_; | 106 base::OneShotTimer<AppListMainView> icon_loading_wait_timer_; |
106 | 107 |
107 ScopedVector<IconLoader> pending_icon_loaders_; | 108 ScopedVector<IconLoader> pending_icon_loaders_; |
108 | 109 |
109 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; | 110 base::WeakPtrFactory<AppListMainView> weak_ptr_factory_; |
110 | 111 |
111 DISALLOW_COPY_AND_ASSIGN(AppListMainView); | 112 DISALLOW_COPY_AND_ASSIGN(AppListMainView); |
112 }; | 113 }; |
113 | 114 |
114 } // namespace app_list | 115 } // namespace app_list |
115 | 116 |
116 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 117 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
OLD | NEW |