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

Side by Side Diff: athena/home/app_list_view_delegate.cc

Issue 796293002: App list voice searches now prioritize exact-match web results. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nit. Created 6 years 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
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/app_list_view_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/app_list/app_list_view_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698