summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views/frame/browser_frame_gtk.cc
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-24 15:51:26 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-09-24 15:51:26 +0000
commit717382da5931a2d43e7f6aa825dd63286b6f5b76 (patch)
tree61b769bd7d5300678cd65746a94cb355ba5d4b38 /chrome/browser/views/frame/browser_frame_gtk.cc
parent3a132291568bb003761703e4230772712fbc8e0d (diff)
downloadchromium_src-717382da5931a2d43e7f6aa825dd63286b6f5b76.zip
chromium_src-717382da5931a2d43e7f6aa825dd63286b6f5b76.tar.gz
chromium_src-717382da5931a2d43e7f6aa825dd63286b6f5b76.tar.bz2
Changes from listening to focus-out/focus-in for active status to
listening for is-active. BUG=none TEST=none Review URL: http://codereview.chromium.org/219016 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27071 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views/frame/browser_frame_gtk.cc')
-rw-r--r--chrome/browser/views/frame/browser_frame_gtk.cc14
1 files changed, 4 insertions, 10 deletions
diff --git a/chrome/browser/views/frame/browser_frame_gtk.cc b/chrome/browser/views/frame/browser_frame_gtk.cc
index 7ca24f9..2e7b734 100644
--- a/chrome/browser/views/frame/browser_frame_gtk.cc
+++ b/chrome/browser/views/frame/browser_frame_gtk.cc
@@ -82,16 +82,10 @@ views::RootView* BrowserFrameGtk::CreateRootView() {
return root_view_;
}
-gboolean BrowserFrameGtk::OnFocusIn(GtkWidget* widget,
- GdkEventFocus* event) {
- browser_view_->ActivationChanged(true);
- return views::WindowGtk::OnFocusIn(widget, event);
-}
-
-gboolean BrowserFrameGtk::OnFocusOut(GtkWidget* widget,
- GdkEventFocus* event) {
- browser_view_->ActivationChanged(false);
- return views::WindowGtk::OnFocusOut(widget, event);
+void BrowserFrameGtk::IsActiveChanged() {
+ GetRootView()->SchedulePaint();
+ browser_view_->ActivationChanged(IsActive());
+ views::WindowGtk::IsActiveChanged();
}