| 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_TILE_ITEM_VIEW_H_ | 5 #ifndef UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_ |
| 6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_ | 6 #define UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_ |
| 7 | 7 |
| 8 #include <memory> |
| 9 |
| 8 #include "base/macros.h" | 10 #include "base/macros.h" |
| 9 #include "ui/app_list/search_result_observer.h" | 11 #include "ui/app_list/search_result_observer.h" |
| 10 #include "ui/app_list/views/tile_item_view.h" | 12 #include "ui/app_list/views/tile_item_view.h" |
| 11 #include "ui/views/context_menu_controller.h" | 13 #include "ui/views/context_menu_controller.h" |
| 12 | 14 |
| 13 namespace views { | 15 namespace views { |
| 14 class MenuRunner; | 16 class MenuRunner; |
| 15 class Label; | 17 class Label; |
| 16 } | 18 } |
| 17 | 19 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 SearchResultContainerView* result_container_; // Parent view | 67 SearchResultContainerView* result_container_; // Parent view |
| 66 | 68 |
| 67 // Owned by the model provided by the AppListViewDelegate. | 69 // Owned by the model provided by the AppListViewDelegate. |
| 68 SearchResult* item_ = nullptr; | 70 SearchResult* item_ = nullptr; |
| 69 | 71 |
| 70 views::Label* rating_ = nullptr; // Owned by views hierarchy. | 72 views::Label* rating_ = nullptr; // Owned by views hierarchy. |
| 71 views::Label* price_ = nullptr; // Owned by views hierarchy. | 73 views::Label* price_ = nullptr; // Owned by views hierarchy. |
| 72 | 74 |
| 73 AppListViewDelegate* view_delegate_; | 75 AppListViewDelegate* view_delegate_; |
| 74 | 76 |
| 75 const bool is_fullscreen_app_list_enabled_; | 77 // Whether the Play Store app search feature is enabled. |
| 78 const bool is_play_store_app_search_enabled_; |
| 76 | 79 |
| 77 std::unique_ptr<views::MenuRunner> context_menu_runner_; | 80 std::unique_ptr<views::MenuRunner> context_menu_runner_; |
| 78 | 81 |
| 79 DISALLOW_COPY_AND_ASSIGN(SearchResultTileItemView); | 82 DISALLOW_COPY_AND_ASSIGN(SearchResultTileItemView); |
| 80 }; | 83 }; |
| 81 | 84 |
| 82 } // namespace app_list | 85 } // namespace app_list |
| 83 | 86 |
| 84 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_ | 87 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_ |
| OLD | NEW |