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

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

Issue 7607007: Add confidence to AutocompleteMatch. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 years, 4 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 | « chrome/browser/autocomplete/autocomplete_edit.cc ('k') | chrome/browser/autocomplete/autocomplete_match.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_match.h
diff --git a/chrome/browser/autocomplete/autocomplete_match.h b/chrome/browser/autocomplete/autocomplete_match.h
index fbf835534793cbaa0441c76e040ec1962f4dfbec..6fbb78018639f92131a20143b59706684aeb4b66 100644
--- a/chrome/browser/autocomplete/autocomplete_match.h
+++ b/chrome/browser/autocomplete/autocomplete_match.h
@@ -85,6 +85,7 @@ struct AutocompleteMatch {
AutocompleteMatch();
AutocompleteMatch(AutocompleteProvider* provider,
int relevance,
+ float confidence,
bool deletable,
Type type);
~AutocompleteMatch();
@@ -139,6 +140,10 @@ struct AutocompleteMatch {
// rather than being a fairly fixed value defined by the table above.
int relevance;
+ // The confidence of the match. Calculated per provider and a measure in the
+ // range [0, 1].
+ float confidence;
+
// True if the user should be able to delete this match.
bool deletable;
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit.cc ('k') | chrome/browser/autocomplete/autocomplete_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698