| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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" |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 - (BOOL)performDragOperation:(id<NSDraggingInfo>)sender { | 401 - (BOOL)performDragOperation:(id<NSDraggingInfo>)sender { |
| 402 return [dropHandler_ performDragOperation:sender]; | 402 return [dropHandler_ performDragOperation:sender]; |
| 403 } | 403 } |
| 404 | 404 |
| 405 - (NSMenu*)decorationMenuForEvent:(NSEvent*)event { | 405 - (NSMenu*)decorationMenuForEvent:(NSEvent*)event { |
| 406 AutocompleteTextFieldCell* cell = [self cell]; | 406 AutocompleteTextFieldCell* cell = [self cell]; |
| 407 return [cell decorationMenuForEvent:event inRect:[self bounds] ofView:self]; | 407 return [cell decorationMenuForEvent:event inRect:[self bounds] ofView:self]; |
| 408 } | 408 } |
| 409 | 409 |
| 410 - (ViewID)viewID { | 410 - (ViewID)viewID { |
| 411 return VIEW_ID_LOCATION_BAR; | 411 return VIEW_ID_OMNIBOX; |
| 412 } | 412 } |
| 413 | 413 |
| 414 @end | 414 @end |
| OLD | NEW |