Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(716)

Side by Side Diff: chrome/browser/cocoa/autocomplete_text_field.h

Issue 159105: [Mac] Detect control-key changes in autocomplete field. (Closed)
Patch Set: More comments about Control handling. Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_mac.mm ('k') | chrome/browser/cocoa/autocomplete_text_field.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698