Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(130)

Side by Side Diff: ui/app_list/search_result.h

Issue 458983004: Move app list search result icon sizes to app_list_constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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();
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698