diff options
author | finnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-10 22:31:07 +0000 |
---|---|---|
committer | finnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-12-10 22:31:07 +0000 |
commit | 9bd491ee6e4c3695b2a96079c6607756bb0b13c0 (patch) | |
tree | 7caae901885c1a36639246cb310492add9fe1e99 /chrome/browser/web_contents_view_win.cc | |
parent | e8749c99e678b18cf1b0b4051fab7d518e9ef0f9 (diff) | |
download | chromium_src-9bd491ee6e4c3695b2a96079c6607756bb0b13c0.zip chromium_src-9bd491ee6e4c3695b2a96079c6607756bb0b13c0.tar.gz chromium_src-9bd491ee6e4c3695b2a96079c6607756bb0b13c0.tar.bz2 |
Fix regression with Find in page focus on trunk.
Basically, if the Find box is open, pressing Ctrl+F should
set focus to the text field. This regressed when the Find
box moved into web_contents_view.
I have added a UI test to catch this in the future.
Review URL: http://codereview.chromium.org/13721
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6748 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/web_contents_view_win.cc')
-rw-r--r-- | chrome/browser/web_contents_view_win.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/web_contents_view_win.cc b/chrome/browser/web_contents_view_win.cc index e29e0c5..f4e63b9 100644 --- a/chrome/browser/web_contents_view_win.cc +++ b/chrome/browser/web_contents_view_win.cc @@ -195,11 +195,11 @@ void WebContentsViewWin::SizeContents(const gfx::Size& size) { void WebContentsViewWin::FindInPage(const Browser& browser, bool find_next, bool forward_direction) { - if (!find_bar_.get()) { + if (!find_bar_.get()) { // We want the Chrome top-level (Frame) window. HWND hwnd = reinterpret_cast<HWND>(browser.window()->GetNativeHandle()); find_bar_.reset(new FindBarWin(this, hwnd)); - } else if (!find_bar_->IsVisible()) { + } else { find_bar_->Show(); } @@ -369,7 +369,7 @@ RenderWidgetHostView* WebContentsViewWin::CreateNewWidgetInternal( return widget_view; } - + void WebContentsViewWin::ShowCreatedWindowInternal( WebContents* new_web_contents, WindowOpenDisposition disposition, |