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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
683 RootWindow* root_window = GetRootWindow(); | 683 RootWindow* root_window = GetRootWindow(); |
684 if (client::GetVisibilityClient(root_window)) { | 684 if (client::GetVisibilityClient(root_window)) { |
685 client::GetVisibilityClient(root_window)->UpdateLayerVisibility( | 685 client::GetVisibilityClient(root_window)->UpdateLayerVisibility( |
686 this, visible); | 686 this, visible); |
687 } else { | 687 } else { |
688 layer_->SetVisible(visible); | 688 layer_->SetVisible(visible); |
689 } | 689 } |
690 visible_ = visible; | 690 visible_ = visible; |
691 SchedulePaint(); | 691 SchedulePaint(); |
692 if (delegate_) | 692 if (delegate_) |
693 delegate_->OnWindowVisibilityChanged(visible); | 693 delegate_->OnWindowTargetVisibilityChanged(visible); |
694 | 694 |
695 if (parent_ && parent_->layout_manager_.get()) | 695 if (parent_ && parent_->layout_manager_.get()) |
696 parent_->layout_manager_->OnChildWindowVisibilityChanged(this, visible); | 696 parent_->layout_manager_->OnChildWindowVisibilityChanged(this, visible); |
697 FOR_EACH_OBSERVER(WindowObserver, observers_, | 697 FOR_EACH_OBSERVER(WindowObserver, observers_, |
698 OnWindowVisibilityChanged(this, visible)); | 698 OnWindowVisibilityChanged(this, visible)); |
699 | 699 |
700 if (root_window) | 700 if (root_window) |
701 root_window->OnWindowVisibilityChanged(this, visible); | 701 root_window->OnWindowVisibilityChanged(this, visible); |
702 } | 702 } |
703 | 703 |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
938 for (Windows::const_reverse_iterator it = children_.rbegin(), | 938 for (Windows::const_reverse_iterator it = children_.rbegin(), |
939 rend = children_.rend(); | 939 rend = children_.rend(); |
940 it != rend; ++it) { | 940 it != rend; ++it) { |
941 Window* child = *it; | 941 Window* child = *it; |
942 child->PrintWindowHierarchy(depth + 1); | 942 child->PrintWindowHierarchy(depth + 1); |
943 } | 943 } |
944 } | 944 } |
945 #endif | 945 #endif |
946 | 946 |
947 } // namespace aura | 947 } // namespace aura |
OLD | NEW |