From 791f9a78d400cbed3a1811f0b08dc35d5c4883fb Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Thu, 27 Oct 2011 15:43:58 +0000 Subject: [PATCH] Gets the findbar to at least show up. We need to do some more work to make it clip properly. BUG=none TEST=none Review URL: http://codereview.chromium.org/8401004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@107575 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/ui/views/dropdown_bar_host_aura.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/chrome/browser/ui/views/dropdown_bar_host_aura.cc b/chrome/browser/ui/views/dropdown_bar_host_aura.cc index b941bed2f7f4..bfeee0fe1dee 100644 --- a/chrome/browser/ui/views/dropdown_bar_host_aura.cc +++ b/chrome/browser/ui/views/dropdown_bar_host_aura.cc @@ -5,17 +5,18 @@ #include "chrome/browser/ui/views/dropdown_bar_host.h" #include "base/logging.h" +#include "ui/aura/window.h" +#include "views/widget/widget.h" NativeWebKeyboardEvent DropdownBarHost::GetKeyboardEvent( const TabContents* contents, const views::KeyEvent& key_event) { - // TODO(beng): - NOTIMPLEMENTED(); - return NativeWebKeyboardEvent(); + return NativeWebKeyboardEvent(key_event.native_event()); } void DropdownBarHost::SetWidgetPositionNative(const gfx::Rect& new_pos, bool no_redraw) { - // TODO(beng): - NOTIMPLEMENTED(); + if (!host_->IsVisible()) + host_->GetNativeView()->Show(); + host_->GetNativeView()->SetBounds(new_pos); } -- 2.11.4.GIT