Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: ui/app_list/views/search_result_page_view.h

Issue 660463003: Add a SearchResultPageView to the experimental app list. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@search_result_container_view
Patch Set: address comments Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 virtual ~SearchResultPageView();
Matt Giuca 2014/11/04 07:44:37 ~SearchResultPageView() override;
calamity 2014/11/06 04:55:01 Done.
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698