Chromium Code Reviews| Index: ui/app_list/views/search_result_page_view.h |
| diff --git a/ui/app_list/views/search_result_page_view.h b/ui/app_list/views/search_result_page_view.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..310327f403c68dce06da7e3f3de0b848aa08e38c |
| --- /dev/null |
| +++ b/ui/app_list/views/search_result_page_view.h |
| @@ -0,0 +1,51 @@ |
| +// Copyright 2014 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_ |
| +#define UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_ |
| + |
| +#include "base/basictypes.h" |
| +#include "base/memory/weak_ptr.h" |
| +#include "ui/app_list/app_list_export.h" |
| +#include "ui/app_list/app_list_model.h" |
| +#include "ui/app_list/views/search_result_container_view.h" |
| + |
| +namespace views { |
| +class View; |
| +} |
| + |
| +namespace app_list { |
| + |
| +class AppListMainView; |
| +class AppListViewDelegate; |
| +class SearchResultListView; |
| +class SearchResultTileItemView; |
| + |
| +// The start page for the experimental app list. |
| +class APP_LIST_EXPORT SearchResultPageView : public SearchResultContainerView { |
| + public: |
| + SearchResultPageView(AppListMainView* app_list_main_view, |
| + AppListViewDelegate* view_delegate); |
| + virtual ~SearchResultPageView(); |
|
Matt Giuca
2014/11/04 07:44:37
~SearchResultPageView() override;
calamity
2014/11/06 04:55:01
Done.
|
| + |
| + // Overridden from views::View: |
| + bool OnKeyPressed(const ui::KeyEvent& event) override; |
| + |
| + // Overridden from SearchResultContainerView: |
| + void Update() override; |
| + |
| + private: |
| + void InitTilesContainer(); |
| + |
| + SearchResultListView* results_view_; // Owned by views hierarchy. |
| + views::View* tiles_container_; // Owned by views hierarchy. |
| + |
| + std::vector<SearchResultTileItemView*> tile_views_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(SearchResultPageView); |
| +}; |
| + |
| +} // namespace app_list |
| + |
| +#endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_ |