| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_SEARCH_RESULT_H_ | 5 #ifndef UI_APP_LIST_SEARCH_RESULT_H_ |
| 6 #define UI_APP_LIST_SEARCH_RESULT_H_ | 6 #define UI_APP_LIST_SEARCH_RESULT_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 const Tags& title_tags() const { return title_tags_; } | 107 const Tags& title_tags() const { return title_tags_; } |
| 108 void set_title_tags(const Tags& tags) { title_tags_ = tags; } | 108 void set_title_tags(const Tags& tags) { title_tags_ = tags; } |
| 109 | 109 |
| 110 const base::string16& details() const { return details_; } | 110 const base::string16& details() const { return details_; } |
| 111 void set_details(const base::string16& details) { details_ = details; } | 111 void set_details(const base::string16& details) { details_ = details; } |
| 112 | 112 |
| 113 const Tags& details_tags() const { return details_tags_; } | 113 const Tags& details_tags() const { return details_tags_; } |
| 114 void set_details_tags(const Tags& tags) { details_tags_ = tags; } | 114 void set_details_tags(const Tags& tags) { details_tags_ = tags; } |
| 115 | 115 |
| 116 float rating() const { return rating_; } | |
| 117 void SetRating(float rating); | |
| 118 | |
| 119 const base::string16& formatted_price() const { return formatted_price_; } | |
| 120 void SetFormattedPrice(const base::string16& formatted_price); | |
| 121 | |
| 122 views::View* view() const { return view_; } | 116 views::View* view() const { return view_; } |
| 123 void set_view(views::View* view) { view_ = view; } | 117 void set_view(views::View* view) { view_ = view; } |
| 124 | 118 |
| 125 bool is_mouse_in_view() const { return mouse_is_in_view_; } | 119 bool is_mouse_in_view() const { return mouse_is_in_view_; } |
| 126 void SetIsMouseInView(bool mouse_is_inside); | 120 void SetIsMouseInView(bool mouse_is_inside); |
| 127 | 121 |
| 128 const std::string& id() const { return id_; } | 122 const std::string& id() const { return id_; } |
| 129 | 123 |
| 130 double relevance() const { return relevance_; } | 124 double relevance() const { return relevance_; } |
| 131 void set_relevance(double relevance) { relevance_ = relevance; } | 125 void set_relevance(double relevance) { relevance_ = relevance; } |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 | 191 |
| 198 gfx::ImageSkia icon_; | 192 gfx::ImageSkia icon_; |
| 199 gfx::ImageSkia badge_icon_; | 193 gfx::ImageSkia badge_icon_; |
| 200 | 194 |
| 201 base::string16 title_; | 195 base::string16 title_; |
| 202 Tags title_tags_; | 196 Tags title_tags_; |
| 203 | 197 |
| 204 base::string16 details_; | 198 base::string16 details_; |
| 205 Tags details_tags_; | 199 Tags details_tags_; |
| 206 | 200 |
| 207 // Amount of the app's stars in play store. Not exist if set to negative. | |
| 208 float rating_ = -1.0f; | |
| 209 | |
| 210 // Formatted price label of the app in play store. Not exist if set to empty. | |
| 211 base::string16 formatted_price_; | |
| 212 | |
| 213 // Unowned pointer to a view containing a rendered result, or nullptr if there | 201 // Unowned pointer to a view containing a rendered result, or nullptr if there |
| 214 // is no such view for the result. | 202 // is no such view for the result. |
| 215 // The view has set_owned_by_client() property set. It's a responsibility of | 203 // The view has set_owned_by_client() property set. It's a responsibility of |
| 216 // SearchProvider to set this property and own this view. | 204 // SearchProvider to set this property and own this view. |
| 217 views::View* view_ = nullptr; | 205 views::View* view_ = nullptr; |
| 218 | 206 |
| 219 // If view_ isn't null, indicates whether the mouse cursor is inside view_. | 207 // If view_ isn't null, indicates whether the mouse cursor is inside view_. |
| 220 bool mouse_is_in_view_ = false; | 208 bool mouse_is_in_view_ = false; |
| 221 | 209 |
| 222 std::string id_; | 210 std::string id_; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 234 int percent_downloaded_ = 0; | 222 int percent_downloaded_ = 0; |
| 235 | 223 |
| 236 base::ObserverList<SearchResultObserver> observers_; | 224 base::ObserverList<SearchResultObserver> observers_; |
| 237 | 225 |
| 238 DISALLOW_COPY_AND_ASSIGN(SearchResult); | 226 DISALLOW_COPY_AND_ASSIGN(SearchResult); |
| 239 }; | 227 }; |
| 240 | 228 |
| 241 } // namespace app_list | 229 } // namespace app_list |
| 242 | 230 |
| 243 #endif // UI_APP_LIST_SEARCH_RESULT_H_ | 231 #endif // UI_APP_LIST_SEARCH_RESULT_H_ |
| OLD | NEW |