| OLD | NEW |
| 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; | |
| 20 class AppListViewDelegate; | |
| 21 | |
| 22 // The search results page for the app list. | 19 // The search results page for the app list. |
| 23 class APP_LIST_EXPORT SearchResultPageView | 20 class APP_LIST_EXPORT SearchResultPageView |
| 24 : public AppListPage, | 21 : public AppListPage, |
| 25 public SearchResultContainerView::Delegate { | 22 public SearchResultContainerView::Delegate { |
| 26 public: | 23 public: |
| 27 SearchResultPageView(); | 24 SearchResultPageView(); |
| 28 ~SearchResultPageView() override; | 25 ~SearchResultPageView() override; |
| 29 | 26 |
| 30 int selected_index() { return selected_index_; } | 27 int selected_index() { return selected_index_; } |
| 31 bool HasSelection() { return selected_index_ > -1; } | 28 bool HasSelection() { return selected_index_ > -1; } |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 | 64 |
| 68 // -1 indicates no selection. | 65 // -1 indicates no selection. |
| 69 int selected_index_; | 66 int selected_index_; |
| 70 | 67 |
| 71 DISALLOW_COPY_AND_ASSIGN(SearchResultPageView); | 68 DISALLOW_COPY_AND_ASSIGN(SearchResultPageView); |
| 72 }; | 69 }; |
| 73 | 70 |
| 74 } // namespace app_list | 71 } // namespace app_list |
| 75 | 72 |
| 76 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_ | 73 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_ |
| OLD | NEW |