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

Side by Side Diff: ui/app_list/views/app_list_main_view.cc

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/views/app_list_main_view.h ('k') | ui/app_list/views/search_result_list_view.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "ui/app_list/views/app_list_main_view.h" 5 #include "ui/app_list/views/app_list_main_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 delegate_->OpenSearchResult(result, event_flags); 219 delegate_->OpenSearchResult(result, event_flags);
220 } 220 }
221 221
222 void AppListMainView::InvokeResultAction(SearchResult* result, 222 void AppListMainView::InvokeResultAction(SearchResult* result,
223 int action_index, 223 int action_index,
224 int event_flags) { 224 int event_flags) {
225 if (delegate_) 225 if (delegate_)
226 delegate_->InvokeSearchResultAction(result, action_index, event_flags); 226 delegate_->InvokeSearchResultAction(result, action_index, event_flags);
227 } 227 }
228 228
229 void AppListMainView::OnResultInstalled(SearchResult* result) {
230 // Clears the search to show the apps grid. The last installed app
231 // should be highlighted and made visible already.
232 search_box_view_->ClearSearch();
233 }
234
229 } // namespace app_list 235 } // namespace app_list
OLDNEW
« no previous file with comments | « ui/app_list/views/app_list_main_view.h ('k') | ui/app_list/views/search_result_list_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698