diff options
author | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-09 21:20:52 +0000 |
---|---|---|
committer | tc@google.com <tc@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-09 21:20:52 +0000 |
commit | 90b6707fe7bdd8dea5d908040e3a2c1f17feb838 (patch) | |
tree | 90d3538522d78e296f8f2d15f10058054b183211 /chrome/common | |
parent | 1d4efb6bc9f956cdbca55c7a4ba99d1bb76e42f8 (diff) | |
download | chromium_src-90b6707fe7bdd8dea5d908040e3a2c1f17feb838.zip chromium_src-90b6707fe7bdd8dea5d908040e3a2c1f17feb838.tar.gz chromium_src-90b6707fe7bdd8dea5d908040e3a2c1f17feb838.tar.bz2 |
Change the window background color to the inactive color when the
window manager says the window isn't active.
ActiveWindowWatcher listens for X events and notifies the browser
windows when the active window changes. We can't just use focus
events because popup menus cause browser windows to lose focus,
but it's still the "active" window.
Some window managers don't track active window, in which case we
don't get the x event and we just say that all windows are
active (our current behavior).
BUG=14649
Review URL: http://codereview.chromium.org/155303
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20313 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common')
-rw-r--r-- | chrome/common/notification_type.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/common/notification_type.h b/chrome/common/notification_type.h index f222972..d2c8fca 100644 --- a/chrome/common/notification_type.h +++ b/chrome/common/notification_type.h @@ -207,6 +207,10 @@ class NotificationType { // The user has changed the browser theme. BROWSER_THEME_CHANGED, + // Fired when the active window changes. This is currently only used on + // Linux. + ACTIVE_WINDOW_CHANGED, + // Tabs -------------------------------------------------------------------- // This notification is sent after a tab has been appended to the |