summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_edit.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit.h')
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit.h b/chrome/browser/autocomplete/autocomplete_edit.h
index caca730..33420dd 100644
--- a/chrome/browser/autocomplete/autocomplete_edit.h
+++ b/chrome/browser/autocomplete/autocomplete_edit.h
@@ -45,6 +45,10 @@ class AutocompleteEditController {
// Sent prior to OnAutoCompleteAccept and before the model has been reverted.
virtual void OnAutocompleteWillAccept() = 0;
+ // Commits the suggested text. |typed_text| is the current text showing in the
+ // autocomplete. Returns true if the text was committed.
+ virtual bool OnCommitSuggestedText(const std::wstring& typed_text) = 0;
+
// Invoked when the popup is going to change its bounds to |bounds|.
virtual void OnPopupBoundsChanged(const gfx::Rect& bounds) = 0;
#else