summaryrefslogtreecommitdiffstats
path: root/ui/aura/window.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-01 04:18:23 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-03-01 04:18:23 +0000
commit9f9def40b17996f258d4334ffa41fcda6230ca17 (patch)
tree2857cec64711de18903378c9b9c87a5c72703c9e /ui/aura/window.h
parent7fadd91aa524905f7b279f5b454d7ff3b5864d00 (diff)
downloadchromium_src-9f9def40b17996f258d4334ffa41fcda6230ca17.zip
chromium_src-9f9def40b17996f258d4334ffa41fcda6230ca17.tar.gz
chromium_src-9f9def40b17996f258d4334ffa41fcda6230ca17.tar.bz2
Makes sure switching workspaces only animations windows that want to
be shown. BUG=116337 TEST=covered by tests R=ben@chromium.org Review URL: http://codereview.chromium.org/9557005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124360 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/window.h')
-rw-r--r--ui/aura/window.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/aura/window.h b/ui/aura/window.h
index 934bccb..6411440 100644
--- a/ui/aura/window.h
+++ b/ui/aura/window.h
@@ -123,6 +123,10 @@ class AURA_EXPORT Window : public ui::LayerDelegate {
void Hide();
// Returns true if this window and all its ancestors are visible.
bool IsVisible() const;
+ // Returns the visibility requested by this window. IsVisible() takes into
+ // account the visibility of the layer and ancestors, where as this tracks
+ // whether Show() without a Hide() has been invoked.
+ bool TargetVisibility() const { return visible_; }
// Returns the window's bounds in screen coordinates.
gfx::Rect GetScreenBounds() const;