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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/autocomplete_text_field.h
diff --git a/chrome/browser/cocoa/autocomplete_text_field.h b/chrome/browser/cocoa/autocomplete_text_field.h
index 709bd17aa756de995df15d5dacb06b6af494a7de..17025d2ac9595a743b7b39fa3a3711035c9e320b 100644
--- a/chrome/browser/cocoa/autocomplete_text_field.h
+++ b/chrome/browser/cocoa/autocomplete_text_field.h
@@ -12,8 +12,19 @@
// 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;
+
+@end
+
@interface AutocompleteTextField : NSTextField {
}
+
+- (BOOL)textShouldPaste:(NSText*)fieldEditor;
+
@end
#endif // CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_
« 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