| 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" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 void SetSelectedIndex(int index, bool directional_movement); | 59 void SetSelectedIndex(int index, bool directional_movement); |
| 60 bool IsValidSelectionIndex(int index); | 60 bool IsValidSelectionIndex(int index); |
| 61 | 61 |
| 62 // The SearchResultContainerViews that compose the search page. All owned by | 62 // The SearchResultContainerViews that compose the search page. All owned by |
| 63 // the views hierarchy. | 63 // the views hierarchy. |
| 64 std::vector<SearchResultContainerView*> result_container_views_; | 64 std::vector<SearchResultContainerView*> result_container_views_; |
| 65 | 65 |
| 66 // -1 indicates no selection. | 66 // -1 indicates no selection. |
| 67 int selected_index_; | 67 int selected_index_; |
| 68 | 68 |
| 69 // Whether launcher is shown in fullscreen mode. | 69 // Whether to use new UX design for search results. |
| 70 bool const is_fullscreen_app_list_enabled_; | 70 bool const is_new_design_; |
| 71 | 71 |
| 72 // View containing SearchCardView instances. Owned by view hierarchy. | 72 // View containing SearchCardView instances. Owned by view hierarchy. |
| 73 views::View* const contents_view_; | 73 views::View* const contents_view_; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(SearchResultPageView); | 75 DISALLOW_COPY_AND_ASSIGN(SearchResultPageView); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace app_list | 78 } // namespace app_list |
| 79 | 79 |
| 80 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_ | 80 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_PAGE_VIEW_H_ |
| OLD | NEW |