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

Unified Diff: chrome/browser/autocomplete/history_provider.h

Issue 77453007: Omnibox: Make HistoryURL Highlight Titles like HistoryQuick Provider (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: highlight exact input title too Created 7 years, 1 month 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: chrome/browser/autocomplete/history_provider.h
diff --git a/chrome/browser/autocomplete/history_provider.h b/chrome/browser/autocomplete/history_provider.h
index 6be0e2b461761b470f57235570f05d75cf184cf5..2d9b088e225f289661d441b58f064cd6cff1d381 100644
--- a/chrome/browser/autocomplete/history_provider.h
+++ b/chrome/browser/autocomplete/history_provider.h
@@ -7,6 +7,7 @@
#include "base/compiler_specific.h"
#include "chrome/browser/autocomplete/autocomplete_provider.h"
+#include "chrome/browser/history/in_memory_url_index_types.h"
Peter Kasting 2013/11/23 02:15:36 Nit: Forward-declare TermMatches instead of #inclu
Mark P 2013/11/25 19:59:16 I tried. I could not manage to forward declare a
class AutocompleteInput;
struct AutocompleteMatch;
@@ -53,6 +54,13 @@ class HistoryProvider : public AutocompleteProvider {
// |input.prevent_inline_autocomplete()| is true or the input text contains
// trailing whitespace.
bool PreventInlineAutocomplete(const AutocompleteInput& input);
+
+ // Fill and return an ACMatchClassifications structure given the term
Mark P 2013/11/22 02:26:32 This was moved here from history_quick_provider.h.
+ // matches (|matches|) to highlight where terms were found.
Peter Kasting 2013/11/23 02:15:36 Nit: "...given the |matches| to highlight." is pro
Mark P 2013/11/25 19:59:16 Done.
+ static ACMatchClassifications SpansFromTermMatch(
+ const history::TermMatches& matches,
+ size_t text_length,
+ bool is_url);
};
#endif // CHROME_BROWSER_AUTOCOMPLETE_HISTORY_PROVIDER_H_
« no previous file with comments | « no previous file | chrome/browser/autocomplete/history_provider.cc » ('j') | chrome/browser/autocomplete/history_url_provider.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698