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