summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_edit_view.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit_view.h')
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view.h b/chrome/browser/autocomplete/autocomplete_edit_view.h
index 27c28e7..b8b438f 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view.h
+++ b/chrome/browser/autocomplete/autocomplete_edit_view.h
@@ -69,6 +69,15 @@ class AutocompleteEditView {
virtual void SetWindowTextAndCaretPos(const std::wstring& text,
size_t caret_pos) = 0;
+ // Sets the edit to forced query mode. Practically speaking, this means that
+ // if the edit is not in forced query mode, its text is set to "?" with the
+ // cursor at the end, and if the edit is in forced query mode (its first
+ // character is '?'), the text after the '?' is selected.
+ //
+ // In the future we should display the search engine UI for the default engine
+ // rather than '?'.
+ virtual void SetForcedQuery() = 0;
+
// Returns true if all text is selected.
virtual bool IsSelectAll() = 0;