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

Unified Diff: ui/app_list/search_result.h

Issue 1110883003: App Launcher: Webstore results are now highlighted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@applist-webstore-result-match
Patch Set: Rebase. 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
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;

Powered by Google App Engine
This is Rietveld 408576698