| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |