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

Unified Diff: views/view.cc

Issue 2878055: Make theme change notifications auto-propagate through the view hierarchy, in... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 | « views/view.h ('k') | views/widget/root_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/view.cc
===================================================================
--- views/view.cc (revision 53545)
+++ views/view.cc (working copy)
@@ -667,15 +667,16 @@
return focusable_ && IsEnabled() && IsVisible();
}
-void View::ThemeChanged() {
+void View::PropagateThemeChanged() {
for (int i = GetChildViewCount() - 1; i >= 0; --i)
- GetChildViewAt(i)->ThemeChanged();
+ GetChildViewAt(i)->PropagateThemeChanged();
+ OnThemeChanged();
}
-void View::NotifyLocaleChanged() {
- LocaleChanged();
+void View::PropagateLocaleChanged() {
for (int i = GetChildViewCount() - 1; i >= 0; --i)
- GetChildViewAt(i)->NotifyLocaleChanged();
+ GetChildViewAt(i)->PropagateLocaleChanged();
+ OnLocaleChanged();
}
#ifndef NDEBUG
« no previous file with comments | « views/view.h ('k') | views/widget/root_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698