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

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

Issue 2253253002: [Merge to M53][Chrome OS] Change layout of the launcher. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2785
Patch Set: Created 4 years, 4 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/mixer_unittest.cc ('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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « ui/app_list/search/mixer_unittest.cc ('k') | ui/app_list/search_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698