summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/autocomplete_text_field.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/autocomplete_text_field.mm')
-rw-r--r--chrome/browser/cocoa/autocomplete_text_field.mm15
1 files changed, 15 insertions, 0 deletions
diff --git a/chrome/browser/cocoa/autocomplete_text_field.mm b/chrome/browser/cocoa/autocomplete_text_field.mm
index d7942e7..9c3e593 100644
--- a/chrome/browser/cocoa/autocomplete_text_field.mm
+++ b/chrome/browser/cocoa/autocomplete_text_field.mm
@@ -25,6 +25,21 @@
return YES;
}
+- (NSString*)textPasteActionString:(NSText*)fieldEditor {
+ id delegate = [self delegate];
+ if ([delegate respondsToSelector:@selector(control:textPasteActionString:)]) {
+ return [delegate control:self textPasteActionString:fieldEditor];
+ }
+ return nil;
+}
+
+- (void)textDidPasteAndGo:(NSText*)fieldEditor {
+ id delegate = [self delegate];
+ if ([delegate respondsToSelector:@selector(control:textDidPasteAndGo:)]) {
+ [delegate control:self textDidPasteAndGo:fieldEditor];
+ }
+}
+
- (void)flagsChanged:(NSEvent*)theEvent {
id delegate = [self delegate];
if ([delegate respondsToSelector:@selector(control:flagsChanged:)]) {