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

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

Issue 229733004: Omnibox: Make Bookmarks Set Inline_Autocompletion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Peter's comments Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/autocomplete/builtin_provider.cc ('k') | chrome/browser/autocomplete/history_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/history_provider.h
diff --git a/chrome/browser/autocomplete/history_provider.h b/chrome/browser/autocomplete/history_provider.h
index 9baba609574f4f54fad9a024f45fb7293cbd5712..3e3f83704fa0906fa22f768cd648e2d4ec023e22 100644
--- a/chrome/browser/autocomplete/history_provider.h
+++ b/chrome/browser/autocomplete/history_provider.h
@@ -18,6 +18,11 @@ class HistoryProvider : public AutocompleteProvider {
public:
virtual void DeleteMatch(const AutocompleteMatch& match) OVERRIDE;
+ // Returns true if inline autocompletion should be prevented for URL-like
+ // input. This method returns true if input.prevent_inline_autocomplete()
+ // is true or the input text contains trailing whitespace.
+ static bool PreventInlineAutocomplete(const AutocompleteInput& input);
+
protected:
HistoryProvider(AutocompleteProviderListener* listener,
Profile* profile,
@@ -28,13 +33,6 @@ class HistoryProvider : public AutocompleteProvider {
// backing data.
void DeleteMatchFromMatches(const AutocompleteMatch& match);
- // Returns true if inline autocompletion should be prevented. Use this instead
- // of |input.prevent_inline_autocomplete| if the input is passed through
- // FixupUserInput(). This method returns true if
- // |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 |matches|
// to highlight.
static ACMatchClassifications SpansFromTermMatch(
« no previous file with comments | « chrome/browser/autocomplete/builtin_provider.cc ('k') | chrome/browser/autocomplete/history_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698