OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import "chrome/browser/ui/cocoa/find_bar_text_field.h" | 5 #import "chrome/browser/ui/cocoa/find_bar/find_bar_text_field.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #import "chrome/browser/ui/cocoa/find_bar_text_field_cell.h" | 8 #import "chrome/browser/ui/cocoa/find_bar/find_bar_text_field_cell.h" |
9 #import "chrome/browser/ui/cocoa/view_id_util.h" | 9 #import "chrome/browser/ui/cocoa/view_id_util.h" |
10 | 10 |
11 @implementation FindBarTextField | 11 @implementation FindBarTextField |
12 | 12 |
13 + (Class)cellClass { | 13 + (Class)cellClass { |
14 return [FindBarTextFieldCell class]; | 14 return [FindBarTextFieldCell class]; |
15 } | 15 } |
16 | 16 |
17 - (void)awakeFromNib { | 17 - (void)awakeFromNib { |
18 DCHECK([[self cell] isKindOfClass:[FindBarTextFieldCell class]]); | 18 DCHECK([[self cell] isKindOfClass:[FindBarTextFieldCell class]]); |
(...skipping 12 matching lines...) Expand all Loading... |
31 } | 31 } |
32 | 32 |
33 - (NSDragOperation)draggingEntered:(id<NSDraggingInfo>)info { | 33 - (NSDragOperation)draggingEntered:(id<NSDraggingInfo>)info { |
34 // When a drag enters the text field, focus the field. This will swap in the | 34 // When a drag enters the text field, focus the field. This will swap in the |
35 // field editor, which will then handle the drag itself. | 35 // field editor, which will then handle the drag itself. |
36 [[self window] makeFirstResponder:self]; | 36 [[self window] makeFirstResponder:self]; |
37 return NSDragOperationNone; | 37 return NSDragOperationNone; |
38 } | 38 } |
39 | 39 |
40 @end | 40 @end |
OLD | NEW |