| 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 #ifndef CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ | 5 #ifndef CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ |
| 6 #define CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ | 6 #define CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 @class AutocompleteTextFieldCell; | 10 @class AutocompleteTextFieldCell; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 | 70 |
| 71 // If the keyword, keyword hint, or search hint changed, then the | 71 // If the keyword, keyword hint, or search hint changed, then the |
| 72 // field editor may need to be repositioned. | 72 // field editor may need to be repositioned. |
| 73 - (void)resetFieldEditorFrameIfNeeded; | 73 - (void)resetFieldEditorFrameIfNeeded; |
| 74 | 74 |
| 75 // Returns the amount of the field's width which is not being taken up | 75 // Returns the amount of the field's width which is not being taken up |
| 76 // by the text contents. May be negative if the contents are large | 76 // by the text contents. May be negative if the contents are large |
| 77 // enough to scroll. | 77 // enough to scroll. |
| 78 - (CGFloat)availableDecorationWidth; | 78 - (CGFloat)availableDecorationWidth; |
| 79 | 79 |
| 80 // Superclass aborts editing before changing the string, which causes |
| 81 // problems for undo. This version modifies the field editor's |
| 82 // contents if the control is already being edited. |
| 83 - (void)setAttributedStringValue:(NSAttributedString*)aString; |
| 84 |
| 80 @end | 85 @end |
| 81 | 86 |
| 82 #endif // CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ | 87 #endif // CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ |
| OLD | NEW |