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 |
| 16 |
| 17 // Delegate -textShouldPaste: implementation to the field being |
| 18 // edited. See AutocompleteTextFieldEditor implementation. |
| 19 - (BOOL)control:(NSControl*)control textShouldPaste:(NSText*)fieldEditor; |
| 20 |
| 21 @end |
| 22 |
15 @interface AutocompleteTextField : NSTextField { | 23 @interface AutocompleteTextField : NSTextField { |
16 } | 24 } |
| 25 |
| 26 - (BOOL)textShouldPaste:(NSText*)fieldEditor; |
| 27 |
17 @end | 28 @end |
18 | 29 |
19 #endif // CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ | 30 #endif // CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ |
OLD | NEW |