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

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

Issue 21592003: app_list: Show apps grid after installing from cws result. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: happy mac Created 7 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
« no previous file with comments | « ui/app_list/cocoa/apps_search_results_model_bridge.mm ('k') | ui/app_list/search_result.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 return actions_; 93 return actions_;
94 } 94 }
95 void SetActions(const Actions& sets); 95 void SetActions(const Actions& sets);
96 96
97 bool is_installing() const { return is_installing_; } 97 bool is_installing() const { return is_installing_; }
98 void SetIsInstalling(bool is_installing); 98 void SetIsInstalling(bool is_installing);
99 99
100 int percent_downloaded() const { return percent_downloaded_; } 100 int percent_downloaded() const { return percent_downloaded_; }
101 void SetPercentDownloaded(int percent_downloaded); 101 void SetPercentDownloaded(int percent_downloaded);
102 102
103 void NotifyItemInstalled();
104
103 void AddObserver(SearchResultObserver* observer); 105 void AddObserver(SearchResultObserver* observer);
104 void RemoveObserver(SearchResultObserver* observer); 106 void RemoveObserver(SearchResultObserver* observer);
105 107
106 // Returns the context menu model for this item. 108 // Returns the context menu model for this item.
107 // Note the returned menu model is owned by this item. 109 // Note the returned menu model is owned by this item.
108 virtual ui::MenuModel* GetContextMenuModel(); 110 virtual ui::MenuModel* GetContextMenuModel();
109 111
110 private: 112 private:
111 gfx::ImageSkia icon_; 113 gfx::ImageSkia icon_;
112 114
113 base::string16 title_; 115 base::string16 title_;
114 Tags title_tags_; 116 Tags title_tags_;
115 117
116 base::string16 details_; 118 base::string16 details_;
117 Tags details_tags_; 119 Tags details_tags_;
118 120
119 Actions actions_; 121 Actions actions_;
120 122
121 bool is_installing_; 123 bool is_installing_;
122 int percent_downloaded_; 124 int percent_downloaded_;
123 125
124 ObserverList<SearchResultObserver> observers_; 126 ObserverList<SearchResultObserver> observers_;
125 127
126 DISALLOW_COPY_AND_ASSIGN(SearchResult); 128 DISALLOW_COPY_AND_ASSIGN(SearchResult);
127 }; 129 };
128 130
129 } // namespace app_list 131 } // namespace app_list
130 132
131 #endif // UI_APP_LIST_SEARCH_RESULT_H_ 133 #endif // UI_APP_LIST_SEARCH_RESULT_H_
OLDNEW
« no previous file with comments | « ui/app_list/cocoa/apps_search_results_model_bridge.mm ('k') | ui/app_list/search_result.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698