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/location_bar/autocomplete_text_field.h" | 5 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" | 8 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
9 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h" | 9 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_cell.h" |
10 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.h" | 10 #import "chrome/browser/ui/cocoa/location_bar/autocomplete_text_field_editor.h" |
11 #import "chrome/browser/ui/cocoa/toolbar_controller.h" | 11 #import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h" |
12 #import "chrome/browser/ui/cocoa/url_drop_target.h" | 12 #import "chrome/browser/ui/cocoa/url_drop_target.h" |
13 #import "chrome/browser/ui/cocoa/view_id_util.h" | 13 #import "chrome/browser/ui/cocoa/view_id_util.h" |
14 | 14 |
15 @implementation AutocompleteTextField | 15 @implementation AutocompleteTextField |
16 | 16 |
17 @synthesize observer = observer_; | 17 @synthesize observer = observer_; |
18 | 18 |
19 + (Class)cellClass { | 19 + (Class)cellClass { |
20 return [AutocompleteTextFieldCell class]; | 20 return [AutocompleteTextFieldCell class]; |
21 } | 21 } |
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 - (NSMenu*)decorationMenuForEvent:(NSEvent*)event { | 376 - (NSMenu*)decorationMenuForEvent:(NSEvent*)event { |
377 AutocompleteTextFieldCell* cell = [self cell]; | 377 AutocompleteTextFieldCell* cell = [self cell]; |
378 return [cell decorationMenuForEvent:event inRect:[self bounds] ofView:self]; | 378 return [cell decorationMenuForEvent:event inRect:[self bounds] ofView:self]; |
379 } | 379 } |
380 | 380 |
381 - (ViewID)viewID { | 381 - (ViewID)viewID { |
382 return VIEW_ID_LOCATION_BAR; | 382 return VIEW_ID_LOCATION_BAR; |
383 } | 383 } |
384 | 384 |
385 @end | 385 @end |
OLD | NEW |