diff options
author | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-24 15:51:26 +0000 |
---|---|---|
committer | sky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-09-24 15:51:26 +0000 |
commit | 717382da5931a2d43e7f6aa825dd63286b6f5b76 (patch) | |
tree | 61b769bd7d5300678cd65746a94cb355ba5d4b38 /views/window/window_gtk.h | |
parent | 3a132291568bb003761703e4230772712fbc8e0d (diff) | |
download | chromium_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 'views/window/window_gtk.h')
-rw-r--r-- | views/window/window_gtk.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/views/window/window_gtk.h b/views/window/window_gtk.h index 237b6f9..74482ad 100644 --- a/views/window/window_gtk.h +++ b/views/window/window_gtk.h @@ -68,6 +68,9 @@ class WindowGtk : public WidgetGtk, public Window { virtual gboolean OnWindowStateEvent(GtkWidget* widget, GdkEventWindowState* event); + // WindowGtk specific. + virtual void IsActiveChanged(); + protected: // For the constructor. friend class Window; @@ -82,6 +85,9 @@ class WindowGtk : public WidgetGtk, public Window { static gboolean CallConfigureEvent(GtkWidget* widget, GdkEventConfigure* event, WindowGtk* window_gtk); + static void CallIsActiveChanged(GtkWidget* widget, + GParamSpec* pspec, + WindowGtk* window_gtk); static gboolean CallWindowStateEvent(GtkWidget* widget, GdkEventWindowState* event, WindowGtk* window_gtk); @@ -112,6 +118,10 @@ class WindowGtk : public WidgetGtk, public Window { // Set to true if the window is in the process of closing. bool window_closed_; + // If true, IsActive returns true. This is set by DisableInactiveRendering + // to force the window to be treated as active even though it isn't. + bool force_active_; + DISALLOW_COPY_AND_ASSIGN(WindowGtk); }; |