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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 const Tags& title_tags() const { return title_tags_; } | 82 const Tags& title_tags() const { return title_tags_; } |
83 void set_title_tags(const Tags& tags) { title_tags_ = tags; } | 83 void set_title_tags(const Tags& tags) { title_tags_ = tags; } |
84 | 84 |
85 const base::string16& details() const { return details_; } | 85 const base::string16& details() const { return details_; } |
86 void set_details(const base::string16& details) { details_ = details; } | 86 void set_details(const base::string16& details) { details_ = details; } |
87 | 87 |
88 const Tags& details_tags() const { return details_tags_; } | 88 const Tags& details_tags() const { return details_tags_; } |
89 void set_details_tags(const Tags& tags) { details_tags_ = tags; } | 89 void set_details_tags(const Tags& tags) { details_tags_ = tags; } |
90 | 90 |
91 const std::string& id() const { return id_; } | 91 const std::string& id() const { return id_; } |
92 double relevance() { return relevance_; } | 92 double relevance() const { return relevance_; } |
93 | 93 |
94 const Actions& actions() const { | 94 const Actions& actions() const { |
95 return actions_; | 95 return actions_; |
96 } | 96 } |
97 void SetActions(const Actions& sets); | 97 void SetActions(const Actions& sets); |
98 | 98 |
99 bool is_installing() const { return is_installing_; } | 99 bool is_installing() const { return is_installing_; } |
100 void SetIsInstalling(bool is_installing); | 100 void SetIsInstalling(bool is_installing); |
101 | 101 |
102 int percent_downloaded() const { return percent_downloaded_; } | 102 int percent_downloaded() const { return percent_downloaded_; } |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 int percent_downloaded_; | 141 int percent_downloaded_; |
142 | 142 |
143 ObserverList<SearchResultObserver> observers_; | 143 ObserverList<SearchResultObserver> observers_; |
144 | 144 |
145 DISALLOW_COPY_AND_ASSIGN(SearchResult); | 145 DISALLOW_COPY_AND_ASSIGN(SearchResult); |
146 }; | 146 }; |
147 | 147 |
148 } // namespace app_list | 148 } // namespace app_list |
149 | 149 |
150 #endif // UI_APP_LIST_SEARCH_RESULT_H_ | 150 #endif // UI_APP_LIST_SEARCH_RESULT_H_ |
OLD | NEW |