Chromium Code Reviews| 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() { |