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

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

Issue 159018: [Mac] Strip newlines from paste. (Closed)
Patch Set: Test empty clipboard 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
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_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_mac_unittest.mm ('k') | chrome/browser/cocoa/autocomplete_text_field.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698