| 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 #include "ui/app_list/app_list_view.h" | 5 #include "ui/app_list/app_list_view.h" |
| 6 | 6 |
| 7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
| 8 #include "ui/app_list/app_list_bubble_border.h" | 8 #include "ui/app_list/app_list_bubble_border.h" |
| 9 #include "ui/app_list/app_list_item_view.h" | 9 #include "ui/app_list/app_list_item_view.h" |
| 10 #include "ui/app_list/app_list_model.h" | 10 #include "ui/app_list/app_list_model.h" |
| (...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 if (should_show_search) | 184 if (should_show_search) |
| 185 delegate_->StartSearch(); | 185 delegate_->StartSearch(); |
| 186 else | 186 else |
| 187 delegate_->StopSearch(); | 187 delegate_->StopSearch(); |
| 188 } | 188 } |
| 189 } | 189 } |
| 190 | 190 |
| 191 void AppListView::OpenResult(const SearchResult& result, int event_flags) { | 191 void AppListView::OpenResult(const SearchResult& result, int event_flags) { |
| 192 if (delegate_.get()) | 192 if (delegate_.get()) |
| 193 delegate_->OpenSearchResult(result, event_flags); | 193 delegate_->OpenSearchResult(result, event_flags); |
| 194 Close(); | |
| 195 } | 194 } |
| 196 | 195 |
| 197 } // namespace app_list | 196 } // namespace app_list |
| OLD | NEW |