summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/find_bar_view.cc
diff options
context:
space:
mode:
authorfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-10 22:31:07 +0000
committerfinnur@google.com <finnur@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-10 22:31:07 +0000
commit9bd491ee6e4c3695b2a96079c6607756bb0b13c0 (patch)
tree7caae901885c1a36639246cb310492add9fe1e99 /chrome/browser/views/find_bar_view.cc
parente8749c99e678b18cf1b0b4051fab7d518e9ef0f9 (diff)
downloadchromium_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/views/find_bar_view.cc')
-rw-r--r--chrome/browser/views/find_bar_view.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/views/find_bar_view.cc b/chrome/browser/views/find_bar_view.cc
index d528096..a8fcf1e 100644
--- a/chrome/browser/views/find_bar_view.cc
+++ b/chrome/browser/views/find_bar_view.cc
@@ -9,6 +9,7 @@
#include "base/string_util.h"
#include "chrome/app/theme/theme_resources.h"
#include "chrome/browser/views/find_bar_win.h"
+#include "chrome/browser/view_ids.h"
#include "chrome/common/l10n_util.h"
#include "chrome/common/gfx/chrome_canvas.h"
#include "chrome/common/resource_bundle.h"
@@ -93,6 +94,7 @@ FindBarView::FindBarView(FindBarWin* container)
ResourceBundle &rb = ResourceBundle::GetSharedInstance();
find_text_ = new views::TextField();
+ find_text_->SetID(VIEW_ID_FIND_IN_PAGE_TEXT_FIELD);
find_text_->SetFont(rb.GetFont(ResourceBundle::BaseFont));
find_text_->set_default_width_in_chars(kDefaultCharWidth);
AddChildView(find_text_);