diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-25 18:07:24 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-25 18:07:24 +0000 |
commit | cdacb88cb3d3b11f21caae229816a68cab3170b2 (patch) | |
tree | 48dd9264836574f3152bc2f65d0bf10c353cac42 /chrome/browser/cocoa/autocomplete_text_field_cell.h | |
parent | ec9773681c979a58f966d6cb0fc8ad16746e3adf (diff) | |
download | chromium_src-cdacb88cb3d3b11f21caae229816a68cab3170b2.zip chromium_src-cdacb88cb3d3b11f21caae229816a68cab3170b2.tar.gz chromium_src-cdacb88cb3d3b11f21caae229816a68cab3170b2.tar.bz2 |
[Mac] Manually reposition Omnibox field editor rather than using focus machinery.
Previously this code abused the Cocoa focus machinery to move the
field editor around when needed, which required the code to mess
around with delegation to make sure the changes didn't leak out to the
core autocomplete code. Unfortunately, it also messes with other
features, like undo. This change does the positioning manually, which
should let everything just work.
TEST=Tab-to-search and keyword hints shouldn't cause the field to break.
Review URL: http://codereview.chromium.org/219031
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27217 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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/cocoa/autocomplete_text_field_cell.h b/chrome/browser/cocoa/autocomplete_text_field_cell.h index 9bca85d..17ec714 100644 --- a/chrome/browser/cocoa/autocomplete_text_field_cell.h +++ b/chrome/browser/cocoa/autocomplete_text_field_cell.h @@ -64,7 +64,8 @@ // Return the portion of the cell to show the text cursor over. - (NSRect)textCursorFrameForFrame:(NSRect)cellFrame; -// Return the portion of the cell to use for text display. +// Return the portion of the cell to use for text display. This +// corrosponds to the frame with our added decorations sliced off. - (NSRect)textFrameForFrame:(NSRect)cellFrame; @end |