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

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

Issue 2339523004: Remove old (dead) app list code. (Closed)
Patch Set: Address nonbistytftatl review. Created 4 years, 2 months 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
1 // Copyright 2014 The Chromium Authors. All rights reserved. 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 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_SEARCH_RESULT_PAGE_VIEW_H_ 5 #ifndef UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_
6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_ 6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "ui/app_list/app_list_export.h" 12 #include "ui/app_list/app_list_export.h"
13 #include "ui/app_list/app_list_model.h" 13 #include "ui/app_list/app_list_model.h"
14 #include "ui/app_list/views/app_list_page.h" 14 #include "ui/app_list/views/app_list_page.h"
15 #include "ui/app_list/views/search_result_container_view.h" 15 #include "ui/app_list/views/search_result_container_view.h"
16 16
17 namespace app_list { 17 namespace app_list {
18 18
19 class AppListMainView; 19 class AppListMainView;
20 class AppListViewDelegate; 20 class AppListViewDelegate;
21 21
22 // The start page for the experimental app list. 22 // The search results page for the app list.
23 class APP_LIST_EXPORT SearchResultPageView 23 class APP_LIST_EXPORT SearchResultPageView
24 : public AppListPage, 24 : public AppListPage,
25 public SearchResultContainerView::Delegate { 25 public SearchResultContainerView::Delegate {
26 public: 26 public:
27 SearchResultPageView(); 27 SearchResultPageView();
28 ~SearchResultPageView() override; 28 ~SearchResultPageView() override;
29 29
30 int selected_index() { return selected_index_; } 30 int selected_index() { return selected_index_; }
31 bool HasSelection() { return selected_index_ > -1; } 31 bool HasSelection() { return selected_index_ > -1; }
32 void SetSelection(bool select); // Set or unset result selection. 32 void SetSelection(bool select); // Set or unset result selection.
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 67
68 // -1 indicates no selection. 68 // -1 indicates no selection.
69 int selected_index_; 69 int selected_index_;
70 70
71 DISALLOW_COPY_AND_ASSIGN(SearchResultPageView); 71 DISALLOW_COPY_AND_ASSIGN(SearchResultPageView);
72 }; 72 };
73 73
74 } // namespace app_list 74 } // namespace app_list
75 75
76 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_ 76 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698