diff options
| author | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-25 05:33:05 +0000 |
|---|---|---|
| committer | isherman@chromium.org <isherman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-25 05:33:05 +0000 |
| commit | 33d24e55bf85ee985972563503f977d35134c815 (patch) | |
| tree | 99a4465609535ecfa4a3acc4897d64cff0c7ca79 /chrome/browser/autocomplete/autocomplete_edit.h | |
| parent | 0b0a7d7b536d44cb51a892009368f8ec14c9ab95 (diff) | |
| download | chromium_src-33d24e55bf85ee985972563503f977d35134c815.zip chromium_src-33d24e55bf85ee985972563503f977d35134c815.tar.gz chromium_src-33d24e55bf85ee985972563503f977d35134c815.tar.bz2 | |
Ctrl-based actions should take precedence over ctrl-enter
When the user presses ctrl, prefer (keeping) inline autocomplete
matches to (new, surprising) exact matches that include the
desired TLD.
BUG=52566
TEST=none
Review URL: http://codereview.chromium.org/3152029
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@57293 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit.h')
| -rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit.h b/chrome/browser/autocomplete/autocomplete_edit.h index 783b396..99374a6 100644 --- a/chrome/browser/autocomplete/autocomplete_edit.h +++ b/chrome/browser/autocomplete/autocomplete_edit.h @@ -327,6 +327,9 @@ class AutocompleteEditModel : public NotificationObserver { // Called whenever user_text_ should change. void InternalSetUserText(const std::wstring& text); + // Returns true if a keyword is selected. + bool KeywordIsSelected() const; + // Conversion between user text and display text. User text is the text the // user has input. Display text is the text being shown in the edit. The // two are different if a keyword is selected. |
