diff options
author | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-27 20:06:29 +0000 |
---|---|---|
committer | shess@chromium.org <shess@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-27 20:06:29 +0000 |
commit | e8c4e753d0a2bcdac816d472d9afa50fdafae7ba (patch) | |
tree | be6849c27a59ee63667fdde7228544b8c80a603d /chrome/browser/autocomplete/autocomplete_popup_view_mac.h | |
parent | d3b2e75994860048bf89ccbfc55c5b9c8d53532d (diff) | |
download | chromium_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_popup_view_mac.h')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_popup_view_mac.h | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_popup_view_mac.h b/chrome/browser/autocomplete/autocomplete_popup_view_mac.h index 376260a..9cb2af7 100644 --- a/chrome/browser/autocomplete/autocomplete_popup_view_mac.h +++ b/chrome/browser/autocomplete/autocomplete_popup_view_mac.h @@ -29,7 +29,8 @@ class AutocompletePopupViewMac : public AutocompletePopupView { public: AutocompletePopupViewMac(AutocompleteEditViewMac* edit_view, AutocompleteEditModel* edit_model, - Profile* profile); + Profile* profile, + NSTextField* field); virtual ~AutocompletePopupViewMac(); // Implement the AutocompletePopupView interface. @@ -73,12 +74,6 @@ class AutocompletePopupViewMac : public AutocompletePopupView { const std::wstring& ResultDescriptionAt(size_t i); 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) { - field_ = field; - } - private: // Create the popup_ instance if needed. void CreatePopupIfNeeded(); |