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

Unified Diff: ui/aura/window.cc

Issue 8202026: views: Some more layer change, and add/update some tests for layers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 9 years, 2 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/test_window_delegate.cc ('k') | ui/aura/window_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index e6404cceeeef80fa81374eb16d65ff9921c3e6c9..33f79987c06f34410e2e04069df5c1ed637f2c4f 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -367,8 +367,11 @@ void Window::SetVisible(bool visible) {
bool was_visible = IsVisible();
layer_->SetVisible(visible);
bool is_visible = IsVisible();
- if (was_visible != is_visible)
+ if (was_visible != is_visible) {
SchedulePaint();
+ if (delegate_)
+ delegate_->OnWindowVisibilityChanged(is_visible);
oshima 2011/10/11 00:52:19 how child layers get notifified visibility change?
sadrul 2011/10/11 01:03:18 Child windows don't get notified of the visibility
+ }
}
void Window::SchedulePaint() {
« no previous file with comments | « ui/aura/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