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

Side by Side Diff: chrome/browser/ui/app_list/app_list_view_delegate.cc

Issue 379333005: Allow AppSearchProvider to provide recommendations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
OLDNEW
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
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
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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698