diff options
Diffstat (limited to 'chrome/browser/cocoa/autocomplete_text_field.h')
-rw-r--r-- | chrome/browser/cocoa/autocomplete_text_field.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/autocomplete_text_field.h b/chrome/browser/cocoa/autocomplete_text_field.h index 7336441..c343ff0 100644 --- a/chrome/browser/cocoa/autocomplete_text_field.h +++ b/chrome/browser/cocoa/autocomplete_text_field.h @@ -6,9 +6,10 @@ #define CHROME_BROWSER_COCOA_AUTOCOMPLETE_TEXT_FIELD_H_ #import <Cocoa/Cocoa.h> -#import "chrome/browser/cocoa/styled_text_field.h" #include "base/scoped_nsobject.h" +#import "chrome/browser/cocoa/styled_text_field.h" +#import "chrome/browser/cocoa/url_drop_target.h" @class AutocompleteTextFieldCell; @@ -75,13 +76,16 @@ class AutocompleteTextFieldObserver { virtual bool OnDoCommandBySelector(SEL cmd) = 0; }; -@interface AutocompleteTextField : StyledTextField { +@interface AutocompleteTextField : StyledTextField<URLDropTarget> { @private // Undo manager for this text field. We use a specific instance rather than // the standard undo manager in order to let us clear the undo stack at will. scoped_nsobject<NSUndoManager> undoManager_; AutocompleteTextFieldObserver* observer_; // weak, owned by location bar. + + // Handles being a drag-and-drop target. + scoped_nsobject<URLDropTargetHandler> dropHandler_; } @property AutocompleteTextFieldObserver* observer; |