OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_ |
| 6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_ |
| 7 |
| 8 #include "base/basictypes.h" |
| 9 #include "base/memory/weak_ptr.h" |
| 10 #include "ui/app_list/app_list_export.h" |
| 11 #include "ui/app_list/app_list_model.h" |
| 12 #include "ui/app_list/views/search_result_container_view.h" |
| 13 |
| 14 namespace views { |
| 15 class View; |
| 16 } |
| 17 |
| 18 namespace app_list { |
| 19 |
| 20 class AppListMainView; |
| 21 class AppListViewDelegate; |
| 22 class SearchResultListView; |
| 23 class SearchResultTileItemView; |
| 24 |
| 25 // The start page for the experimental app list. |
| 26 class APP_LIST_EXPORT SearchResultPageView : public SearchResultContainerView { |
| 27 public: |
| 28 SearchResultPageView(AppListMainView* app_list_main_view, |
| 29 AppListViewDelegate* view_delegate); |
| 30 ~SearchResultPageView() override; |
| 31 |
| 32 // Overridden from views::View: |
| 33 bool OnKeyPressed(const ui::KeyEvent& event) override; |
| 34 |
| 35 // Overridden from SearchResultContainerView: |
| 36 void Update() override; |
| 37 |
| 38 private: |
| 39 void InitTilesContainer(); |
| 40 |
| 41 SearchResultListView* results_view_; // Owned by views hierarchy. |
| 42 views::View* tiles_container_; // Owned by views hierarchy. |
| 43 |
| 44 std::vector<SearchResultTileItemView*> tile_views_; |
| 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(SearchResultPageView); |
| 47 }; |
| 48 |
| 49 } // namespace app_list |
| 50 |
| 51 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_ |
OLD | NEW |