From 3221491bba46c30ede23f7f43c1ad05523b8ec13 Mon Sep 17 00:00:00 2001 From: "viettrungluu@chromium.org" Date: Sat, 19 Dec 2009 18:06:11 +0000 Subject: Revert 35053 - Second half of CL 481012 (reverted at r35038). Will revert if Mac perf turns red. Well, it turned red. TBR=viettrungluu@chromium.org Review URL: http://codereview.chromium.org/502084 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35054 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/autocomplete_text_field.mm | 36 ------------------------- 1 file changed, 36 deletions(-) (limited to 'chrome/browser/cocoa/autocomplete_text_field.mm') diff --git a/chrome/browser/cocoa/autocomplete_text_field.mm b/chrome/browser/cocoa/autocomplete_text_field.mm index cea5f15..a067fdc 100644 --- a/chrome/browser/cocoa/autocomplete_text_field.mm +++ b/chrome/browser/cocoa/autocomplete_text_field.mm @@ -6,9 +6,6 @@ #include "base/logging.h" #import "chrome/browser/cocoa/autocomplete_text_field_cell.h" -#import "chrome/browser/cocoa/browser_window_controller.h" -#import "chrome/browser/cocoa/toolbar_controller.h" -#import "chrome/browser/cocoa/url_drop_target.h" @implementation AutocompleteTextField @@ -25,7 +22,6 @@ - (void)awakeFromNib { DCHECK([[self cell] isKindOfClass:[AutocompleteTextFieldCell class]]); - dropHandler_.reset([[URLDropTargetHandler alloc] initWithView:self]); } - (void)flagsChanged:(NSEvent*)theEvent { @@ -256,36 +252,4 @@ } } -// (URLDropTarget protocol) -- (id)urlDropController { - BrowserWindowController* windowController = [[self window] windowController]; - DCHECK([windowController isKindOfClass:[BrowserWindowController class]]); - return [windowController toolbarController]; -} - -// (URLDropTarget protocol) -- (NSDragOperation)draggingEntered:(id)sender { - // Make ourself the first responder, which will select the text to indicate - // that our contents would be replaced by a drop. - // TODO(viettrungluu): crbug.com/30809 -- this is a hack since it steals focus - // and doesn't return it. - [[self window] makeFirstResponder:self]; - return [dropHandler_ draggingEntered:sender]; -} - -// (URLDropTarget protocol) -- (NSDragOperation)draggingUpdated:(id)sender { - return [dropHandler_ draggingUpdated:sender]; -} - -// (URLDropTarget protocol) -- (void)draggingExited:(id)sender { - return [dropHandler_ draggingExited:sender]; -} - -// (URLDropTarget protocol) -- (BOOL)performDragOperation:(id)sender { - return [dropHandler_ performDragOperation:sender]; -} - @end -- cgit v1.1