OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/aura/window.h" | 5 #include "ui/aura/window.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 676 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 RootWindow* root_window = GetRootWindow(); | 687 RootWindow* root_window = GetRootWindow(); |
688 if (client::GetVisibilityClient(root_window)) { | 688 if (client::GetVisibilityClient(root_window)) { |
689 client::GetVisibilityClient(root_window)->UpdateLayerVisibility( | 689 client::GetVisibilityClient(root_window)->UpdateLayerVisibility( |
690 this, visible); | 690 this, visible); |
691 } else { | 691 } else { |
692 layer_->SetVisible(visible); | 692 layer_->SetVisible(visible); |
693 } | 693 } |
694 visible_ = visible; | 694 visible_ = visible; |
695 SchedulePaint(); | 695 SchedulePaint(); |
696 if (delegate_) | 696 if (delegate_) |
697 delegate_->OnWindowVisibilityChanged(visible); | 697 delegate_->OnWindowTargetVisibilityChanged(visible); |
698 | 698 |
699 if (parent_ && parent_->layout_manager_.get()) | 699 if (parent_ && parent_->layout_manager_.get()) |
700 parent_->layout_manager_->OnChildWindowVisibilityChanged(this, visible); | 700 parent_->layout_manager_->OnChildWindowVisibilityChanged(this, visible); |
701 FOR_EACH_OBSERVER(WindowObserver, observers_, | 701 FOR_EACH_OBSERVER(WindowObserver, observers_, |
702 OnWindowVisibilityChanged(this, visible)); | 702 OnWindowVisibilityChanged(this, visible)); |
703 | 703 |
704 if (root_window) | 704 if (root_window) |
705 root_window->OnWindowVisibilityChanged(this, visible); | 705 root_window->OnWindowVisibilityChanged(this, visible); |
706 } | 706 } |
707 | 707 |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 for (Windows::const_reverse_iterator it = children_.rbegin(), | 942 for (Windows::const_reverse_iterator it = children_.rbegin(), |
943 rend = children_.rend(); | 943 rend = children_.rend(); |
944 it != rend; ++it) { | 944 it != rend; ++it) { |
945 Window* child = *it; | 945 Window* child = *it; |
946 child->PrintWindowHierarchy(depth + 1); | 946 child->PrintWindowHierarchy(depth + 1); |
947 } | 947 } |
948 } | 948 } |
949 #endif | 949 #endif |
950 | 950 |
951 } // namespace aura | 951 } // namespace aura |
OLD | NEW |