Chromium Code Reviews| Index: chrome/browser/autocomplete/autocomplete.h |
| =================================================================== |
| --- chrome/browser/autocomplete/autocomplete.h (revision 79981) |
| +++ chrome/browser/autocomplete/autocomplete.h (working copy) |
| @@ -43,10 +43,12 @@ |
| // UNKNOWN input type: |
| // --------------------------------------------------------------------|----- |
| // Keyword (non-substituting or in keyword UI mode, exact match) | 1500 |
| +// Extension App (exact match) | 1425 |
| // HistoryURL (exact or inline autocomplete match) | 1400 |
| // Search Primary Provider (past query in history within 2 days) | 1399** |
| // Search Primary Provider (what you typed) | 1300 |
| // HistoryURL (what you typed) | 1200 |
| +// Extension App (inexact match) | 1175*~ |
| // Keyword (substituting, exact match) | 1100 |
| // Search Primary Provider (past query in history older than 2 days) | 1050-- |
| // HistoryContents (any match in title of starred page) | 1000++ |
| @@ -66,9 +68,11 @@ |
| // REQUESTED_URL input type: |
| // --------------------------------------------------------------------|----- |
| // Keyword (non-substituting or in keyword UI mode, exact match) | 1500 |
| +// Extension App (exact match) | 1425 |
| // HistoryURL (exact or inline autocomplete match) | 1400 |
| // Search Primary Provider (past query in history within 2 days) | 1399** |
| // HistoryURL (what you typed) | 1200 |
| +// Extension App (inexact match) | 1175*~ |
| // Search Primary Provider (what you typed) | 1150 |
| // Keyword (substituting, exact match) | 1100 |
| // Search Primary Provider (past query in history older than 2 days) | 1050-- |
| @@ -89,8 +93,10 @@ |
| // URL input type: |
| // --------------------------------------------------------------------|----- |
| // Keyword (non-substituting or in keyword UI mode, exact match) | 1500 |
| +// Extension App (exact match) | 1425 |
| // HistoryURL (exact or inline autocomplete match) | 1400 |
| // HistoryURL (what you typed) | 1200 |
| +// Extension App (inexact match) | 1175*~ |
| // Keyword (substituting, exact match) | 1100 |
| // HistoryURL (inexact match) | 900++ |
| // Search Primary Provider (what you typed) | 850 |
| @@ -108,9 +114,11 @@ |
| // --------------------------------------------------------------------|----- |
| // Keyword (non-substituting or in keyword UI mode, exact match) | 1500 |
| // Keyword (substituting, exact match) | 1450 |
| +// Extension App (exact match) | 1425 |
| // HistoryURL (exact or inline autocomplete match) | 1400 |
| // Search Primary Provider (past query in history within 2 days) | 1399** |
| // Search Primary Provider (what you typed) | 1300 |
| +// Extension App (inexact match) | 1175*~ |
| // Search Primary Provider (past query in history older than 2 days) | 1050-- |
| // HistoryContents (any match in title of starred page) | 1000++ |
| // HistoryURL (inexact match) | 900++ |
| @@ -151,6 +159,8 @@ |
| // 450 points @ two weeks) |
| // --: relevance score falls off over two days (discounted 99 points after two |
|
Peter Kasting
2011/04/04 19:35:32
Nit: While you're here, This line was supposed to
Finnur
2011/04/05 15:50:24
Done.
|
| // days). |
| +// *~: Partial matches get a score on a sliding scale from 800-1175 based on |
| +// how many letters match (5 letters and above get 1175). |
| class AutocompleteController; |
| class AutocompleteControllerDelegate; |