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

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

Issue 4710001: Split out command IDs from chrome_dll_resource.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 | Annotate | Revision Log
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_editor.h" 5 #import "chrome/browser/cocoa/location_bar/autocomplete_text_field_editor.h"
6 6
7 #include "app/l10n_util_mac.h" 7 #include "app/l10n_util_mac.h"
8 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "grit/generated_resources.h" 9 #include "grit/generated_resources.h"
10 #include "base/sys_string_conversions.h" 10 #include "base/sys_string_conversions.h"
11 #include "chrome/app/chrome_dll_resource.h" // IDC_* 11 #include "chrome/app/chrome_command_ids.h" // IDC_*
12 #include "chrome/browser/browser_list.h" 12 #include "chrome/browser/browser_list.h"
13 #import "chrome/browser/cocoa/browser_window_controller.h" 13 #import "chrome/browser/cocoa/browser_window_controller.h"
14 #import "chrome/browser/cocoa/location_bar/autocomplete_text_field.h" 14 #import "chrome/browser/cocoa/location_bar/autocomplete_text_field.h"
15 #import "chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.h" 15 #import "chrome/browser/cocoa/location_bar/autocomplete_text_field_cell.h"
16 #import "chrome/browser/cocoa/toolbar_controller.h" 16 #import "chrome/browser/cocoa/toolbar_controller.h"
17 17
18 @implementation AutocompleteTextFieldEditor 18 @implementation AutocompleteTextFieldEditor
19 19
20 - (id)initWithFrame:(NSRect)frameRect { 20 - (id)initWithFrame:(NSRect)frameRect {
21 if ((self = [super initWithFrame:frameRect])) { 21 if ((self = [super initWithFrame:frameRect])) {
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 - (void)mouseDown:(NSEvent*)theEvent { 349 - (void)mouseDown:(NSEvent*)theEvent {
350 // Close the popup before processing the event. 350 // Close the popup before processing the event.
351 AutocompleteTextFieldObserver* observer = [self observer]; 351 AutocompleteTextFieldObserver* observer = [self observer];
352 if (observer) 352 if (observer)
353 observer->ClosePopup(); 353 observer->ClosePopup();
354 354
355 [super mouseDown:theEvent]; 355 [super mouseDown:theEvent];
356 } 356 }
357 357
358 @end 358 @end
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698