| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 - (void)clearUndoChain; | 121 - (void)clearUndoChain; |
| 122 | 122 |
| 123 // Updates cursor and tooltip rects depending on the contents of the text field | 123 // Updates cursor and tooltip rects depending on the contents of the text field |
| 124 // e.g. the security icon should have a default pointer shown on hover instead | 124 // e.g. the security icon should have a default pointer shown on hover instead |
| 125 // of an I-beam. | 125 // of an I-beam. |
| 126 - (void)updateCursorAndToolTipRects; | 126 - (void)updateCursorAndToolTipRects; |
| 127 | 127 |
| 128 // Return the appropriate menu for any decoration under |event|. | 128 // Return the appropriate menu for any decoration under |event|. |
| 129 - (NSMenu*)decorationMenuForEvent:(NSEvent*)event; | 129 - (NSMenu*)decorationMenuForEvent:(NSEvent*)event; |
| 130 | 130 |
| 131 // Retains |tooltip| (in |currentToolTips_|) and adds this tooltip |
| 132 // via -[NSView addToolTipRect:owner:userData:]. |
| 133 - (void)addToolTip:(NSString*)tooltip forRect:(NSRect)aRect; |
| 134 |
| 131 @end | 135 @end |
| 132 | 136 |
| 133 #endif // CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ | 137 #endif // CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ |
| OLD | NEW |