summaryrefslogtreecommitdiffstats
path: root/views/widget/root_view.cc
diff options
context:
space:
mode:
authorglotov@google.com <glotov@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-20 18:22:12 +0000
committerglotov@google.com <glotov@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-20 18:22:12 +0000
commit7ceeba70872aab6ac66a1043c9f1587b12fc6710 (patch)
treeb1b31bd92c42eee3987a970246107772d3eda4b7 /views/widget/root_view.cc
parenta6bab42a4a8f87d60fd0b5772d4fb6e14381853a (diff)
downloadchromium_src-7ceeba70872aab6ac66a1043c9f1587b12fc6710.zip
chromium_src-7ceeba70872aab6ac66a1043c9f1587b12fc6710.tar.gz
chromium_src-7ceeba70872aab6ac66a1043c9f1587b12fc6710.tar.bz2
UI Language switch implemented by propagating LocaleChanged()
notification to all the views currently active. Before this CL, all views were recreated instead. That was very refactoring-unsafe. Note, this is first part of the change. It prepares overall architecture means and can be committed first. The other part contains implementation details and is here: http://codereview.chromium.org/1551029/show BUG=none TEST=none Review URL: http://codereview.chromium.org/1596023 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45057 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views/widget/root_view.cc')
-rw-r--r--views/widget/root_view.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/views/widget/root_view.cc b/views/widget/root_view.cc
index 179d49d..3ea101c 100644
--- a/views/widget/root_view.cc
+++ b/views/widget/root_view.cc
@@ -241,6 +241,11 @@ void RootView::ThemeChanged() {
View::ThemeChanged();
}
+void RootView::NotifyLocaleChanged() {
+ // Propagate downside. Note that View::NotifyLocaleChanged() is private.
+ View::NotifyLocaleChanged();
+}
+
/////////////////////////////////////////////////////////////////////////////
//
// RootView - event dispatch and propagation