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

Side by Side Diff: ui/aura/window.cc

Issue 10796106: aura: Rename OnWindowVisisbilityChanged() to OnWindowTargetVisibilityChanged(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura/test/test_window_delegate.cc ('k') | ui/aura/window_delegate.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « ui/aura/test/test_window_delegate.cc ('k') | ui/aura/window_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698