| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "athena/home/app_list_view_delegate.h" | 5 #include "athena/home/app_list_view_delegate.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "athena/home/public/app_model_builder.h" | 10 #include "athena/home/public/app_model_builder.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 } | 59 } |
| 60 | 60 |
| 61 void AppListViewDelegate::GetShortcutPathForApp( | 61 void AppListViewDelegate::GetShortcutPathForApp( |
| 62 const std::string& app_id, | 62 const std::string& app_id, |
| 63 const base::Callback<void(const base::FilePath&)>& callback) { | 63 const base::Callback<void(const base::FilePath&)>& callback) { |
| 64 // Windows only, nothing is necessary. | 64 // Windows only, nothing is necessary. |
| 65 } | 65 } |
| 66 | 66 |
| 67 void AppListViewDelegate::StartSearch() { | 67 void AppListViewDelegate::StartSearch() { |
| 68 if (search_controller_) | 68 if (search_controller_) |
| 69 search_controller_->Start(); | 69 search_controller_->Start(false); |
| 70 } | 70 } |
| 71 | 71 |
| 72 void AppListViewDelegate::StopSearch() { | 72 void AppListViewDelegate::StopSearch() { |
| 73 if (search_controller_) | 73 if (search_controller_) |
| 74 search_controller_->Stop(); | 74 search_controller_->Stop(); |
| 75 } | 75 } |
| 76 | 76 |
| 77 void AppListViewDelegate::OpenSearchResult(app_list::SearchResult* result, | 77 void AppListViewDelegate::OpenSearchResult(app_list::SearchResult* result, |
| 78 bool auto_launch, | 78 bool auto_launch, |
| 79 int event_flags) { | 79 int event_flags) { |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 const app_list::AppListViewDelegate::Users& | 161 const app_list::AppListViewDelegate::Users& |
| 162 AppListViewDelegate::GetUsers() const { | 162 AppListViewDelegate::GetUsers() const { |
| 163 return users_; | 163 return users_; |
| 164 } | 164 } |
| 165 | 165 |
| 166 bool AppListViewDelegate::ShouldCenterWindow() const { | 166 bool AppListViewDelegate::ShouldCenterWindow() const { |
| 167 return true; | 167 return true; |
| 168 } | 168 } |
| 169 | 169 |
| 170 } // namespace athena | 170 } // namespace athena |
| OLD | NEW |