summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_edit_view_mac.h
diff options
context:
space:
mode:
authorshess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 20:06:29 +0000
committershess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-27 20:06:29 +0000
commite8c4e753d0a2bcdac816d472d9afa50fdafae7ba (patch)
treebe6849c27a59ee63667fdde7228544b8c80a603d /chrome/browser/autocomplete/autocomplete_edit_view_mac.h
parentd3b2e75994860048bf89ccbfc55c5b9c8d53532d (diff)
downloadchromium_src-e8c4e753d0a2bcdac816d472d9afa50fdafae7ba.zip
chromium_src-e8c4e753d0a2bcdac816d472d9afa50fdafae7ba.tar.gz
chromium_src-e8c4e753d0a2bcdac816d472d9afa50fdafae7ba.tar.bz2
Clean up construction of LocationBarViewMac objects.
This removes the need for SetField() accessors on AutocompleteEditViewMac and AutocompletePopupViewMac, and also removes the Init() wart on LocationBarViewMac. Now everything is wired up in the constructor. Review URL: http://codereview.chromium.org/92136 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14641 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_edit_view_mac.h')
-rw-r--r--chrome/browser/autocomplete/autocomplete_edit_view_mac.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_mac.h b/chrome/browser/autocomplete/autocomplete_edit_view_mac.h
index d6b0928..19f4b31 100644
--- a/chrome/browser/autocomplete/autocomplete_edit_view_mac.h
+++ b/chrome/browser/autocomplete/autocomplete_edit_view_mac.h
@@ -32,7 +32,8 @@ class AutocompleteEditViewMac : public AutocompleteEditView {
AutocompleteEditViewMac(AutocompleteEditController* controller,
ToolbarModel* toolbar_model,
Profile* profile,
- CommandUpdater* command_updater);
+ CommandUpdater* command_updater,
+ NSTextField* field);
virtual ~AutocompleteEditViewMac();
// Implement the AutocompleteEditView interface.
@@ -88,10 +89,6 @@ class AutocompleteEditViewMac : public AutocompleteEditView {
void OnKillFocus();
void AcceptInput(WindowOpenDisposition disposition, bool for_drop);
- // TODO(shess): Get rid of this. Right now it's needed because of
- // the ordering of initialization in tab_contents_controller.mm.
- void SetField(NSTextField* field);
-
// Helper for LocationBarBridge.
void FocusLocation();