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

Unified Diff: ui/views/view.cc

Issue 2816193002: Introduce a type of View background that stays in sync with its host (Closed)
Patch Set: rebase Created 3 years, 8 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/views/bubble/tray_bubble_view.cc ('k') | ui/views/view_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 27eada4660d6798ae106657b69e53a3358dd1d72..b39da4994275cb5067ff16a1f2cfbb886fcac57f 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -2136,6 +2136,8 @@ void View::PropagateNativeThemeChanged(const ui::NativeTheme* theme) {
child->PropagateNativeThemeChanged(theme);
}
OnNativeThemeChanged(theme);
+ for (ViewObserver& observer : observers_)
+ observer.OnViewNativeThemeChanged(this);
}
// Size and disposition --------------------------------------------------------
« no previous file with comments | « ui/views/bubble/tray_bubble_view.cc ('k') | ui/views/view_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698