Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(217)

Unified Diff: ui/aura/window.h

Issue 9557005: Makes sure switching workspaces only animations windows that want to (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm/workspace/workspace_manager_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.h
diff --git a/ui/aura/window.h b/ui/aura/window.h
index 934bccb6bbf69405be1d5a94fab8bb024d6c8f48..64114406f661d2b469c5fb460483c911e03b6073 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;
« no previous file with comments | « ash/wm/workspace/workspace_manager_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698