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 // TODO(shess): This class will add decorations to support keyword | 10 // TODO(shess): This class will add decorations to support keyword |
11 // search and hints. Adding as a stub so that I can clean up naming | 11 // search and hints. Adding as a stub so that I can clean up naming |
12 // around this code all at once before layering other changes over in | 12 // around this code all at once before layering other changes over in |
13 // parallel. | 13 // parallel. |
14 | 14 |
15 @protocol AutocompleteTextFieldDelegateMethods | 15 @protocol AutocompleteTextFieldDelegateMethods |
16 | 16 |
17 // Delegate -textShouldPaste: implementation to the field being | 17 // Delegate -textShouldPaste: implementation to the field being |
18 // edited. See AutocompleteTextFieldEditor implementation. | 18 // edited. See AutocompleteTextFieldEditor implementation. |
19 - (BOOL)control:(NSControl*)control textShouldPaste:(NSText*)fieldEditor; | 19 - (BOOL)control:(NSControl*)control textShouldPaste:(NSText*)fieldEditor; |
20 | 20 |
| 21 // Let the delegate track -flagsChanged: events. |
| 22 - (void)control:(NSControl*)control flagsChanged:(NSEvent*)theEvent; |
| 23 |
21 @end | 24 @end |
22 | 25 |
23 @interface AutocompleteTextField : NSTextField { | 26 @interface AutocompleteTextField : NSTextField { |
24 } | 27 } |
25 | 28 |
26 - (BOOL)textShouldPaste:(NSText*)fieldEditor; | 29 - (BOOL)textShouldPaste:(NSText*)fieldEditor; |
27 | 30 |
28 @end | 31 @end |
29 | 32 |
30 #endif // CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ | 33 #endif // CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ |
OLD | NEW |