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 "base/macros.h" | 8 #include "base/macros.h" |
9 #include "ui/app_list/search_result_observer.h" | 9 #include "ui/app_list/search_result_observer.h" |
10 #include "ui/app_list/views/tile_item_view.h" | 10 #include "ui/app_list/views/tile_item_view.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 void Layout() override; | 62 void Layout() override; |
63 gfx::Size CalculatePreferredSize() const override; | 63 gfx::Size CalculatePreferredSize() const override; |
64 | 64 |
65 SearchResultContainerView* result_container_; // Parent view | 65 SearchResultContainerView* result_container_; // Parent view |
66 | 66 |
67 // Owned by the model provided by the AppListViewDelegate. | 67 // Owned by the model provided by the AppListViewDelegate. |
68 SearchResult* item_ = nullptr; | 68 SearchResult* item_ = nullptr; |
69 | 69 |
70 views::Label* rating_ = nullptr; // Owned by views hierarchy. | 70 views::Label* rating_ = nullptr; // Owned by views hierarchy. |
71 views::Label* price_ = nullptr; // Owned by views hierarchy. | 71 views::Label* price_ = nullptr; // Owned by views hierarchy. |
| 72 views::ImageView* rating_star_ = nullptr; // Owned by views hierarchy. |
72 | 73 |
73 AppListViewDelegate* view_delegate_; | 74 AppListViewDelegate* view_delegate_; |
74 | 75 |
75 const bool is_fullscreen_app_list_enabled_; | 76 const bool is_fullscreen_app_list_enabled_; |
76 | 77 |
77 std::unique_ptr<views::MenuRunner> context_menu_runner_; | 78 std::unique_ptr<views::MenuRunner> context_menu_runner_; |
78 | 79 |
79 DISALLOW_COPY_AND_ASSIGN(SearchResultTileItemView); | 80 DISALLOW_COPY_AND_ASSIGN(SearchResultTileItemView); |
80 }; | 81 }; |
81 | 82 |
82 } // namespace app_list | 83 } // namespace app_list |
83 | 84 |
84 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_ | 85 #endif // UI_APP_LIST_VIEWS_SEARCH_RESULT_TILE_ITEM_VIEW_H_ |
OLD | NEW |