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

Unified Diff: ui/app_list/search_controller.h

Issue 882463004: app_list: Refactor mixer groups to avoid hard-coded groups in Mixer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@applist-mixer-clamp
Patch Set: Init omnibox_group_ and use in-class initialization. Created 5 years, 8 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/search_controller.h
diff --git a/ui/app_list/search_controller.h b/ui/app_list/search_controller.h
index 24825339a0c347ca133601731d6248221605d303..c59564aad185d38e3ad8df603502d27e3000628a 100644
--- a/ui/app_list/search_controller.h
+++ b/ui/app_list/search_controller.h
@@ -39,9 +39,14 @@ class APP_LIST_EXPORT SearchController {
int action_index,
int event_flags);
+ // Adds a new mixer group. See Mixer::AddGroup.
+ size_t AddGroup(size_t max_results, double boost);
+
+ // Adds a new mixer group. See Mixer::AddOmniboxGroup.
+ size_t AddOmniboxGroup(size_t max_results, double boost);
+
// Takes ownership of |provider| and associates it with given mixer group.
- void AddProvider(Mixer::GroupId group,
- scoped_ptr<SearchProvider> provider);
+ void AddProvider(size_t group_id, scoped_ptr<SearchProvider> provider);
private:
typedef ScopedVector<SearchProvider> Providers;
« 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