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

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: Rewrite comments. Created 5 years, 10 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
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..ded88507d0f6fd6abfd4bcb8340cdb59e70594d0 100644
--- a/ui/app_list/search_controller.h
+++ b/ui/app_list/search_controller.h
@@ -39,9 +39,11 @@ 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);
+
// 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;

Powered by Google App Engine
This is Rietveld 408576698