OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |