diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-01 21:53:05 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-01 21:53:05 +0000 |
commit | eff6f10a8b99b312fed63b680c91da37eae62188 (patch) | |
tree | 8dff037eb4ebe620f35b833ae543b5c6c86d6f5f /chrome/browser/autocomplete/autocomplete_edit.h | |
parent | a70e6de55fc1739b76bab19f3b93aad682029c71 (diff) | |
download | chromium_src-eff6f10a8b99b312fed63b680c91da37eae62188.zip chromium_src-eff6f10a8b99b312fed63b680c91da37eae62188.tar.gz chromium_src-eff6f10a8b99b312fed63b680c91da37eae62188.tar.bz2 |
<esc> in the AutocompleteEdit should select all the text when reverting to the permanent text. Only pass it through as an accelerator if we don't end up changing anything. Patch by Mohamed Mansour, r=me. See http://codereview.chromium.org/10800 .
BUG=4203
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6168 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit.h')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit.h b/chrome/browser/autocomplete/autocomplete_edit.h index 07324701..fc6398d 100644 --- a/chrome/browser/autocomplete/autocomplete_edit.h +++ b/chrome/browser/autocomplete/autocomplete_edit.h @@ -517,6 +517,9 @@ class AutocompleteEditView // Sets the window text and the caret position. void SetWindowTextAndCaretPos(const std::wstring& text, size_t caret_pos); + // Returns true if all text is selected. + bool IsSelectAll(); + // Selects all the text in the edit. Use this in place of SetSelAll() to // avoid selecting the "phantom newline" at the end of the edit. void SelectAll(bool reversed); @@ -724,7 +727,7 @@ class AutocompleteEditView // Returns true if |sel| represents a forward or backward selection of all the // text. - bool IsSelectAll(const CHARRANGE& sel) const; + bool IsSelectAllForRange(const CHARRANGE& sel) const; // Given an X coordinate in client coordinates, returns that coordinate // clipped to be within the horizontal bounds of the visible text. |