Chromium Code Reviews| Index: ui/app_list/search_result.h |
| diff --git a/ui/app_list/search_result.h b/ui/app_list/search_result.h |
| index 4d5300ca486b89bd21861034a07ab16135c3e4df..c6bf6754953ef5f84c9000cdc35575b3754d5281 100644 |
| --- a/ui/app_list/search_result.h |
| +++ b/ui/app_list/search_result.h |
| @@ -22,6 +22,8 @@ class MenuModel; |
| namespace app_list { |
| class SearchResultObserver; |
| +class TokenizedString; |
| +class TokenizedStringMatch; |
| // SearchResult consists of an icon, title text and details text. Title and |
| // details text can have tagged ranges that are displayed differently from |
| @@ -135,6 +137,11 @@ class APP_LIST_EXPORT SearchResult { |
| void AddObserver(SearchResultObserver* observer); |
| void RemoveObserver(SearchResultObserver* observer); |
| + // Updates the results relevance score, and sets its title and title tags, |
|
calamity
2015/04/30 06:36:06
nit: result's?
Matt Giuca
2015/05/11 04:53:21
Done.
|
| + // based on a string match result. |
| + void UpdateFromMatch(const TokenizedString& title, |
| + const TokenizedStringMatch& match); |
| + |
| // TODO(mukai): Remove this method and really simplify the ownership of |
| // SearchResult. Ideally, SearchResult will be copyable. |
| virtual scoped_ptr<SearchResult> Duplicate() const = 0; |