| 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> |
| 9 |
| 8 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| 9 #include "base/timer/timer.h" | 11 #include "base/timer/timer.h" |
| 10 #include "ui/app_list/apps_grid_view_delegate.h" | 12 #include "ui/app_list/apps_grid_view_delegate.h" |
| 11 #include "ui/app_list/search_box_view_delegate.h" | 13 #include "ui/app_list/search_box_view_delegate.h" |
| 12 #include "ui/app_list/search_result_list_view_delegate.h" | 14 #include "ui/app_list/search_result_list_view_delegate.h" |
| 13 #include "ui/views/view.h" | 15 #include "ui/views/view.h" |
| 14 | 16 |
| 15 namespace views { | 17 namespace views { |
| 16 class Widget; | 18 class Widget; |
| 17 } | 19 } |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 77 |
| 76 // Overridden from SearchBoxViewDelegate: | 78 // Overridden from SearchBoxViewDelegate: |
| 77 virtual void QueryChanged(SearchBoxView* sender) OVERRIDE; | 79 virtual void QueryChanged(SearchBoxView* sender) OVERRIDE; |
| 78 | 80 |
| 79 // Overridden from SearchResultListViewDelegate: | 81 // Overridden from SearchResultListViewDelegate: |
| 80 virtual void OpenResult(SearchResult* result, | 82 virtual void OpenResult(SearchResult* result, |
| 81 int event_flags) OVERRIDE; | 83 int event_flags) OVERRIDE; |
| 82 virtual void InvokeResultAction(SearchResult* result, | 84 virtual void InvokeResultAction(SearchResult* result, |
| 83 int action_index, | 85 int action_index, |
| 84 int event_flags) OVERRIDE; | 86 int event_flags) OVERRIDE; |
| 87 virtual void OnResultInstalled(SearchResult* result) OVERRIDE; |
| 85 | 88 |
| 86 AppListViewDelegate* delegate_; | 89 AppListViewDelegate* delegate_; |
| 87 AppListModel* model_; | 90 AppListModel* model_; |
| 88 | 91 |
| 89 SearchBoxView* search_box_view_; // Owned by views hierarchy. | 92 SearchBoxView* search_box_view_; // Owned by views hierarchy. |
| 90 ContentsView* contents_view_; // Owned by views hierarchy. | 93 ContentsView* contents_view_; // Owned by views hierarchy. |
| 91 | 94 |
| 92 // A timer that fires when maximum allowed time to wait for icon loading has | 95 // A timer that fires when maximum allowed time to wait for icon loading has |
| 93 // passed. | 96 // passed. |
| 94 base::OneShotTimer<AppListMainView> icon_loading_wait_timer_; | 97 base::OneShotTimer<AppListMainView> icon_loading_wait_timer_; |
| 95 | 98 |
| 96 ScopedVector<IconLoader> pending_icon_loaders_; | 99 ScopedVector<IconLoader> pending_icon_loaders_; |
| 97 | 100 |
| 98 DISALLOW_COPY_AND_ASSIGN(AppListMainView); | 101 DISALLOW_COPY_AND_ASSIGN(AppListMainView); |
| 99 }; | 102 }; |
| 100 | 103 |
| 101 } // namespace app_list | 104 } // namespace app_list |
| 102 | 105 |
| 103 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ | 106 #endif // UI_APP_LIST_VIEWS_APP_LIST_MAIN_VIEW_H_ |
| OLD | NEW |