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

Side by Side Diff: chrome/browser/autocomplete/autocomplete.h

Issue 6758031: Implement a simple Extension App Omnibox provider. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 25 matching lines...) Expand all
36 // their own thread management when they need to return matches asynchronously. 36 // their own thread management when they need to return matches asynchronously.
37 // 37 //
38 // The AutocompleteProviders each return different kinds of matches, such as 38 // The AutocompleteProviders each return different kinds of matches, such as
39 // history or search matches. These matches are given "relevance" scores. 39 // history or search matches. These matches are given "relevance" scores.
40 // Higher scores are better matches than lower scores. The relevance scores and 40 // Higher scores are better matches than lower scores. The relevance scores and
41 // classes providing the respective matches are as follows: 41 // classes providing the respective matches are as follows:
42 // 42 //
43 // UNKNOWN input type: 43 // UNKNOWN input type:
44 // --------------------------------------------------------------------|----- 44 // --------------------------------------------------------------------|-----
45 // Keyword (non-substituting or in keyword UI mode, exact match) | 1500 45 // Keyword (non-substituting or in keyword UI mode, exact match) | 1500
46 // Extension App (exact match) | 1200 ?
mrossetti 2011/03/31 16:44:17 Driveby: Should be sorted into the rest of the lis
Finnur 2011/03/31 22:25:20 Will do, once we figure out the right value... 120
46 // HistoryURL (exact or inline autocomplete match) | 1400 47 // HistoryURL (exact or inline autocomplete match) | 1400
47 // Search Primary Provider (past query in history within 2 days) | 1399** 48 // Search Primary Provider (past query in history within 2 days) | 1399**
48 // Search Primary Provider (what you typed) | 1300 49 // Search Primary Provider (what you typed) | 1300
49 // HistoryURL (what you typed) | 1200 50 // HistoryURL (what you typed) | 1200
50 // Keyword (substituting, exact match) | 1100 51 // Keyword (substituting, exact match) | 1100
51 // Search Primary Provider (past query in history older than 2 days) | 1050-- 52 // Search Primary Provider (past query in history older than 2 days) | 1050--
52 // HistoryContents (any match in title of starred page) | 1000++ 53 // HistoryContents (any match in title of starred page) | 1000++
53 // HistoryURL (inexact match) | 900++ 54 // HistoryURL (inexact match) | 900++
54 // Search Primary Provider (navigational suggestion) | 800++ 55 // Search Primary Provider (navigational suggestion) | 800++
55 // HistoryContents (any match in title of nonstarred page) | 700++ 56 // HistoryContents (any match in title of nonstarred page) | 700++
(...skipping 662 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 AutocompleteInput::Type input_type; 719 AutocompleteInput::Type input_type;
719 // Selected index (if selected) or -1 (AutocompletePopupModel::kNoMatch). 720 // Selected index (if selected) or -1 (AutocompletePopupModel::kNoMatch).
720 size_t selected_index; 721 size_t selected_index;
721 // Inline autocompleted length (if displayed). 722 // Inline autocompleted length (if displayed).
722 size_t inline_autocompleted_length; 723 size_t inline_autocompleted_length;
723 // Result set. 724 // Result set.
724 const AutocompleteResult& result; 725 const AutocompleteResult& result;
725 }; 726 };
726 727
727 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_ 728 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete.cc » ('j') | chrome/browser/autocomplete/autocomplete.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698