Index: chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.h |
diff --git a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.h b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.h |
index dc284b4e0df63aae835b2ebac101746a4902a322..134e5eeb853d14c52a629956b46a01b02ee4383e 100644 |
--- a/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.h |
+++ b/chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.h |
@@ -39,6 +39,14 @@ class AutocompleteTextFieldObserver; |
// Indicates if the text has been changed by key events. |
BOOL textChangedByKeyEvents_; |
+ |
+ // Stores requested selection range, before it's adjusted to grapheme |
+ // boundaries. This range is what text editing commands |
+ // will operate on, vs. |visualSelectionRange_|, which reflects the |
+ // range that looks highlighted. [self selectedRange] returns this. |
+ NSRange actualSelectionRange_; |
+ // The selected range as far as NSTextView is concerned. |
+ NSRange visualSelectionRange_; |
} |
// The delegate is always an AutocompleteTextField*. Override the superclass |