Index: chrome/browser/autocomplete/autocomplete_edit.h |
diff --git a/chrome/browser/autocomplete/autocomplete_edit.h b/chrome/browser/autocomplete/autocomplete_edit.h |
index 90fc643b284cb9683c855333f1293f9862433328..b9854ff73840a9a24d866c6e495e4f570a0e145d 100644 |
--- a/chrome/browser/autocomplete/autocomplete_edit.h |
+++ b/chrome/browser/autocomplete/autocomplete_edit.h |
@@ -50,6 +50,10 @@ class AutocompleteEditController { |
// autocomplete. Returns true if the text was committed. |
virtual bool OnCommitSuggestedText(const std::wstring& typed_text) = 0; |
+ // Accepts the currently showing instant preview, if any, and returns true. |
+ // Returns false if there is no instant preview showing. |
+ virtual bool AcceptCurrentInstantPreview() { return false; } |
+ |
// Sets the suggested search text to |suggested_text|. |
virtual void OnSetSuggestedSearchText(const string16& suggested_text) = 0; |