diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-25 21:21:29 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-25 21:21:29 +0000 |
commit | 218236acdb72ed3fa11dee29ae2ca3341dc0d6c2 (patch) | |
tree | 97583df2914fac3f57752ca7f9fb7e3e4d2b1063 /chrome/browser/cocoa/autocomplete_text_field_cell.h | |
parent | c8559b7daaa7d9877fca1cf355baf62eb4c54668 (diff) | |
download | chromium_src-218236acdb72ed3fa11dee29ae2ca3341dc0d6c2.zip chromium_src-218236acdb72ed3fa11dee29ae2ca3341dc0d6c2.tar.gz chromium_src-218236acdb72ed3fa11dee29ae2ca3341dc0d6c2.tar.bz2 |
OSX: Fix the select-all-on-mouse-down in Omnibox.
Getting clicks in the decoration areas right caused a change to how
clicks on the unfocused field worked. NSTextField also forwards the
event to get click-drag selection right, this does the same thing for
clicks in the decorations (other clicks are passed to super).
http://crbug.com/20142
TEST=Browse to www.google.com. Click in page. Click in omnibox
without releasing. You should get a caret insertion point.
Review URL: http://codereview.chromium.org/173362
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24325 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/autocomplete_text_field_cell.h')
-rw-r--r-- | chrome/browser/cocoa/autocomplete_text_field_cell.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/cocoa/autocomplete_text_field_cell.h b/chrome/browser/cocoa/autocomplete_text_field_cell.h index 3bcbbcf..31fa6b1 100644 --- a/chrome/browser/cocoa/autocomplete_text_field_cell.h +++ b/chrome/browser/cocoa/autocomplete_text_field_cell.h @@ -56,6 +56,9 @@ - (void)setSearchHintString:(NSString*)aString; - (void)clearKeywordAndHint; +// Return the portion of the cell to use for text display. +- (NSRect)textFrameForFrame:(NSRect)cellFrame; + @end // Internal methods here exposed for unit testing. @@ -64,7 +67,4 @@ @property(readonly) NSAttributedString* keywordString; @property(readonly) NSAttributedString* hintString; -// Return the portion of the cell to use for text display. -- (NSRect)textFrameForFrame:(NSRect)cellFrame; - @end |