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

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

Issue 9309099: Enabled pressing TAB to traverse through the Omnibox results, removed moving the caret to the end... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 8 years, 10 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 | « AUTHORS ('k') | chrome/browser/autocomplete/autocomplete.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete.h
===================================================================
--- chrome/browser/autocomplete/autocomplete.h (revision 123410)
+++ chrome/browser/autocomplete/autocomplete.h (working copy)
@@ -10,6 +10,7 @@
#include <string>
#include <vector>
+#include "base/gtest_prod_util.h"
#include "base/logging.h"
#include "base/memory/ref_counted.h"
#include "base/string16.h"
@@ -678,8 +679,12 @@
void set_search_provider(SearchProvider* provider) {
search_provider_ = provider;
}
+ void set_keyword_provider(KeywordProvider* provider) {
+ keyword_provider_ = provider;
+ }
#endif
SearchProvider* search_provider() const { return search_provider_; }
+ KeywordProvider* keyword_provider() const { return keyword_provider_; }
// Getters
const AutocompleteInput& input() const { return input_; }
@@ -691,11 +696,20 @@
virtual void OnProviderUpdate(bool updated_matches);
private:
+ friend class AutocompleteProviderTest;
+ FRIEND_TEST_ALL_PREFIXES(AutocompleteProviderTest,
+ RedundantKeywordsIgnoredInResult);
+
// Updates |result_| to reflect the current provider state. Resets timers and
// fires notifications as necessary. |is_synchronous_pass| is true only when
// Start() is calling this to get the synchronous result.
void UpdateResult(bool is_synchronous_pass);
+ // Updates |result| to populate each match's |associated_keyword| if that
+ // match can show a keyword hint. |result| should be sorted by
+ // relevance before this is called.
+ void UpdateAssociatedKeywords(AutocompleteResult* result);
+
// For each group of contiguous matches from the same TemplateURL, show the
// provider name as a description on the first match in the group.
void UpdateKeywordDescriptions(AutocompleteResult* result);
« no previous file with comments | « AUTHORS ('k') | chrome/browser/autocomplete/autocomplete.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698