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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
52 void AddProvider(size_t group_id, std::unique_ptr<SearchProvider> provider); | 52 void AddProvider(size_t group_id, std::unique_ptr<SearchProvider> provider); |
53 | 53 |
54 private: | 54 private: |
55 typedef ScopedVector<SearchProvider> Providers; | 55 typedef ScopedVector<SearchProvider> Providers; |
56 | 56 |
57 // Invoked when the search results are changed. | 57 // Invoked when the search results are changed. |
58 void OnResultsChanged(); | 58 void OnResultsChanged(); |
59 | 59 |
60 SearchBoxModel* search_box_; | 60 SearchBoxModel* search_box_; |
61 | 61 |
62 bool dispatching_query_; | 62 bool dispatching_query_ = false; |
| 63 |
| 64 // If true, the search results are shown on the launcher start page. |
| 65 bool query_for_recommendation_ = false; |
63 Providers providers_; | 66 Providers providers_; |
64 std::unique_ptr<Mixer> mixer_; | 67 std::unique_ptr<Mixer> mixer_; |
65 History* history_; // KeyedService, not owned. | 68 History* history_; // KeyedService, not owned. |
66 | 69 |
67 bool is_voice_query_; | 70 bool is_voice_query_ = false; |
68 | 71 |
69 base::OneShotTimer stop_timer_; | 72 base::OneShotTimer stop_timer_; |
70 | 73 |
71 DISALLOW_COPY_AND_ASSIGN(SearchController); | 74 DISALLOW_COPY_AND_ASSIGN(SearchController); |
72 }; | 75 }; |
73 | 76 |
74 } // namespace app_list | 77 } // namespace app_list |
75 | 78 |
76 #endif // UI_APP_LIST_SEARCH_CONTROLLER_H_ | 79 #endif // UI_APP_LIST_SEARCH_CONTROLLER_H_ |
OLD | NEW |