summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/autocomplete_text_field.h
blob: b592310c8399709a0d478bff13ea2b9772e1b222 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Copyright (c) 2009 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_
#define CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_

#import <Cocoa/Cocoa.h>

// TODO(shess): This class will add decorations to support keyword
// search and hints.  Adding as a stub so that I can clean up naming
// around this code all at once before layering other changes over in
// parallel.

@protocol AutocompleteTextFieldDelegateMethods

// Delegate -textShouldPaste: implementation to the field being
// edited.  See AutocompleteTextFieldEditor implementation.
- (BOOL)control:(NSControl*)control textShouldPaste:(NSText*)fieldEditor;

// Let the delegate track -flagsChanged: events.
- (void)control:(NSControl*)control flagsChanged:(NSEvent*)theEvent;

@end

@interface AutocompleteTextField : NSTextField {
}

- (BOOL)textShouldPaste:(NSText*)fieldEditor;

@end

#endif  // CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_