| 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 #include "base/cocoa_protocols_mac.h" | 10 #include "base/cocoa_protocols_mac.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 | 99 |
| 100 AutocompleteTextFieldObserver* observer_; // weak, owned by location bar. | 100 AutocompleteTextFieldObserver* observer_; // weak, owned by location bar. |
| 101 | 101 |
| 102 // Handles being a drag-and-drop target. | 102 // Handles being a drag-and-drop target. |
| 103 scoped_nsobject<URLDropTargetHandler> dropHandler_; | 103 scoped_nsobject<URLDropTargetHandler> dropHandler_; |
| 104 | 104 |
| 105 // Holds current tooltip strings, to keep them from being dealloced. | 105 // Holds current tooltip strings, to keep them from being dealloced. |
| 106 scoped_nsobject<NSMutableArray> currentToolTips_; | 106 scoped_nsobject<NSMutableArray> currentToolTips_; |
| 107 } | 107 } |
| 108 | 108 |
| 109 @property AutocompleteTextFieldObserver* observer; | 109 @property (nonatomic) AutocompleteTextFieldObserver* observer; |
| 110 | 110 |
| 111 // Convenience method to return the cell, casted appropriately. | 111 // Convenience method to return the cell, casted appropriately. |
| 112 - (AutocompleteTextFieldCell*)autocompleteTextFieldCell; | 112 - (AutocompleteTextFieldCell*)autocompleteTextFieldCell; |
| 113 | 113 |
| 114 // Superclass aborts editing before changing the string, which causes | 114 // Superclass aborts editing before changing the string, which causes |
| 115 // problems for undo. This version modifies the field editor's | 115 // problems for undo. This version modifies the field editor's |
| 116 // contents if the control is already being edited. | 116 // contents if the control is already being edited. |
| 117 - (void)setAttributedStringValue:(NSAttributedString*)aString; | 117 - (void)setAttributedStringValue:(NSAttributedString*)aString; |
| 118 | 118 |
| 119 // Clears the undo chain for this text field. | 119 // Clears the undo chain for this text field. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 132 // Return the rectangle the star is being shown in, for purposes of | 132 // Return the rectangle the star is being shown in, for purposes of |
| 133 // positioning the bookmark bubble. | 133 // positioning the bookmark bubble. |
| 134 - (NSRect)starIconFrame; | 134 - (NSRect)starIconFrame; |
| 135 | 135 |
| 136 // If the location icon is draggable, return its drag pasteboard. | 136 // If the location icon is draggable, return its drag pasteboard. |
| 137 - (NSPasteboard*)locationDragPasteboard; | 137 - (NSPasteboard*)locationDragPasteboard; |
| 138 | 138 |
| 139 @end | 139 @end |
| 140 | 140 |
| 141 #endif // CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ | 141 #endif // CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ |
| OLD | NEW |