| 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..0b90b85a6acbce5d876c808b4be05039e27e1bfe 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,10 @@ class AutocompleteTextFieldObserver;
|
|
|
| // Indicates if the text has been changed by key events.
|
| BOOL textChangedByKeyEvents_;
|
| +
|
| + // The selected range as far as NSTextView is concerned.
|
| + // See |actualSelectedRange|.
|
| + NSRange visualSelectedRange_;
|
| }
|
|
|
| // The delegate is always an AutocompleteTextField*. Override the superclass
|
| @@ -50,6 +54,12 @@ class AutocompleteTextFieldObserver;
|
| // storage object.
|
| - (void)setAttributedString:(NSAttributedString*)aString;
|
|
|
| +// 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.
|
| +@property(nonatomic, readonly) NSRange actualSelectedRange;
|
| +
|
| @end
|
|
|
| @interface AutocompleteTextFieldEditor(PrivateTestMethods)
|
|
|