Chromium Code Reviews| Index: chrome/browser/ui/omnibox/omnibox_edit_model.h |
| diff --git a/chrome/browser/ui/omnibox/omnibox_edit_model.h b/chrome/browser/ui/omnibox/omnibox_edit_model.h |
| index 6caf62f542932a94b4d3cbe564454c88cc6574c4..b7deb39bec18d36cc44c21e16ead5b084b7632dc 100644 |
| --- a/chrome/browser/ui/omnibox/omnibox_edit_model.h |
| +++ b/chrome/browser/ui/omnibox/omnibox_edit_model.h |
| @@ -418,6 +418,10 @@ class OmniboxEditModel : public AutocompleteControllerDelegate { |
| // autocomplete text that has not yet been accepted. |
| string16 user_text_; |
| + // The 0-based position of the cursor within |user_text_| or string16::npos |
| + // if unknown or past the last character. |
| + size_t cursor_position_; |
|
Peter Kasting
2012/12/05 20:49:38
I don't think we need to track this as a member (o
Bart N.
2012/12/06 21:43:32
Great suggestion, thanks! I wonder why it is end r
Peter Kasting
2012/12/06 22:16:35
Well, think about how you create a selection (with
|
| + |
| // We keep track of when the user began modifying the omnibox text. |
| // This should be valid whenever user_input_in_progress_ is true. |
| base::TimeTicks time_user_first_modified_omnibox_; |