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

Unified Diff: views/widget/widget.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
« views/controls/native_control_gtk.cc ('K') | « views/widget/native_widget_gtk.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/widget/widget.cc
diff --git a/views/widget/widget.cc b/views/widget/widget.cc
index 9ce902a5d0dabdd83ad21fbe1a0701f8dcb642b2..dfab1648cc6b6829c3b57d89c0ce3f234186bee9 100644
--- a/views/widget/widget.cc
+++ b/views/widget/widget.cc
@@ -870,9 +870,13 @@ void Widget::OnNativeBlur(gfx::NativeView focused_view) {
}
void Widget::OnNativeWidgetVisibilityChanged(bool visible) {
- GetRootView()->PropagateVisibilityNotifications(GetRootView(), visible);
+ View* root = GetRootView();
+ root->PropagateVisibilityNotifications(root, visible);
FOR_EACH_OBSERVER(Observer, observers_,
OnWidgetVisibilityChanged(this, visible));
+ ui::Compositor* compositor = GetCompositor();
+ if (compositor && root->layer())
Ben Goodger (Google) 2011/10/09 20:03:51 if (GetCompositor() && root->layer())
sadrul 2011/10/10 00:02:18 Done.
+ root->layer()->SetVisible(visible);
}
void Widget::OnNativeWidgetCreated() {
« views/controls/native_control_gtk.cc ('K') | « views/widget/native_widget_gtk.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698