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

Side by Side Diff: ui/app_list/search_controller.h

Issue 2846733004: Optimization: not sending answer server requests for voice queries. (Closed)
Patch Set: Last nits Created 3 years, 7 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
« no previous file with comments | « ui/app_list/search_box_model_observer.h ('k') | ui/app_list/search_controller.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef UI_APP_LIST_SEARCH_CONTROLLER_H_ 5 #ifndef UI_APP_LIST_SEARCH_CONTROLLER_H_
6 #define UI_APP_LIST_SEARCH_CONTROLLER_H_ 6 #define UI_APP_LIST_SEARCH_CONTROLLER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 15 matching lines...) Expand all
26 // Controller that collects query from given SearchBoxModel, dispatches it 26 // Controller that collects query from given SearchBoxModel, dispatches it
27 // to all search providers, then invokes the mixer to mix and to publish the 27 // to all search providers, then invokes the mixer to mix and to publish the
28 // results to the given SearchResults UI model. 28 // results to the given SearchResults UI model.
29 class APP_LIST_EXPORT SearchController { 29 class APP_LIST_EXPORT SearchController {
30 public: 30 public:
31 SearchController(SearchBoxModel* search_box, 31 SearchController(SearchBoxModel* search_box,
32 AppListModel::SearchResults* results, 32 AppListModel::SearchResults* results,
33 History* history); 33 History* history);
34 virtual ~SearchController(); 34 virtual ~SearchController();
35 35
36 void Start(bool is_voice_query); 36 void Start();
37 void Stop(); 37 void Stop();
38 38
39 void OpenResult(SearchResult* result, int event_flags); 39 void OpenResult(SearchResult* result, int event_flags);
40 void InvokeResultAction(SearchResult* result, 40 void InvokeResultAction(SearchResult* result,
41 int action_index, 41 int action_index,
42 int event_flags); 42 int event_flags);
43 43
44 // Adds a new mixer group. See Mixer::AddGroup. 44 // Adds a new mixer group. See Mixer::AddGroup.
45 size_t AddGroup(size_t max_results, double multiplier); 45 size_t AddGroup(size_t max_results, double multiplier);
46 46
(...skipping 19 matching lines...) Expand all
66 bool is_voice_query_ = false; 66 bool is_voice_query_ = false;
67 67
68 base::OneShotTimer stop_timer_; 68 base::OneShotTimer stop_timer_;
69 69
70 DISALLOW_COPY_AND_ASSIGN(SearchController); 70 DISALLOW_COPY_AND_ASSIGN(SearchController);
71 }; 71 };
72 72
73 } // namespace app_list 73 } // namespace app_list
74 74
75 #endif // UI_APP_LIST_SEARCH_CONTROLLER_H_ 75 #endif // UI_APP_LIST_SEARCH_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ui/app_list/search_box_model_observer.h ('k') | ui/app_list/search_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698