summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_edit_view.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-05 19:41:46 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-06-05 19:41:46 +0000
commit731980c04db87643c41d6f8d6f594de1cf7b725d (patch)
tree32acaf7943e4555baea781e87155850a80db9fb7 /chrome/browser/autocomplete/autocomplete_edit_view.h
parent89904504a55525eebbba9b1c8519fdfbef667255 (diff)
downloadchromium_src-731980c04db87643c41d6f8d6f594de1cf7b725d.zip
chromium_src-731980c04db87643c41d6f8d6f594de1cf7b725d.tar.gz
chromium_src-731980c04db87643c41d6f8d6f594de1cf7b725d.tar.bz2
Better behavior for ctrl-k: If we're already in forced_query mode, re-select the query text instead of clearing the box.
BUG=6985 TEST=Press ctrl-k, type "foo", press ctrl-k again. The omnibox should show "?foo" with "foo" selected. Review URL: http://codereview.chromium.org/119135 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@17757 0039d316-1c4b-4281-b951-d872f2087c98
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;