diff options
author | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-05 00:58:06 +0000 |
---|---|---|
committer | oshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-06-05 00:58:06 +0000 |
commit | a55bfd3d8f23c22003cf6a0754aa320fe7b7d3e4 (patch) | |
tree | f90c20acb5701e17d66fabfce5ca90c827ca9c2e /chrome/browser/views/dropdown_bar_host_gtk.cc | |
parent | bd205617c4f7eca4bb28c0343ed2f071189393c3 (diff) | |
download | chromium_src-a55bfd3d8f23c22003cf6a0754aa320fe7b7d3e4.zip chromium_src-a55bfd3d8f23c22003cf6a0754aa320fe7b7d3e4.tar.gz chromium_src-a55bfd3d8f23c22003cf6a0754aa320fe7b7d3e4.tar.bz2 |
Add cross platform Widget::InitWithWidget(parent, const gfx::Rect& bounds);
On linux, native parent has to be either window_contents or widget depending of the type of wiget. InitWithWidget takes a parent Widget instead of native and hides these details.
I also cleaned up a few dead/duplicated code.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/2355003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48990 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/dropdown_bar_host_gtk.cc')
-rw-r--r-- | chrome/browser/views/dropdown_bar_host_gtk.cc | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/chrome/browser/views/dropdown_bar_host_gtk.cc b/chrome/browser/views/dropdown_bar_host_gtk.cc index 751d0d8..2a4e4be 100644 --- a/chrome/browser/views/dropdown_bar_host_gtk.cc +++ b/chrome/browser/views/dropdown_bar_host_gtk.cc @@ -24,11 +24,6 @@ void DropdownBarHost::SetWidgetPositionNative(const gfx::Rect& new_pos, host_->Show(); } -gfx::NativeView DropdownBarHost::GetNativeView(BrowserView* browser_view) { - return static_cast<views::WidgetGtk*>( - browser_view->GetWidget())->window_contents(); -} - NativeWebKeyboardEvent DropdownBarHost::GetKeyboardEvent( const TabContents* contents, const views::Textfield::Keystroke& key_stroke) { |