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

Unified Diff: ui/aura/window.cc

Issue 13638010: Support storing the VisibilityClient on windows other than the RootWindow. What this means is you c… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 8 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 | « ui/aura/client/visibility_client.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.cc
===================================================================
--- ui/aura/window.cc (revision 192570)
+++ ui/aura/window.cc (working copy)
@@ -712,12 +712,12 @@
OnWindowVisibilityChanging(this, visible));
RootWindow* root_window = GetRootWindow();
- if (client::GetVisibilityClient(root_window)) {
- client::GetVisibilityClient(root_window)->UpdateLayerVisibility(
- this, visible);
- } else {
+ client::VisibilityClient* visibility_client =
+ client::GetVisibilityClient(this);
+ if (visibility_client)
+ visibility_client->UpdateLayerVisibility(this, visible);
+ else
layer_->SetVisible(visible);
- }
visible_ = visible;
SchedulePaint();
if (parent_ && parent_->layout_manager_.get())
« no previous file with comments | « ui/aura/client/visibility_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698