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

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
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index e6404cceeeef80fa81374eb16d65ff9921c3e6c9..ffae27234e78057c3ac15e49a22abad1d4c0e0e5 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -367,8 +367,10 @@ 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();
+ delegate_->OnWindowVisibilityChanged(is_visible);
+ }
}
void Window::SchedulePaint() {

Powered by Google App Engine
This is Rietveld 408576698