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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
102 return actions_; | 102 return actions_; |
103 } | 103 } |
104 void SetActions(const Actions& sets); | 104 void SetActions(const Actions& sets); |
105 | 105 |
106 bool is_installing() const { return is_installing_; } | 106 bool is_installing() const { return is_installing_; } |
107 void SetIsInstalling(bool is_installing); | 107 void SetIsInstalling(bool is_installing); |
108 | 108 |
109 int percent_downloaded() const { return percent_downloaded_; } | 109 int percent_downloaded() const { return percent_downloaded_; } |
110 void SetPercentDownloaded(int percent_downloaded); | 110 void SetPercentDownloaded(int percent_downloaded); |
111 | 111 |
112 // Returns the size at which this result's icon should be displayed. | |
113 int GetPreferredIconSize(); | |
tapted
2014/08/13 08:09:06
nit: declare const?
tapted
2014/08/13 08:15:22
also [optional nit] to me, Get..Size() feels like
calamity
2014/08/13 08:25:09
Done.
calamity
2014/08/13 08:25:09
Done.
| |
114 | |
112 void NotifyItemInstalled(); | 115 void NotifyItemInstalled(); |
113 void NotifyItemUninstalled(); | 116 void NotifyItemUninstalled(); |
114 | 117 |
115 void AddObserver(SearchResultObserver* observer); | 118 void AddObserver(SearchResultObserver* observer); |
116 void RemoveObserver(SearchResultObserver* observer); | 119 void RemoveObserver(SearchResultObserver* observer); |
117 | 120 |
118 // Opens the result. | 121 // Opens the result. |
119 virtual void Open(int event_flags); | 122 virtual void Open(int event_flags); |
120 | 123 |
121 // Invokes a custom action on the result. | 124 // Invokes a custom action on the result. |
(...skipping 30 matching lines...) Expand all Loading... | |
152 int percent_downloaded_; | 155 int percent_downloaded_; |
153 | 156 |
154 ObserverList<SearchResultObserver> observers_; | 157 ObserverList<SearchResultObserver> observers_; |
155 | 158 |
156 DISALLOW_COPY_AND_ASSIGN(SearchResult); | 159 DISALLOW_COPY_AND_ASSIGN(SearchResult); |
157 }; | 160 }; |
158 | 161 |
159 } // namespace app_list | 162 } // namespace app_list |
160 | 163 |
161 #endif // UI_APP_LIST_SEARCH_RESULT_H_ | 164 #endif // UI_APP_LIST_SEARCH_RESULT_H_ |
OLD | NEW |