| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
| 6 | 6 |
| 7 #include "base/scoped_nsobject.h" | 7 #include "base/scoped_nsobject.h" |
| 8 | 8 |
| 9 // AutocompleteTextFieldCell customizes the look of the Omnibox text | 9 // AutocompleteTextFieldCell customizes the look of the Omnibox text |
| 10 // field. The border and focus ring are modified, as is the font | 10 // field. The border and focus ring are modified, as is the font |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // The following setup |keywordString_| or |hintString_| based on the | 49 // The following setup |keywordString_| or |hintString_| based on the |
| 50 // input, and set |fieldEditorNeedsReset_| if the layout of the field | 50 // input, and set |fieldEditorNeedsReset_| if the layout of the field |
| 51 // changed. | 51 // changed. |
| 52 - (void)setKeywordString:(NSString*)aString; | 52 - (void)setKeywordString:(NSString*)aString; |
| 53 - (void)setKeywordHintPrefix:(NSString*)prefixString | 53 - (void)setKeywordHintPrefix:(NSString*)prefixString |
| 54 image:(NSImage*)anImage | 54 image:(NSImage*)anImage |
| 55 suffix:(NSString*)suffixString; | 55 suffix:(NSString*)suffixString; |
| 56 - (void)setSearchHintString:(NSString*)aString; | 56 - (void)setSearchHintString:(NSString*)aString; |
| 57 - (void)clearKeywordAndHint; | 57 - (void)clearKeywordAndHint; |
| 58 | 58 |
| 59 // Return the portion of the cell to show the text cursor over. |
| 60 - (NSRect)textCursorFrameForFrame:(NSRect)cellFrame; |
| 61 |
| 59 // Return the portion of the cell to use for text display. | 62 // Return the portion of the cell to use for text display. |
| 60 - (NSRect)textFrameForFrame:(NSRect)cellFrame; | 63 - (NSRect)textFrameForFrame:(NSRect)cellFrame; |
| 61 | 64 |
| 62 @end | 65 @end |
| 63 | 66 |
| 64 // Internal methods here exposed for unit testing. | 67 // Internal methods here exposed for unit testing. |
| 65 @interface AutocompleteTextFieldCell (UnitTesting) | 68 @interface AutocompleteTextFieldCell (UnitTesting) |
| 66 | 69 |
| 67 @property(readonly) NSAttributedString* keywordString; | 70 @property(readonly) NSAttributedString* keywordString; |
| 68 @property(readonly) NSAttributedString* hintString; | 71 @property(readonly) NSAttributedString* hintString; |
| 69 | 72 |
| 70 @end | 73 @end |
| OLD | NEW |