Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(550)

Side by Side Diff: chrome/browser/cocoa/location_bar/autocomplete_text_field.mm

Issue 2878037: [Mac]Implement ViewID support. (third approach) (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Update according to review feedback. Created 10 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/infobar_container_controller.mm ('k') | chrome/browser/cocoa/reload_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698