| 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 "chrome/browser/ui/app_list/app_list_view_delegate.h" | 5 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" |
| 6 | 6 |
| 7 #include <vector> | 7 #include <vector> |
| 8 | 8 |
| 9 #include "apps/custom_launcher_page_contents.h" | 9 #include "apps/custom_launcher_page_contents.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 298 | 298 |
| 299 web_app::GetShortcutInfoForApp( | 299 web_app::GetShortcutInfoForApp( |
| 300 extension, | 300 extension, |
| 301 profile_, | 301 profile_, |
| 302 base::Bind(CreateShortcutInWebAppDir, app_data_dir, callback)); | 302 base::Bind(CreateShortcutInWebAppDir, app_data_dir, callback)); |
| 303 #else | 303 #else |
| 304 callback.Run(base::FilePath()); | 304 callback.Run(base::FilePath()); |
| 305 #endif | 305 #endif |
| 306 } | 306 } |
| 307 | 307 |
| 308 void AppListViewDelegate::FetchRecommendations() { |
| 309 if (search_controller_) |
| 310 search_controller_->FetchRecommendations(); |
| 311 } |
| 312 |
| 308 void AppListViewDelegate::StartSearch() { | 313 void AppListViewDelegate::StartSearch() { |
| 309 if (search_controller_) | 314 if (search_controller_) |
| 310 search_controller_->Start(); | 315 search_controller_->Start(); |
| 311 } | 316 } |
| 312 | 317 |
| 313 void AppListViewDelegate::StopSearch() { | 318 void AppListViewDelegate::StopSearch() { |
| 314 if (search_controller_) | 319 if (search_controller_) |
| 315 search_controller_->Stop(); | 320 search_controller_->Stop(); |
| 316 } | 321 } |
| 317 | 322 |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 | 538 |
| 534 void AppListViewDelegate::AddObserver( | 539 void AppListViewDelegate::AddObserver( |
| 535 app_list::AppListViewDelegateObserver* observer) { | 540 app_list::AppListViewDelegateObserver* observer) { |
| 536 observers_.AddObserver(observer); | 541 observers_.AddObserver(observer); |
| 537 } | 542 } |
| 538 | 543 |
| 539 void AppListViewDelegate::RemoveObserver( | 544 void AppListViewDelegate::RemoveObserver( |
| 540 app_list::AppListViewDelegateObserver* observer) { | 545 app_list::AppListViewDelegateObserver* observer) { |
| 541 observers_.RemoveObserver(observer); | 546 observers_.RemoveObserver(observer); |
| 542 } | 547 } |
| OLD | NEW |