summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
diff options
context:
space:
mode:
authordeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-02 18:58:26 +0000
committerdeanm@chromium.org <deanm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-03-02 18:58:26 +0000
commit93e503337da16175761eaa6fbc10af5b8b2e5506 (patch)
treed9573f2ed83da709763b2ea507e02b877d4aa7bf /chrome/browser/views
parent6eec19cbd0a39057cd4e520f5f6c55ca681c08ac (diff)
downloadchromium_src-93e503337da16175761eaa6fbc10af5b8b2e5506.zip
chromium_src-93e503337da16175761eaa6fbc10af5b8b2e5506.tar.gz
chromium_src-93e503337da16175761eaa6fbc10af5b8b2e5506.tar.bz2
Separate the AutocompleteEditView from the cross-platform code.
Separate the platform specific AutocompleteEditView from the cross-platform model and controller. This leaves the model/controller in autocomplete_edit.{h,cc}, and moves the view into autocomplete_edit_view.h and autocomplete_edit_view_win.{h,cc}. There is now an abstract interface (AutocompleteEditView) which the model uses to talk to the view. Other views (for example, the LocationBarView) will still talk directly to the AutocompleteEditViewWin, which is the full Chrome view. This change also pulled in the Windows specific edit_drop_target code into autocomplete_edit_view_win.cc. Review URL: http://codereview.chromium.org/27327 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10712 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r--chrome/browser/views/location_bar_view.cc8
-rw-r--r--chrome/browser/views/location_bar_view.h3
2 files changed, 6 insertions, 5 deletions
diff --git a/chrome/browser/views/location_bar_view.cc b/chrome/browser/views/location_bar_view.cc
index 7cd64a7..8290b01 100644
--- a/chrome/browser/views/location_bar_view.cc
+++ b/chrome/browser/views/location_bar_view.cc
@@ -119,10 +119,10 @@ void LocationBarView::Init() {
// URL edit field.
views::Widget* widget = GetWidget();
- location_entry_.reset(new AutocompleteEditView(font_, this, model_, this,
- widget->GetHWND(),
- profile_, command_updater_,
- popup_window_mode_));
+ location_entry_.reset(new AutocompleteEditViewWin(font_, this, model_, this,
+ widget->GetHWND(),
+ profile_, command_updater_,
+ popup_window_mode_));
// View container for URL edit field.
location_entry_view_ = new views::HWNDView;
diff --git a/chrome/browser/views/location_bar_view.h b/chrome/browser/views/location_bar_view.h
index ef8c73b..9038135 100644
--- a/chrome/browser/views/location_bar_view.h
+++ b/chrome/browser/views/location_bar_view.h
@@ -9,6 +9,7 @@
#include "base/gfx/rect.h"
#include "chrome/browser/autocomplete/autocomplete_edit.h"
+#include "chrome/browser/autocomplete/autocomplete_edit_view_win.h"
#include "chrome/browser/location_bar.h"
#include "chrome/browser/tab_contents/tab_contents.h"
#include "chrome/browser/toolbar_model.h"
@@ -335,7 +336,7 @@ class LocationBarView : public LocationBar,
Profile* profile_;
// The Autocomplete Edit field.
- scoped_ptr<AutocompleteEditView> location_entry_;
+ scoped_ptr<AutocompleteEditViewWin> location_entry_;
// The CommandUpdater for the Browser object that corresponds to this View.
CommandUpdater* command_updater_;