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

Unified Diff: chrome/browser/views/location_bar_view.cc

Issue 114059: Refactors HWNDView, NativeViewHostGtk and NativeViewHost so that they match t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/views/location_bar_view.cc
===================================================================
--- chrome/browser/views/location_bar_view.cc (revision 17161)
+++ chrome/browser/views/location_bar_view.cc (working copy)
@@ -138,22 +138,22 @@
profile_, command_updater_,
popup_window_mode_,
popup_positioner_));
- location_entry_view_ = new views::HWNDView;
#else
location_entry_.reset(new AutocompleteEditViewGtk(this, model_, profile_,
command_updater_,
popup_positioner_));
- location_entry_view_ = new views::NativeViewHostGtk;
#endif
- DCHECK(location_entry_view_) << "LocationBarView::Init - OOM!";
+ location_entry_view_ = new views::NativeViewHost;
location_entry_view_->SetID(VIEW_ID_AUTOCOMPLETE);
AddChildView(location_entry_view_);
- location_entry_view_->SetAssociatedFocusView(this);
+ location_entry_view_->set_focus_view(this);
+ location_entry_view_->Attach(
#if defined(OS_WIN)
- location_entry_view_->Attach(location_entry_->m_hWnd);
+ location_entry_->m_hWnd
#else
- location_entry_view_->Attach(location_entry_->widget());
+ location_entry_->widget()
#endif
+ );
AddChildView(&selected_keyword_view_);
selected_keyword_view_.SetFont(font_);
« no previous file with comments | « chrome/browser/views/location_bar_view.h ('k') | chrome/browser/views/tab_contents/native_tab_contents_container_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698