summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame/browser_view.h
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-10 19:22:03 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-10 19:22:03 +0000
commitcbea91afd0211e678248c910cb5fc719e8573029 (patch)
tree5e4bda7aa673ac38dd7cbae6b335633e71890892 /chrome/browser/views/frame/browser_view.h
parent18662b90ae6caf7c9798b3b621f7e7ebd01558e8 (diff)
downloadchromium_src-cbea91afd0211e678248c910cb5fc719e8573029.zip
chromium_src-cbea91afd0211e678248c910cb5fc719e8573029.tar.gz
chromium_src-cbea91afd0211e678248c910cb5fc719e8573029.tar.bz2
Initial focus fix on x11/gtk
The initial focus on x11/gtk was not working propertly. It was jsut working by coincident, and chromeos's compact location bar revealed the bug. This CL fixes by setting a focus when the window itself gets focus. BUG=34159 TEST=on chromeos build, omnibox should have a focus on a new window. Review URL: http://codereview.chromium.org/756002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41187 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame/browser_view.h')
-rw-r--r--chrome/browser/views/frame/browser_view.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/views/frame/browser_view.h b/chrome/browser/views/frame/browser_view.h
index 1cdca86a..e811334 100644
--- a/chrome/browser/views/frame/browser_view.h
+++ b/chrome/browser/views/frame/browser_view.h
@@ -234,6 +234,10 @@ class BrowserView : public BrowserBubbleHost,
// used on Linux.
void FullScreenStateChanged();
+ // Restores the focused view. This is also used to set the initial focus
+ // when a new browser window is created.
+ void RestoreFocus();
+
// Called when the activation of the frame changes.
virtual void ActivationChanged(bool activated);