| 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/cocoa/location_bar/autocomplete_text_field.h" | 5 #import "chrome/browser/cocoa/location_bar/autocomplete_text_field.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #import "chrome/browser/cocoa/browser_window_controller.h" | 8 #import "chrome/browser/cocoa/browser_window_controller.h" |
| 9 #import "chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.h" | 9 #import "chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.h" |
| 10 #import "chrome/browser/cocoa/location_bar/autocomplete_text_field_editor.h" | 10 #import "chrome/browser/cocoa/location_bar/autocomplete_text_field_editor.h" |
| 11 #import "chrome/browser/cocoa/toolbar_controller.h" | 11 #import "chrome/browser/cocoa/toolbar_controller.h" |
| 12 #import "chrome/browser/cocoa/url_drop_target.h" | 12 #import "chrome/browser/cocoa/url_drop_target.h" |
| 13 #import "chrome/browser/cocoa/view_id_util.h" |
| 13 | 14 |
| 14 @implementation AutocompleteTextField | 15 @implementation AutocompleteTextField |
| 15 | 16 |
| 16 @synthesize observer = observer_; | 17 @synthesize observer = observer_; |
| 17 | 18 |
| 18 + (Class)cellClass { | 19 + (Class)cellClass { |
| 19 return [AutocompleteTextFieldCell class]; | 20 return [AutocompleteTextFieldCell class]; |
| 20 } | 21 } |
| 21 | 22 |
| 22 - (void)dealloc { | 23 - (void)dealloc { |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 381 // (URLDropTarget protocol) | 382 // (URLDropTarget protocol) |
| 382 - (BOOL)performDragOperation:(id<NSDraggingInfo>)sender { | 383 - (BOOL)performDragOperation:(id<NSDraggingInfo>)sender { |
| 383 return [dropHandler_ performDragOperation:sender]; | 384 return [dropHandler_ performDragOperation:sender]; |
| 384 } | 385 } |
| 385 | 386 |
| 386 - (NSMenu*)decorationMenuForEvent:(NSEvent*)event { | 387 - (NSMenu*)decorationMenuForEvent:(NSEvent*)event { |
| 387 AutocompleteTextFieldCell* cell = [self cell]; | 388 AutocompleteTextFieldCell* cell = [self cell]; |
| 388 return [cell decorationMenuForEvent:event inRect:[self bounds] ofView:self]; | 389 return [cell decorationMenuForEvent:event inRect:[self bounds] ofView:self]; |
| 389 } | 390 } |
| 390 | 391 |
| 392 - (ViewID)viewID { |
| 393 return VIEW_ID_LOCATION_BAR; |
| 394 } |
| 395 |
| 391 @end | 396 @end |
| OLD | NEW |